Bug Summary

File:var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp
Warning:line 20061, column 39
Moved-from object 'previousKey' is moved

Annotated Source Code

Press '?' to see keyboard shortcuts

clang -cc1 -cc1 -triple x86_64-pc-linux-gnu -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=/var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dom/indexedDB -fcoverage-compilation-dir=/var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dom/indexedDB -resource-dir /usr/lib/llvm-20/lib/clang/20 -include /var/lib/jenkins/workspace/firefox-scan-build/config/gcc_hidden.h -include /var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/mozilla-config.h -I /var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dist/stl_wrappers -I /var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dist/system_wrappers -U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=2 -D _GLIBCXX_ASSERTIONS -D DEBUG=1 -D MOZ_HAS_MOZGLUE -D MOZILLA_INTERNAL_API -D IMPL_LIBXUL -D MOZ_SUPPORT_LEAKCHECKING -D STATIC_EXPORTABLE_JS_API -I /var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB -I /var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dom/indexedDB -I /var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/ipc/ipdl/_ipdlheaders -I /var/lib/jenkins/workspace/firefox-scan-build/ipc/chromium/src -I /var/lib/jenkins/workspace/firefox-scan-build/dom/base -I /var/lib/jenkins/workspace/firefox-scan-build/dom/storage -I /var/lib/jenkins/workspace/firefox-scan-build/ipc/glue -I /var/lib/jenkins/workspace/firefox-scan-build/third_party/sqlite3/src -I /var/lib/jenkins/workspace/firefox-scan-build/xpcom/build -I /var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dist/include -I /var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dist/include/nspr -I /var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dist/include/nss -D MOZILLA_CLIENT -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/14/../../../../include/x86_64-linux-gnu/c++/14 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/backward -internal-isystem /usr/lib/llvm-20/lib/clang/20/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -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-deprecated-this-capture -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 -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 -fskip-odr-check-in-gmf -fno-sized-deallocation -fno-aligned-allocation -vectorize-loops -vectorize-slp -analyzer-checker optin.performance.Padding -analyzer-output=html -analyzer-config stable-report-filename=true -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/scan-build-2025-01-20-090804-167946-1 -x c++ /var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp
1/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3/* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7#include "ActorsParent.h"
8
9#include <inttypes.h>
10#include <math.h>
11#include <stdlib.h>
12#include <string.h>
13#include <algorithm>
14#include <cstdint>
15#include <functional>
16#include <iterator>
17#include <new>
18#include <numeric>
19#include <tuple>
20#include <type_traits>
21#include <utility>
22#include "ActorsParentCommon.h"
23#include "CrashAnnotations.h"
24#include "DatabaseFileInfo.h"
25#include "DatabaseFileManager.h"
26#include "DatabaseFileManagerImpl.h"
27#include "DBSchema.h"
28#include "ErrorList.h"
29#include "IDBCursorType.h"
30#include "IDBObjectStore.h"
31#include "IDBTransaction.h"
32#include "IndexedDBCommon.h"
33#include "IndexedDatabaseInlines.h"
34#include "IndexedDatabaseManager.h"
35#include "IndexedDBCipherKeyManager.h"
36#include "KeyPath.h"
37#include "MainThreadUtils.h"
38#include "ProfilerHelpers.h"
39#include "ReportInternalError.h"
40#include "SafeRefPtr.h"
41#include "SchemaUpgrades.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/InitializedOnce.h"
70#include "mozilla/Logging.h"
71#include "mozilla/MacroForEach.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/Unused.h"
91#include "mozilla/Variant.h"
92#include "mozilla/dom/BlobImpl.h"
93#include "mozilla/dom/ContentParent.h"
94#include "mozilla/dom/FileBlobImpl.h"
95#include "mozilla/dom/FlippedOnce.h"
96#include "mozilla/dom/IDBCursorBinding.h"
97#include "mozilla/dom/IDBFactory.h"
98#include "mozilla/dom/IPCBlob.h"
99#include "mozilla/dom/IPCBlobUtils.h"
100#include "mozilla/dom/IndexedDatabase.h"
101#include "mozilla/dom/Nullable.h"
102#include "mozilla/dom/PContentParent.h"
103#include "mozilla/dom/ScriptSettings.h"
104#include "mozilla/dom/indexedDB/IDBResult.h"
105#include "mozilla/dom/indexedDB/Key.h"
106#include "mozilla/dom/indexedDB/PBackgroundIDBCursor.h"
107#include "mozilla/dom/indexedDB/PBackgroundIDBCursorParent.h"
108#include "mozilla/dom/indexedDB/PBackgroundIDBDatabase.h"
109#include "mozilla/dom/indexedDB/PBackgroundIDBDatabaseFileParent.h"
110#include "mozilla/dom/indexedDB/PBackgroundIDBDatabaseParent.h"
111#include "mozilla/dom/indexedDB/PBackgroundIDBFactory.h"
112#include "mozilla/dom/indexedDB/PBackgroundIDBFactoryParent.h"
113#include "mozilla/dom/indexedDB/PBackgroundIDBFactoryRequestParent.h"
114#include "mozilla/dom/indexedDB/PBackgroundIDBRequest.h"
115#include "mozilla/dom/indexedDB/PBackgroundIDBRequestParent.h"
116#include "mozilla/dom/indexedDB/PBackgroundIDBSharedTypes.h"
117#include "mozilla/dom/indexedDB/PBackgroundIDBTransactionParent.h"
118#include "mozilla/dom/indexedDB/PBackgroundIDBVersionChangeTransactionParent.h"
119#include "mozilla/dom/indexedDB/PBackgroundIndexedDBUtilsParent.h"
120#include "mozilla/dom/ipc/IdType.h"
121#include "mozilla/dom/quota/Assertions.h"
122#include "mozilla/dom/quota/CachingDatabaseConnection.h"
123#include "mozilla/dom/quota/CheckedUnsafePtr.h"
124#include "mozilla/dom/quota/Client.h"
125#include "mozilla/dom/quota/ClientDirectoryLock.h"
126#include "mozilla/dom/quota/ClientImpl.h"
127#include "mozilla/dom/quota/DebugOnlyMacro.h"
128#include "mozilla/dom/quota/DirectoryLock.h"
129#include "mozilla/dom/quota/DirectoryLockInlines.h"
130#include "mozilla/dom/quota/DecryptingInputStream_impl.h"
131#include "mozilla/dom/quota/EncryptingOutputStream_impl.h"
132#include "mozilla/dom/quota/ErrorHandling.h"
133#include "mozilla/dom/quota/FileStreams.h"
134#include "mozilla/dom/quota/OriginScope.h"
135#include "mozilla/dom/quota/PersistenceScope.h"
136#include "mozilla/dom/quota/PersistenceType.h"
137#include "mozilla/dom/quota/PrincipalUtils.h"
138#include "mozilla/dom/quota/QuotaCommon.h"
139#include "mozilla/dom/quota/QuotaManager.h"
140#include "mozilla/dom/quota/QuotaObject.h"
141#include "mozilla/dom/quota/ResultExtensions.h"
142#include "mozilla/dom/quota/ThreadUtils.h"
143#include "mozilla/dom/quota/UniversalDirectoryLock.h"
144#include "mozilla/dom/quota/UsageInfo.h"
145#include "mozilla/fallible.h"
146#include "mozilla/ipc/BackgroundParent.h"
147#include "mozilla/ipc/BackgroundUtils.h"
148#include "mozilla/ipc/InputStreamParams.h"
149#include "mozilla/ipc/PBackgroundParent.h"
150#include "mozilla/ipc/PBackgroundSharedTypes.h"
151#include "mozilla/ipc/ProtocolUtils.h"
152#include "mozilla/mozalloc.h"
153#include "mozilla/storage/Variant.h"
154#include "NotifyUtils.h"
155#include "nsBaseHashtable.h"
156#include "nsCOMPtr.h"
157#include "nsClassHashtable.h"
158#include "nsContentUtils.h"
159#include "nsTHashMap.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 "nsTHashSet.h"
196#include "nsTHashtable.h"
197#include "nsTLiteralString.h"
198#include "nsTStringRepr.h"
199#include "nsThreadPool.h"
200#include "nsThreadUtils.h"
201#include "nscore.h"
202#include "prinrval.h"
203#include "prio.h"
204#include "prsystem.h"
205#include "prthread.h"
206#include "prtime.h"
207#include "prtypes.h"
208#include "snappy/snappy.h"
209
210struct JSContext;
211class JSObject;
212template <class T>
213class nsPtrHashKey;
214
215#define IDB_DEBUG_LOG(_args) \
216 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)
217
218#if defined(MOZ_WIDGET_ANDROID)
219# define IDB_MOBILE
220#endif
221
222// Helper macros to reduce assertion verbosity
223// AUUF == ASSERT_UNREACHABLE_UNLESS_FUZZING
224#ifdef DEBUG1
225# ifdef FUZZING
226# 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" " (" ... ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 226); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
... ")"); do { *((volatile int*)__null) = 226; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
NS_WARNING(__VA_ARGS__)NS_DebugBreak(NS_DEBUG_WARNING, __VA_ARGS__, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 226)
227# else
228# 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" " (" ... ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 228); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
... ")"); do { *((volatile int*)__null) = 228; __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__ ")"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 228); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
__VA_ARGS__ ")"); do { *((volatile int*)__null) = 228; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
229# endif
230# 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"cond" ")"); do { *((volatile int*)__null) = 230; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((cond))
\
231 [](bool aCond) { \
232 if (MOZ_UNLIKELY(aCond)(__builtin_expect(!!(aCond), 0))) { \
233 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 ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 233); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
#cond ")"); do { *((volatile int*)__null) = 233; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
; \
234 } \
235 return aCond; \
236 }((cond))
237#else
238# 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" " (" ... ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 238); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
... ")"); do { *((volatile int*)__null) = 238; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
\
239 do { \
240 } while (false)
241# 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 241); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"cond" ")"); do { *((volatile int*)__null) = 241; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((cond))
static_cast<bool>(cond)
242#endif
243
244namespace mozilla {
245
246namespace dom::indexedDB {
247
248using namespace mozilla::dom::quota;
249using namespace mozilla::ipc;
250using mozilla::dom::quota::Client;
251
252namespace {
253
254class ConnectionPool;
255class Database;
256struct DatabaseActorInfo;
257class DatabaseFile;
258class DatabaseLoggingInfo;
259class DatabaseMaintenance;
260class Factory;
261class Maintenance;
262class OpenDatabaseOp;
263class TransactionBase;
264class TransactionDatabaseOperationBase;
265class VersionChangeTransaction;
266template <bool StatementHasIndexKeyBindings>
267struct ValuePopulateResponseHelper;
268
269/*******************************************************************************
270 * Constants
271 ******************************************************************************/
272
273const int32_t kStorageProgressGranularity = 1000;
274
275// Changing the value here will override the page size of new databases only.
276// A journal mode change and VACUUM are needed to change existing databases, so
277// the best way to do that is to use the schema version upgrade mechanism.
278const uint32_t kSQLitePageSizeOverride =
279#ifdef IDB_MOBILE
280 2048;
281#else
282 4096;
283#endif
284
285static_assert(kSQLitePageSizeOverride == /* mozStorage default */ 0 ||
286 (kSQLitePageSizeOverride % 2 == 0 &&
287 kSQLitePageSizeOverride >= 512 &&
288 kSQLitePageSizeOverride <= 65536),
289 "Must be 0 (disabled) or a power of 2 between 512 and 65536!");
290
291// Set to -1 to use SQLite's default, 0 to disable, or some positive number to
292// enforce a custom limit.
293const int32_t kMaxWALPages = 5000; // 20MB on desktop, 10MB on mobile.
294
295// Set to some multiple of the page size to grow the database in larger chunks.
296const uint32_t kSQLiteGrowthIncrement = kSQLitePageSizeOverride * 2;
297
298static_assert(kSQLiteGrowthIncrement >= 0 &&
299 kSQLiteGrowthIncrement % kSQLitePageSizeOverride == 0 &&
300 kSQLiteGrowthIncrement < uint32_t(INT32_MAX(2147483647)),
301 "Must be 0 (disabled) or a positive multiple of the page size!");
302
303// The maximum number of threads that can be used for database activity at a
304// single time. Please keep in sync with the constants in
305// test_connection_idle_maintenance*.js tests
306const uint32_t kMaxConnectionThreadCount = 20;
307
308static_assert(kMaxConnectionThreadCount, "Must have at least one thread!");
309
310// The maximum number of threads to keep when idle. Until we switch to the STS
311// pool, we can reduce the number of idle threads kept around thanks to the
312// grace timeout.
313const uint32_t kMaxIdleConnectionThreadCount = 1;
314
315static_assert(kMaxConnectionThreadCount >= kMaxIdleConnectionThreadCount,
316 "Idle thread limit must be less than total thread limit!");
317
318// The length of time that wanted idle threads will stay alive before being shut
319// down.
320const uint32_t kConnectionThreadMaxIdleMS = 30 * 1000; // 30 seconds
321
322// The length of time that excess idle threads will stay alive before being shut
323// down.
324const uint32_t kConnectionThreadGraceIdleMS = 500; // 0.5 seconds
325
326// The length of time that database connections will be held open after all
327// transactions have completed before doing idle maintenance. Please keep in
328// sync with the timeouts in test_connection_idle_maintenance*.js tests
329const uint32_t kConnectionIdleMaintenanceMS = 2 * 1000; // 2 seconds
330
331// The length of time that database connections will be held open after all
332// transactions and maintenance have completed.
333const uint32_t kConnectionIdleCloseMS = 10 * 1000; // 10 seconds
334
335#define SAVEPOINT_CLAUSE"SAVEPOINT sp;"_ns "SAVEPOINT sp;"_ns
336
337// For efficiency reasons, kEncryptedStreamBlockSize must be a multiple of large
338// 4k disk sectors.
339static_assert(kEncryptedStreamBlockSize % 4096 == 0);
340// Similarly, the file copy buffer size must be a multiple of the encrypted
341// block size.
342static_assert(kFileCopyBufferSize % kEncryptedStreamBlockSize == 0);
343
344constexpr auto kFileManagerDirectoryNameSuffix = u".files"_ns;
345constexpr auto kSQLiteSuffix = u".sqlite"_ns;
346constexpr auto kSQLiteJournalSuffix = u".sqlite-journal"_ns;
347constexpr auto kSQLiteSHMSuffix = u".sqlite-shm"_ns;
348constexpr auto kSQLiteWALSuffix = u".sqlite-wal"_ns;
349
350// The following constants define all names of binding parameters in statements,
351// where they are bound by name. This should include all parameter names which
352// are bound by name. Binding may be done by index when the statement definition
353// and binding are done in the same local scope, and no other reasons prevent
354// using the indexes (e.g. multiple statement variants with differing number or
355// order of parameters). Neither the styles of specifying parameter names
356// (literally vs. via these constants) nor the binding styles (by index vs. by
357// name) should not be mixed for the same statement. The decision must be made
358// for each statement based on the proximity of statement and binding calls.
359constexpr auto kStmtParamNameCurrentKey = "current_key"_ns;
360constexpr auto kStmtParamNameRangeBound = "range_bound"_ns;
361constexpr auto kStmtParamNameObjectStorePosition = "object_store_position"_ns;
362constexpr auto kStmtParamNameLowerKey = "lower_key"_ns;
363constexpr auto kStmtParamNameUpperKey = "upper_key"_ns;
364constexpr auto kStmtParamNameKey = "key"_ns;
365constexpr auto kStmtParamNameObjectStoreId = "object_store_id"_ns;
366constexpr auto kStmtParamNameIndexId = "index_id"_ns;
367// TODO: Maybe the uses of kStmtParamNameId should be replaced by more
368// specific constants such as kStmtParamNameObjectStoreId.
369constexpr auto kStmtParamNameId = "id"_ns;
370constexpr auto kStmtParamNameValue = "value"_ns;
371constexpr auto kStmtParamNameObjectDataKey = "object_data_key"_ns;
372constexpr auto kStmtParamNameIndexDataValues = "index_data_values"_ns;
373constexpr auto kStmtParamNameData = "data"_ns;
374constexpr auto kStmtParamNameFileIds = "file_ids"_ns;
375constexpr auto kStmtParamNameValueLocale = "value_locale"_ns;
376constexpr auto kStmtParamNameLimit = "limit"_ns;
377
378// The following constants define some names of columns in tables, which are
379// referred to in remote locations, e.g. in calls to
380// GetBindingClauseForKeyRange.
381constexpr auto kColumnNameKey = "key"_ns;
382constexpr auto kColumnNameValue = "value"_ns;
383constexpr auto kColumnNameAliasSortKey = "sort_column"_ns;
384
385// SQL fragments used at multiple locations.
386constexpr auto kOpenLimit = " LIMIT "_ns;
387
388// The deletion marker file is created before RemoveDatabaseFilesAndDirectory
389// begins deleting a database. It is removed as the last step of deletion. If a
390// deletion marker file is found when initializing the origin, the deletion
391// routine is run again to ensure that the database and all of its related files
392// are removed. The primary goal of this mechanism is to avoid situations where
393// a database has been partially deleted, leading to inconsistent state for the
394// origin.
395constexpr auto kIdbDeletionMarkerFilePrefix = u"idb-deleting-"_ns;
396
397const uint32_t kDeleteTimeoutMs = 1000;
398
399#ifdef DEBUG1
400
401const int32_t kDEBUGThreadPriority = nsISupportsPriority::PRIORITY_NORMAL;
402const uint32_t kDEBUGThreadSleepMS = 0;
403
404// Set to a non-zero number to enable debugging of transaction event targets.
405// It will cause sleeping after every transaction runnable!
406//
407// This can be useful for discovering race conditions related to switching to
408// another thread. Such races are usually avoided by using MozPromise or
409// RunAfterProcessingCurrentEvent. Chaos mode doesn't always help with
410// uncovering these issues, and only a precisely targeted sleep call can
411// simulate the problem.
412const uint32_t kDEBUGTransactionThreadSleepMS = 0;
413
414// Make sure that we notice if we ever accidentally check in a non-zero value.
415# ifdef MOZILLA_OFFICIAL
416static_assert(kDEBUGTransactionThreadSleepMS == 0);
417# endif
418
419#endif
420
421/*******************************************************************************
422 * Metadata classes
423 ******************************************************************************/
424
425// Can be instantiated either on the QuotaManager IO thread or on a
426// versionchange transaction thread. These threads can never race so this is
427// totally safe.
428struct FullIndexMetadata {
429 IndexMetadata mCommonMetadata = {0, nsString(), KeyPath(0), nsCString(),
430 false, false, false};
431
432 FlippedOnce<false> mDeleted;
433
434 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 434); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
434; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 434); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 434
; __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:
435
436 private:
437 ~FullIndexMetadata() = default;
438};
439
440using IndexTable = nsTHashMap<nsUint64HashKey, SafeRefPtr<FullIndexMetadata>>;
441
442// Can be instantiated either on the QuotaManager IO thread or on a
443// versionchange transaction thread. These threads can never race so this is
444// totally safe.
445struct FullObjectStoreMetadata {
446 ObjectStoreMetadata mCommonMetadata;
447 IndexTable mIndexes;
448
449 // The auto increment ids are touched on both the background thread and the
450 // transaction I/O thread, and they must be kept in sync, so we need a mutex
451 // to protect them.
452 struct AutoIncrementIds {
453 int64_t next;
454 int64_t committed;
455 };
456 DataMutex<AutoIncrementIds> mAutoIncrementIds;
457
458 FlippedOnce<false> mDeleted;
459
460 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
460; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 460
; __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:
;
461
462 bool HasLiveIndexes() const;
463
464 FullObjectStoreMetadata(ObjectStoreMetadata aCommonMetadata,
465 const AutoIncrementIds& aAutoIncrementIds)
466 : mCommonMetadata{std::move(aCommonMetadata)},
467 mAutoIncrementIds{AutoIncrementIds{aAutoIncrementIds},
468 "FullObjectStoreMetadata"} {}
469
470 private:
471 ~FullObjectStoreMetadata() = default;
472};
473
474using ObjectStoreTable =
475 nsTHashMap<nsUint64HashKey, SafeRefPtr<FullObjectStoreMetadata>>;
476
477static_assert(
478 std::is_same_v<IndexOrObjectStoreId,
479 std::remove_cv_t<std::remove_reference_t<
480 decltype(std::declval<const ObjectStoreGetParams&>()
481 .objectStoreId())>>>);
482static_assert(
483 std::is_same_v<
484 IndexOrObjectStoreId,
485 std::remove_cv_t<std::remove_reference_t<
486 decltype(std::declval<const IndexGetParams&>().objectStoreId())>>>);
487
488struct FullDatabaseMetadata final : AtomicSafeRefCounted<FullDatabaseMetadata> {
489 DatabaseMetadata mCommonMetadata;
490 nsCString mDatabaseId;
491 nsString mFilePath;
492 ObjectStoreTable mObjectStores;
493
494 IndexOrObjectStoreId mNextObjectStoreId = 0;
495 IndexOrObjectStoreId mNextIndexId = 0;
496
497 public:
498 explicit FullDatabaseMetadata(const DatabaseMetadata& aCommonMetadata)
499 : mCommonMetadata(aCommonMetadata) {
500 AssertIsOnBackgroundThread();
501 }
502
503 [[nodiscard]] SafeRefPtr<FullDatabaseMetadata> Duplicate() const;
504
505 MOZ_DECLARE_REFCOUNTED_TYPENAME(FullDatabaseMetadata)const char* typeName() const { return "FullDatabaseMetadata";
} size_t typeSize() const { return sizeof(*this); }
506};
507
508template <class Enumerable>
509auto MatchMetadataNameOrId(const Enumerable& aEnumerable,
510 IndexOrObjectStoreId aId,
511 Maybe<const nsAString&> aName = Nothing()) {
512 AssertIsOnBackgroundThread();
513 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 513); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aId" ")"); do
{ *((volatile int*)__null) = 513; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
514
515 const auto it = std::find_if(
516 aEnumerable.cbegin(), aEnumerable.cend(),
517 [aId, aName](const auto& entry) {
518 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 518); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey() != 0"
")"); do { *((volatile int*)__null) = 518; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
519
520 const auto& value = entry.GetData();
521 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "value" ")");
do { *((volatile int*)__null) = 521; __attribute__((nomerge)
) ::abort(); } while (false); } } while (false)
;
522
523 return !value->mDeleted &&
524 (aId == value->mCommonMetadata.id() ||
525 (aName && *aName == value->mCommonMetadata.name()));
526 });
527
528 return ToMaybeRef(it != aEnumerable.cend() ? it->GetData().unsafeGetRawPtr()
529 : nullptr);
530}
531
532/*******************************************************************************
533 * SQLite functions
534 ******************************************************************************/
535
536// WARNING: the hash function used for the database name must not change.
537// That's why this function exists separately from mozilla::HashString(), even
538// though it is (at the time of writing) equivalent. See bug 780408 and bug
539// 940315 for details.
540uint32_t HashName(const nsAString& aName) {
541 struct Helper {
542 static uint32_t RotateBitsLeft32(uint32_t aValue, uint8_t aBits) {
543 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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 543); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aBits < 32"
")"); do { *((volatile int*)__null) = 543; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
544 return (aValue << aBits) | (aValue >> (32 - aBits));
545 }
546 };
547
548 static const uint32_t kGoldenRatioU32 = 0x9e3779b9u;
549
550 return std::accumulate(aName.BeginReading(), aName.EndReading(), uint32_t(0),
551 [](uint32_t hash, char16_t ch) {
552 return kGoldenRatioU32 *
553 (Helper::RotateBitsLeft32(hash, 5) ^ ch);
554 });
555}
556
557nsresult ClampResultCode(nsresult aResultCode) {
558 if (NS_SUCCEEDED(aResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(aResultCode)), 1)
))
||
559 NS_ERROR_GET_MODULE(aResultCode) == NS_ERROR_MODULE_DOM_INDEXEDDB33) {
560 return aResultCode;
561 }
562
563 switch (aResultCode) {
564 case NS_ERROR_FILE_NO_DEVICE_SPACE:
565 return NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR;
566 case NS_ERROR_STORAGE_CONSTRAINT:
567 return NS_ERROR_DOM_INDEXEDDB_CONSTRAINT_ERR;
568 default:
569#ifdef DEBUG1
570 nsPrintfCString message("Converting non-IndexedDB error code (0x%" PRIX32"X"
571 ") to "
572 "NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR",
573 static_cast<uint32_t>(aResultCode));
574 NS_WARNING(message.get())NS_DebugBreak(NS_DEBUG_WARNING, message.get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 574)
;
575#else
576 ;
577#endif
578 }
579
580 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 580, "UnknownErr")
;
581 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
582}
583
584Result<nsCOMPtr<nsIFileURL>, nsresult> GetDatabaseFileURL(
585 nsIFile& aDatabaseFile, const int64_t aDirectoryLockId,
586 const Maybe<CipherKey>& aMaybeKey) {
587 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 587); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= -1"
")"); do { *((volatile int*)__null) = 587; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
588
589 QM_TRY_INSPECT(auto tryResult782 = (::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
(!!(tryResult782.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\")"
, tryResult782.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 593, mozilla::dom::quota::Severity::Error); return tryResult782
.propagateErr(); } const auto& protocolHandler = tryResult782
.inspect();
590 const auto& protocolHandler,auto tryResult782 = (::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
(!!(tryResult782.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\")"
, tryResult782.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 593, mozilla::dom::quota::Severity::Error); return tryResult782
.propagateErr(); } const auto& protocolHandler = tryResult782
.inspect();
591 MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<nsIProtocolHandler>,auto tryResult782 = (::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
(!!(tryResult782.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\")"
, tryResult782.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 593, mozilla::dom::quota::Severity::Error); return tryResult782
.propagateErr(); } const auto& protocolHandler = tryResult782
.inspect();
592 MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult782 = (::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
(!!(tryResult782.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\")"
, tryResult782.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 593, mozilla::dom::quota::Severity::Error); return tryResult782
.propagateErr(); } const auto& protocolHandler = tryResult782
.inspect();
593 NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX "file"))auto tryResult782 = (::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
(!!(tryResult782.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\")"
, tryResult782.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 593, mozilla::dom::quota::Severity::Error); return tryResult782
.propagateErr(); } const auto& protocolHandler = tryResult782
.inspect();
;
594
595 QM_TRY_INSPECT(const auto& fileHandler,auto tryResult783 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)
...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult783
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)"
, tryResult783.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 598, mozilla::dom::quota::Severity::Error); return tryResult783
.propagateErr(); } const auto& fileHandler = tryResult783
.inspect();
596 MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<nsIFileProtocolHandler>,auto tryResult783 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)
...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult783
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)"
, tryResult783.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 598, mozilla::dom::quota::Severity::Error); return tryResult783
.propagateErr(); } const auto& fileHandler = tryResult783
.inspect();
597 MOZ_SELECT_OVERLOAD(do_QueryInterface),auto tryResult783 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)
...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult783
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)"
, tryResult783.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 598, mozilla::dom::quota::Severity::Error); return tryResult783
.propagateErr(); } const auto& fileHandler = tryResult783
.inspect();
598 protocolHandler))auto tryResult783 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)
...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult783
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)"
, tryResult783.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 598, mozilla::dom::quota::Severity::Error); return tryResult783
.propagateErr(); } const auto& fileHandler = tryResult783
.inspect();
;
599
600 QM_TRY_INSPECT(const auto& mutator, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult784 = (::mozilla::ToResultInvoke< nsCOMPtr<
nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail
::DerefedType<decltype(fileHandler)>::NewFileURIMutator
), (fileHandler), &aDatabaseFile)); if ((__builtin_expect
(!!(tryResult784.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)"
, tryResult784.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 602, mozilla::dom::quota::Severity::Error); return tryResult784
.propagateErr(); } const auto& mutator = tryResult784.inspect
();
601 nsCOMPtr<nsIURIMutator>, fileHandler,auto tryResult784 = (::mozilla::ToResultInvoke< nsCOMPtr<
nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail
::DerefedType<decltype(fileHandler)>::NewFileURIMutator
), (fileHandler), &aDatabaseFile)); if ((__builtin_expect
(!!(tryResult784.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)"
, tryResult784.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 602, mozilla::dom::quota::Severity::Error); return tryResult784
.propagateErr(); } const auto& mutator = tryResult784.inspect
();
602 NewFileURIMutator, &aDatabaseFile))auto tryResult784 = (::mozilla::ToResultInvoke< nsCOMPtr<
nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail
::DerefedType<decltype(fileHandler)>::NewFileURIMutator
), (fileHandler), &aDatabaseFile)); if ((__builtin_expect
(!!(tryResult784.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)"
, tryResult784.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 602, mozilla::dom::quota::Severity::Error); return tryResult784
.propagateErr(); } const auto& mutator = tryResult784.inspect
();
;
603
604 // aDirectoryLockId should only be -1 when we are called
605 // - from DatabaseFileManager::InitDirectory when the temporary storage
606 // hasn't been initialized yet. At that time, the in-memory objects (e.g.
607 // OriginInfo) are only being created so it doesn't make sense to tunnel
608 // quota information to QuotaVFS to get corresponding QuotaObject instances
609 // for SQLite files.
610 // - from DeleteDatabaseOp::LoadPreviousVersion, since this might require
611 // temporarily exceeding the quota limit before the database can be
612 // deleted.
613 const nsCString directoryLockIdClause =
614 "&directoryLockId="_ns + IntToCString(aDirectoryLockId);
615
616 const auto keyClause = [&aMaybeKey] {
617 nsAutoCString keyClause;
618 if (aMaybeKey) {
619 keyClause.AssignLiteral("&key=");
620 for (uint8_t byte : IndexedDBCipherStrategy::SerializeKey(*aMaybeKey)) {
621 keyClause.AppendPrintf("%02x", byte);
622 }
623 }
624 return keyClause;
625 }();
626
627 QM_TRY_UNWRAP(auto result, ([&mutator, &directoryLockIdClause, &keyClause] {auto tryResult785 = (([&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
(!!(tryResult785.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); }())"
, tryResult785.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 636, mozilla::dom::quota::Severity::Error); return tryResult785
.propagateErr(); } auto result = tryResult785.unwrap();
628 nsCOMPtr<nsIFileURL> result;auto tryResult785 = (([&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
(!!(tryResult785.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); }())"
, tryResult785.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 636, mozilla::dom::quota::Severity::Error); return tryResult785
.propagateErr(); } auto result = tryResult785.unwrap();
629 nsresult rv = NS_MutateURI(mutator)auto tryResult785 = (([&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
(!!(tryResult785.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); }())"
, tryResult785.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 636, mozilla::dom::quota::Severity::Error); return tryResult785
.propagateErr(); } auto result = tryResult785.unwrap();
630 .SetQuery("cache=private"_ns +auto tryResult785 = (([&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
(!!(tryResult785.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); }())"
, tryResult785.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 636, mozilla::dom::quota::Severity::Error); return tryResult785
.propagateErr(); } auto result = tryResult785.unwrap();
631 directoryLockIdClause + keyClause)auto tryResult785 = (([&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
(!!(tryResult785.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); }())"
, tryResult785.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 636, mozilla::dom::quota::Severity::Error); return tryResult785
.propagateErr(); } auto result = tryResult785.unwrap();
632 .Finalize(result);auto tryResult785 = (([&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
(!!(tryResult785.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); }())"
, tryResult785.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 636, mozilla::dom::quota::Severity::Error); return tryResult785
.propagateErr(); } auto result = tryResult785.unwrap();
633 return NS_SUCCEEDED(rv)auto tryResult785 = (([&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
(!!(tryResult785.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); }())"
, tryResult785.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 636, mozilla::dom::quota::Severity::Error); return tryResult785
.propagateErr(); } auto result = tryResult785.unwrap();
634 ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result}auto tryResult785 = (([&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
(!!(tryResult785.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); }())"
, tryResult785.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 636, mozilla::dom::quota::Severity::Error); return tryResult785
.propagateErr(); } auto result = tryResult785.unwrap();
635 : Err(rv);auto tryResult785 = (([&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
(!!(tryResult785.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); }())"
, tryResult785.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 636, mozilla::dom::quota::Severity::Error); return tryResult785
.propagateErr(); } auto result = tryResult785.unwrap();
636 }()))auto tryResult785 = (([&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
(!!(tryResult785.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); }())"
, tryResult785.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 636, mozilla::dom::quota::Severity::Error); return tryResult785
.propagateErr(); } auto result = tryResult785.unwrap();
;
637
638 return result;
639}
640
641nsLiteralCString GetDefaultSynchronousMode() {
642 return IndexedDatabaseManager::FullSynchronous() ? "FULL"_ns : "NORMAL"_ns;
643}
644
645nsresult SetDefaultPragmas(mozIStorageConnection& aConnection) {
646 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 646); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 646; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
647
648 static constexpr auto kBuiltInPragmas =
649 // We use foreign keys in DEBUG builds only because there is a performance
650 // cost to using them.
651 "PRAGMA foreign_keys = "
652#ifdef DEBUG1
653 "ON"
654#else
655 "OFF"
656#endif
657 ";"
658
659 // The "INSERT OR REPLACE" statement doesn't fire the update trigger,
660 // instead it fires only the insert trigger. This confuses the update
661 // refcount function. This behavior changes with enabled recursive
662 // triggers, so the statement fires the delete trigger first and then the
663 // insert trigger.
664 "PRAGMA recursive_triggers = ON;"
665
666 // We aggressively truncate the database file when idle so don't bother
667 // overwriting the WAL with 0 during active periods.
668 "PRAGMA secure_delete = OFF;"_ns;
669
670 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL(kBuiltInPragmas))){auto tryResult786 = (ToResult(aConnection.ExecuteSimpleSQL(kBuiltInPragmas
))); static_assert(std::is_empty_v<typename decltype(tryResult786
)::ok_type>); if ((__builtin_expect(!!(tryResult786.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(kBuiltInPragmas))"
, tryResult786.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 670, mozilla::dom::quota::Severity::Error); return tryResult786
.propagateErr(); }}
;
671
672 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL(nsAutoCString{{auto tryResult787 = (ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString
{ "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode() + ";"_ns
}))); static_assert(std::is_empty_v<typename decltype(tryResult787
)::ok_type>); if ((__builtin_expect(!!(tryResult787.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString{ \"PRAGMA synchronous = \"_ns + GetDefaultSynchronousMode() + \";\"_ns}))"
, tryResult787.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 673, mozilla::dom::quota::Severity::Error); return tryResult787
.propagateErr(); }}
673 "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode() + ";"_ns}))){auto tryResult787 = (ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString
{ "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode() + ";"_ns
}))); static_assert(std::is_empty_v<typename decltype(tryResult787
)::ok_type>); if ((__builtin_expect(!!(tryResult787.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString{ \"PRAGMA synchronous = \"_ns + GetDefaultSynchronousMode() + \";\"_ns}))"
, tryResult787.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 673, mozilla::dom::quota::Severity::Error); return tryResult787
.propagateErr(); }}
;
674
675#ifndef IDB_MOBILE
676 if (kSQLiteGrowthIncrement) {
677 // This is just an optimization so ignore the failure if the disk is
678 // currently too full.
679 QM_TRY(QM_OR_ELSE_WARN_IF({auto tryResult788 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 686, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult788)::ok_type>); if ((__builtin_expect(!!(tryResult788
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 686, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult788.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 686, mozilla::dom::quota::Severity::Error); return tryResult788
.propagateErr(); }}
680 // Expression.{auto tryResult788 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 686, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult788)::ok_type>); if ((__builtin_expect(!!(tryResult788
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 686, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult788.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 686, mozilla::dom::quota::Severity::Error); return tryResult788
.propagateErr(); }}
681 MOZ_TO_RESULT({auto tryResult788 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 686, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult788)::ok_type>); if ((__builtin_expect(!!(tryResult788
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 686, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult788.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 686, mozilla::dom::quota::Severity::Error); return tryResult788
.propagateErr(); }}
682 aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns)),{auto tryResult788 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 686, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult788)::ok_type>); if ((__builtin_expect(!!(tryResult788
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 686, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult788.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 686, mozilla::dom::quota::Severity::Error); return tryResult788
.propagateErr(); }}
683 // Predicate.{auto tryResult788 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 686, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult788)::ok_type>); if ((__builtin_expect(!!(tryResult788
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 686, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult788.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 686, mozilla::dom::quota::Severity::Error); return tryResult788
.propagateErr(); }}
684 IsSpecificError<NS_ERROR_FILE_TOO_BIG>,{auto tryResult788 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 686, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult788)::ok_type>); if ((__builtin_expect(!!(tryResult788
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 686, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult788.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 686, mozilla::dom::quota::Severity::Error); return tryResult788
.propagateErr(); }}
685 // Fallback.{auto tryResult788 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 686, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult788)::ok_type>); if ((__builtin_expect(!!(tryResult788
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 686, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult788.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 686, mozilla::dom::quota::Severity::Error); return tryResult788
.propagateErr(); }}
686 ErrToDefaultOk<>)){auto tryResult788 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 686, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult788)::ok_type>); if ((__builtin_expect(!!(tryResult788
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 686, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult788.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 686, mozilla::dom::quota::Severity::Error); return tryResult788
.propagateErr(); }}
;
687 }
688#endif // IDB_MOBILE
689
690 return NS_OK;
691}
692
693nsresult SetJournalMode(mozIStorageConnection& aConnection) {
694 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 694); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 694; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
695
696 // Try enabling WAL mode. This can fail in various circumstances so we have to
697 // check the results here.
698 constexpr auto journalModeQueryStart = "PRAGMA journal_mode = "_ns;
699 constexpr auto journalModeWAL = "wal"_ns;
700
701 QM_TRY_INSPECT(const auto& stmt,auto tryResult789 = (CreateAndExecuteSingleStepStatement( aConnection
, journalModeQueryStart + journalModeWAL)); if ((__builtin_expect
(!!(tryResult789.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)"
, tryResult789.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 703, mozilla::dom::quota::Severity::Error); return tryResult789
.propagateErr(); } const auto& stmt = tryResult789.inspect
();
702 CreateAndExecuteSingleStepStatement(auto tryResult789 = (CreateAndExecuteSingleStepStatement( aConnection
, journalModeQueryStart + journalModeWAL)); if ((__builtin_expect
(!!(tryResult789.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)"
, tryResult789.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 703, mozilla::dom::quota::Severity::Error); return tryResult789
.propagateErr(); } const auto& stmt = tryResult789.inspect
();
703 aConnection, journalModeQueryStart + journalModeWAL))auto tryResult789 = (CreateAndExecuteSingleStepStatement( aConnection
, journalModeQueryStart + journalModeWAL)); if ((__builtin_expect
(!!(tryResult789.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)"
, tryResult789.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 703, mozilla::dom::quota::Severity::Error); return tryResult789
.propagateErr(); } const auto& stmt = tryResult789.inspect
();
;
704
705 QM_TRY_INSPECT(auto tryResult790 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult790.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult790.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 707, mozilla::dom::quota::Severity::Error); return tryResult790
.propagateErr(); } const auto& journalMode = tryResult790
.inspect();
706 const auto& journalMode,auto tryResult790 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult790.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult790.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 707, mozilla::dom::quota::Severity::Error); return tryResult790
.propagateErr(); } const auto& journalMode = tryResult790
.inspect();
707 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCString, *stmt, GetUTF8String, 0))auto tryResult790 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult790.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult790.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 707, mozilla::dom::quota::Severity::Error); return tryResult790
.propagateErr(); } const auto& journalMode = tryResult790
.inspect();
;
708
709 if (journalMode.Equals(journalModeWAL)) {
710 // WAL mode successfully enabled. Maybe set limits on its size here.
711 if (kMaxWALPages >= 0) {
712 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL({auto tryResult791 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA wal_autocheckpoint = "_ns
+ IntToCString(kMaxWALPages)))); static_assert(std::is_empty_v
<typename decltype(tryResult791)::ok_type>); if ((__builtin_expect
(!!(tryResult791.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL( \"PRAGMA wal_autocheckpoint = \"_ns + IntToCString(kMaxWALPages)))"
, tryResult791.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 713, mozilla::dom::quota::Severity::Error); return tryResult791
.propagateErr(); }}
713 "PRAGMA wal_autocheckpoint = "_ns + IntToCString(kMaxWALPages)))){auto tryResult791 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA wal_autocheckpoint = "_ns
+ IntToCString(kMaxWALPages)))); static_assert(std::is_empty_v
<typename decltype(tryResult791)::ok_type>); if ((__builtin_expect
(!!(tryResult791.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL( \"PRAGMA wal_autocheckpoint = \"_ns + IntToCString(kMaxWALPages)))"
, tryResult791.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 713, mozilla::dom::quota::Severity::Error); return tryResult791
.propagateErr(); }}
;
714 }
715 } else {
716 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 716)
;
717#ifdef IDB_MOBILE
718 QM_TRY(MOZ_TO_RESULT({auto tryResult792 = (ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart
+ "truncate"_ns))); static_assert(std::is_empty_v<typename
decltype(tryResult792)::ok_type>); if ((__builtin_expect(
!!(tryResult792.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart + \"truncate\"_ns))"
, tryResult792.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 719, mozilla::dom::quota::Severity::Error); return tryResult792
.propagateErr(); }}
719 aConnection.ExecuteSimpleSQL(journalModeQueryStart + "truncate"_ns))){auto tryResult792 = (ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart
+ "truncate"_ns))); static_assert(std::is_empty_v<typename
decltype(tryResult792)::ok_type>); if ((__builtin_expect(
!!(tryResult792.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart + \"truncate\"_ns))"
, tryResult792.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 719, mozilla::dom::quota::Severity::Error); return tryResult792
.propagateErr(); }}
;
720#endif
721 }
722
723 return NS_OK;
724}
725
726Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult> OpenDatabase(
727 mozIStorageService& aStorageService, nsIFileURL& aFileURL,
728 const uint32_t aTelemetryId = 0) {
729 const nsAutoCString telemetryFilename =
730 aTelemetryId ? "indexedDB-"_ns + IntToCString(aTelemetryId) +
731 NS_ConvertUTF16toUTF8(kSQLiteSuffix)
732 : nsAutoCString();
733
734 QM_TRY_UNWRAP(auto connection,auto tryResult793 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult793
.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)"
, tryResult793.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 738, mozilla::dom::quota::Severity::Error); return tryResult793
.propagateErr(); } auto connection = tryResult793.unwrap();
735 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult793 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult793
.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)"
, tryResult793.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 738, mozilla::dom::quota::Severity::Error); return tryResult793
.propagateErr(); } auto connection = tryResult793.unwrap();
736 nsCOMPtr<mozIStorageConnection>, aStorageService,auto tryResult793 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult793
.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)"
, tryResult793.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 738, mozilla::dom::quota::Severity::Error); return tryResult793
.propagateErr(); } auto connection = tryResult793.unwrap();
737 OpenDatabaseWithFileURL, &aFileURL, telemetryFilename,auto tryResult793 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult793
.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)"
, tryResult793.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 738, mozilla::dom::quota::Severity::Error); return tryResult793
.propagateErr(); } auto connection = tryResult793.unwrap();
738 mozIStorageService::CONNECTION_INTERRUPTIBLE))auto tryResult793 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult793
.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)"
, tryResult793.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 738, mozilla::dom::quota::Severity::Error); return tryResult793
.propagateErr(); } auto connection = tryResult793.unwrap();
;
739
740 return WrapMovingNotNull(std::move(connection));
741}
742
743Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult>
744OpenDatabaseAndHandleBusy(mozIStorageService& aStorageService,
745 nsIFileURL& aFileURL,
746 const uint32_t aTelemetryId = 0) {
747 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 747); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 747; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
748 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 748); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 748; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
749
750 using ConnectionType = Maybe<MovingNotNull<nsCOMPtr<mozIStorageConnection>>>;
751
752 QM_TRY_UNWRAP(auto connection,auto tryResult794 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult794
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 762, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult794.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, mozilla::dom::quota::Severity::Error); return tryResult794
.propagateErr(); } auto connection = tryResult794.unwrap();
753 QM_OR_ELSE_WARN_IF(auto tryResult794 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult794
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 762, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult794.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, mozilla::dom::quota::Severity::Error); return tryResult794
.propagateErr(); } auto connection = tryResult794.unwrap();
754 // Expressionauto tryResult794 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult794
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 762, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult794.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, mozilla::dom::quota::Severity::Error); return tryResult794
.propagateErr(); } auto connection = tryResult794.unwrap();
755 OpenDatabase(aStorageService, aFileURL, aTelemetryId)auto tryResult794 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult794
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 762, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult794.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, mozilla::dom::quota::Severity::Error); return tryResult794
.propagateErr(); } auto connection = tryResult794.unwrap();
756 .map([](auto connection) -> ConnectionType {auto tryResult794 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult794
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 762, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult794.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, mozilla::dom::quota::Severity::Error); return tryResult794
.propagateErr(); } auto connection = tryResult794.unwrap();
757 return Some(std::move(connection));auto tryResult794 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult794
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 762, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult794.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, mozilla::dom::quota::Severity::Error); return tryResult794
.propagateErr(); } auto connection = tryResult794.unwrap();
758 }),auto tryResult794 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult794
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 762, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult794.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, mozilla::dom::quota::Severity::Error); return tryResult794
.propagateErr(); } auto connection = tryResult794.unwrap();
759 // Predicate.auto tryResult794 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult794
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 762, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult794.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, mozilla::dom::quota::Severity::Error); return tryResult794
.propagateErr(); } auto connection = tryResult794.unwrap();
760 IsSpecificError<NS_ERROR_STORAGE_BUSY>,auto tryResult794 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult794
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 762, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult794.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, mozilla::dom::quota::Severity::Error); return tryResult794
.propagateErr(); } auto connection = tryResult794.unwrap();
761 // Fallback.auto tryResult794 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult794
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 762, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult794.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, mozilla::dom::quota::Severity::Error); return tryResult794
.propagateErr(); } auto connection = tryResult794.unwrap();
762 ErrToDefaultOk<ConnectionType>))auto tryResult794 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult794
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 762, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult794.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 762, mozilla::dom::quota::Severity::Error); return tryResult794
.propagateErr(); } auto connection = tryResult794.unwrap();
;
763
764 if (connection.isNothing()) {
765#ifdef DEBUG1
766 {
767 nsCString path;
768 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 768); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aFileURL.GetFileName(path))"
")"); do { *((volatile int*)__null) = 768; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
769
770 nsPrintfCString message(
771 "Received NS_ERROR_STORAGE_BUSY when attempting to open database "
772 "'%s', retrying for up to 10 seconds",
773 path.get());
774 NS_WARNING(message.get())NS_DebugBreak(NS_DEBUG_WARNING, message.get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 774)
;
775 }
776#endif
777
778 // Another thread must be checkpointing the WAL. Wait up to 10 seconds for
779 // that to complete.
780 const TimeStamp start = TimeStamp::NowLoRes();
781
782 do {
783 PR_Sleep(PR_MillisecondsToInterval(100));
784
785 QM_TRY_UNWRAP(connection,auto tryResult795 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult795
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 799, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult795.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } connection = tryResult795.unwrap();
786 QM_OR_ELSE_WARN_IF(auto tryResult795 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult795
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 799, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult795.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } connection = tryResult795.unwrap();
787 // Expression.auto tryResult795 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult795
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 799, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult795.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } connection = tryResult795.unwrap();
788 OpenDatabase(aStorageService, aFileURL, aTelemetryId)auto tryResult795 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult795
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 799, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult795.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } connection = tryResult795.unwrap();
789 .map([](auto connection) -> ConnectionType {auto tryResult795 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult795
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 799, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult795.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } connection = tryResult795.unwrap();
790 return Some(std::move(connection));auto tryResult795 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult795
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 799, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult795.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } connection = tryResult795.unwrap();
791 }),auto tryResult795 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult795
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 799, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult795.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } connection = tryResult795.unwrap();
792 // Predicate.auto tryResult795 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult795
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 799, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult795.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } connection = tryResult795.unwrap();
793 ([&start](nsresult aValue) {auto tryResult795 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult795
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 799, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult795.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } connection = tryResult795.unwrap();
794 return aValue == NS_ERROR_STORAGE_BUSY &&auto tryResult795 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult795
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 799, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult795.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } connection = tryResult795.unwrap();
795 TimeStamp::NowLoRes() - start <=auto tryResult795 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult795
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 799, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult795.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } connection = tryResult795.unwrap();
796 TimeDuration::FromSeconds(10);auto tryResult795 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult795
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 799, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult795.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } connection = tryResult795.unwrap();
797 }),auto tryResult795 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult795
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 799, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult795.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } connection = tryResult795.unwrap();
798 // Fallback.auto tryResult795 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult795
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 799, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult795.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } connection = tryResult795.unwrap();
799 ErrToDefaultOk<ConnectionType>))auto tryResult795 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult795
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 799, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult795.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 799, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } connection = tryResult795.unwrap();
;
800 } while (connection.isNothing());
801 }
802
803 return connection.extract();
804}
805
806// Returns true if a given nsIFile exists and is a directory. Returns false if
807// it doesn't exist. Returns an error if it exists, but is not a directory, or
808// any other error occurs.
809Result<bool, nsresult> ExistsAsDirectory(nsIFile& aDirectory) {
810 QM_TRY_INSPECT(const bool& exists,auto tryResult796 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult796.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists)"
, tryResult796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 811, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } const bool& exists = tryResult796.inspect
();
811 MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, Exists))auto tryResult796 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult796.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists)"
, tryResult796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 811, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } const bool& exists = tryResult796.inspect
();
;
812
813 if (exists) {
814 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult797 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult797.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory)"
, tryResult797.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 815, mozilla::dom::quota::Severity::Error); return tryResult797
.propagateErr(); } const bool& isDirectory = tryResult797
.inspect();
815 MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, IsDirectory))auto tryResult797 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult797.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory)"
, tryResult797.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 815, mozilla::dom::quota::Severity::Error); return tryResult797
.propagateErr(); } const bool& isDirectory = tryResult797
.inspect();
;
816
817 QM_TRY(OkIf(isDirectory), Err(NS_ERROR_FAILURE)){auto tryResult798 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult798)::ok_type>); if
((__builtin_expect(!!(tryResult798.isErr()), 0))) { auto tryTempError
__attribute__((__unused__)) = tryResult798.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(isDirectory)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 817, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Err(NS_ERROR_FAILURE)); }}
;
818 }
819
820 return exists;
821}
822
823constexpr nsresult mapNoDeviceSpaceError(nsresult aRv) {
824 if (aRv == NS_ERROR_FILE_NO_DEVICE_SPACE) {
825 // mozstorage translates SQLITE_FULL to
826 // NS_ERROR_FILE_NO_DEVICE_SPACE, which we know better as
827 // NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR.
828 return NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR;
829 }
830 return aRv;
831}
832
833Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult>
834CreateStorageConnection(nsIFile& aDBFile, nsIFile& aFMDirectory,
835 const nsAString& aName, const nsACString& aOrigin,
836 const int64_t aDirectoryLockId,
837 const uint32_t aTelemetryId,
838 const Maybe<CipherKey>& aMaybeKey) {
839 AssertIsOnIOThread();
840 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 840); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= -1"
")"); do { *((volatile int*)__null) = 840; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
841
842 AUTO_PROFILER_LABEL("CreateStorageConnection", DOM)mozilla::AutoProfilerLabel raiiObject842( "CreateStorageConnection"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
843
844 QM_TRY_INSPECT(const auto& dbFileUrl,auto tryResult799 = (GetDatabaseFileURL(aDBFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult799.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey)"
, tryResult799.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 845, mozilla::dom::quota::Severity::Error); return tryResult799
.propagateErr(); } const auto& dbFileUrl = tryResult799.inspect
();
845 GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey))auto tryResult799 = (GetDatabaseFileURL(aDBFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult799.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey)"
, tryResult799.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 845, mozilla::dom::quota::Severity::Error); return tryResult799
.propagateErr(); } const auto& dbFileUrl = tryResult799.inspect
();
;
846
847 QM_TRY_INSPECT(const auto& storageService,auto tryResult800 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult800.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\")"
, tryResult800.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 850, mozilla::dom::quota::Severity::Error); return tryResult800
.propagateErr(); } const auto& storageService = tryResult800
.inspect();
848 MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<mozIStorageService>,auto tryResult800 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult800.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\")"
, tryResult800.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 850, mozilla::dom::quota::Severity::Error); return tryResult800
.propagateErr(); } const auto& storageService = tryResult800
.inspect();
849 MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult800 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult800.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\")"
, tryResult800.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 850, mozilla::dom::quota::Severity::Error); return tryResult800
.propagateErr(); } const auto& storageService = tryResult800
.inspect();
850 MOZ_STORAGE_SERVICE_CONTRACTID))auto tryResult800 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult800.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\")"
, tryResult800.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 850, mozilla::dom::quota::Severity::Error); return tryResult800
.propagateErr(); } const auto& storageService = tryResult800
.inspect();
;
851
852 QM_TRY_UNWRAP(auto tryResult801 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult801.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 868, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } auto connection = tryResult801.unwrap();
853 auto connection,auto tryResult801 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult801.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 868, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } auto connection = tryResult801.unwrap();
854 QM_OR_ELSE_WARN_IF(auto tryResult801 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult801.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 868, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } auto connection = tryResult801.unwrap();
855 // Expression.auto tryResult801 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult801.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 868, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } auto connection = tryResult801.unwrap();
856 OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)auto tryResult801 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult801.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 868, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } auto connection = tryResult801.unwrap();
857 .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> {auto tryResult801 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult801.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 868, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } auto connection = tryResult801.unwrap();
858 return std::move(connection).unwrapBasePtr();auto tryResult801 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult801.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 868, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } auto connection = tryResult801.unwrap();
859 }),auto tryResult801 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult801.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 868, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } auto connection = tryResult801.unwrap();
860 // Predicate.auto tryResult801 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult801.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 868, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } auto connection = tryResult801.unwrap();
861 ([&aName](nsresult aValue) {auto tryResult801 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult801.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 868, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } auto connection = tryResult801.unwrap();
862 // If we're just opening the database during origin initialization,auto tryResult801 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult801.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 868, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } auto connection = tryResult801.unwrap();
863 // then we don't want to erase any files. The failure here will failauto tryResult801 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult801.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 868, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } auto connection = tryResult801.unwrap();
864 // origin initialization too.auto tryResult801 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult801.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 868, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } auto connection = tryResult801.unwrap();
865 return IsDatabaseCorruptionError(aValue) && !aName.IsVoid();auto tryResult801 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult801.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 868, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } auto connection = tryResult801.unwrap();
866 }),auto tryResult801 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult801.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 868, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } auto connection = tryResult801.unwrap();
867 // Fallback.auto tryResult801 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult801.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 868, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } auto connection = tryResult801.unwrap();
868 ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>))auto tryResult801 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult801.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 868, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 868, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } auto connection = tryResult801.unwrap();
;
869
870 if (!connection) {
871 // XXX Shouldn't we also update quota usage?
872
873 // Nuke the database file.
874 QM_TRY(MOZ_TO_RESULT(aDBFile.Remove(false))){auto tryResult802 = (ToResult(aDBFile.Remove(false))); static_assert
(std::is_empty_v<typename decltype(tryResult802)::ok_type>
); if ((__builtin_expect(!!(tryResult802.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aDBFile.Remove(false))", tryResult802
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 874, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); }}
;
875 QM_TRY_INSPECT(const bool& existsAsDirectory,auto tryResult803 = (ExistsAsDirectory(aFMDirectory)); if ((__builtin_expect
(!!(tryResult803.isErr()), 0))) { mozilla::dom::quota::HandleError
("ExistsAsDirectory(aFMDirectory)", tryResult803.inspectErr()
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 876, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); } const bool& existsAsDirectory = tryResult803
.inspect();
876 ExistsAsDirectory(aFMDirectory))auto tryResult803 = (ExistsAsDirectory(aFMDirectory)); if ((__builtin_expect
(!!(tryResult803.isErr()), 0))) { mozilla::dom::quota::HandleError
("ExistsAsDirectory(aFMDirectory)", tryResult803.inspectErr()
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 876, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); } const bool& existsAsDirectory = tryResult803
.inspect();
;
877
878 if (existsAsDirectory) {
879 QM_TRY(MOZ_TO_RESULT(aFMDirectory.Remove(true))){auto tryResult804 = (ToResult(aFMDirectory.Remove(true))); static_assert
(std::is_empty_v<typename decltype(tryResult804)::ok_type>
); if ((__builtin_expect(!!(tryResult804.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aFMDirectory.Remove(true))"
, tryResult804.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 879, mozilla::dom::quota::Severity::Error); return tryResult804
.propagateErr(); }}
;
880 }
881
882 QM_TRY_UNWRAP(connection, OpenDatabaseAndHandleBusy(auto tryResult805 = (OpenDatabaseAndHandleBusy( *storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult805
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy( *storageService, *dbFileUrl, aTelemetryId)"
, tryResult805.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 883, mozilla::dom::quota::Severity::Error); return tryResult805
.propagateErr(); } connection = tryResult805.unwrap();
883 *storageService, *dbFileUrl, aTelemetryId))auto tryResult805 = (OpenDatabaseAndHandleBusy( *storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult805
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy( *storageService, *dbFileUrl, aTelemetryId)"
, tryResult805.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 883, mozilla::dom::quota::Severity::Error); return tryResult805
.propagateErr(); } connection = tryResult805.unwrap();
;
884 }
885
886 QM_TRY(MOZ_TO_RESULT(SetDefaultPragmas(*connection))){auto tryResult806 = (ToResult(SetDefaultPragmas(*connection)
)); static_assert(std::is_empty_v<typename decltype(tryResult806
)::ok_type>); if ((__builtin_expect(!!(tryResult806.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetDefaultPragmas(*connection))"
, tryResult806.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 886, mozilla::dom::quota::Severity::Error); return tryResult806
.propagateErr(); }}
;
887 QM_TRY(MOZ_TO_RESULT(connection->EnableModule("filesystem"_ns))){auto tryResult807 = (ToResult(connection->EnableModule("filesystem"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult807
)::ok_type>); if ((__builtin_expect(!!(tryResult807.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->EnableModule(\"filesystem\"_ns))"
, tryResult807.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 887, mozilla::dom::quota::Severity::Error); return tryResult807
.propagateErr(); }}
;
888
889 // Check to make sure that the database schema is correct.
890 QM_TRY_INSPECT(const int32_t& schemaVersion,auto tryResult808 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult808
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)"
, tryResult808.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 891, mozilla::dom::quota::Severity::Error); return tryResult808
.propagateErr(); } const int32_t& schemaVersion = tryResult808
.inspect();
891 MOZ_TO_RESULT_INVOKE_MEMBER(connection, GetSchemaVersion))auto tryResult808 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult808
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)"
, tryResult808.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 891, mozilla::dom::quota::Severity::Error); return tryResult808
.propagateErr(); } const int32_t& schemaVersion = tryResult808
.inspect();
;
892
893 // Unknown schema will fail origin initialization too.
894 QM_TRY(OkIf(schemaVersion || !aName.IsVoid()),{auto tryResult809 = (OkIf(schemaVersion || !aName.IsVoid()))
; static_assert(std::is_empty_v<typename decltype(tryResult809
)::ok_type>); if ((__builtin_expect(!!(tryResult809.isErr(
)), 0))) { auto tryTempError = tryResult809.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 897, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 896, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 896); } while (0); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
895 Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR), [](const auto&) {{auto tryResult809 = (OkIf(schemaVersion || !aName.IsVoid()))
; static_assert(std::is_empty_v<typename decltype(tryResult809
)::ok_type>); if ((__builtin_expect(!!(tryResult809.isErr(
)), 0))) { auto tryTempError = tryResult809.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 897, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 896, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 896); } while (0); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
896 IDB_WARNING("Unable to open IndexedDB database, schema is not set!");{auto tryResult809 = (OkIf(schemaVersion || !aName.IsVoid()))
; static_assert(std::is_empty_v<typename decltype(tryResult809
)::ok_type>); if ((__builtin_expect(!!(tryResult809.isErr(
)), 0))) { auto tryTempError = tryResult809.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 897, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 896, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 896); } while (0); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
897 }){auto tryResult809 = (OkIf(schemaVersion || !aName.IsVoid()))
; static_assert(std::is_empty_v<typename decltype(tryResult809
)::ok_type>); if ((__builtin_expect(!!(tryResult809.isErr(
)), 0))) { auto tryTempError = tryResult809.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 897, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 896, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 896); } while (0); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
;
898
899 QM_TRY({auto tryResult810 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult810
)::ok_type>); if ((__builtin_expect(!!(tryResult810.isErr(
)), 0))) { auto tryTempError = tryResult810.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 903, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 902, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 902); } while (0); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
900 OkIf(schemaVersion <= kSQLiteSchemaVersion),{auto tryResult810 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult810
)::ok_type>); if ((__builtin_expect(!!(tryResult810.isErr(
)), 0))) { auto tryTempError = tryResult810.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 903, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 902, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 902); } while (0); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
901 Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR), [](const auto&) {{auto tryResult810 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult810
)::ok_type>); if ((__builtin_expect(!!(tryResult810.isErr(
)), 0))) { auto tryTempError = tryResult810.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 903, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 902, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 902); } while (0); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
902 IDB_WARNING("Unable to open IndexedDB database, schema is too high!");{auto tryResult810 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult810
)::ok_type>); if ((__builtin_expect(!!(tryResult810.isErr(
)), 0))) { auto tryTempError = tryResult810.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 903, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 902, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 902); } while (0); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
903 }){auto tryResult810 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult810
)::ok_type>); if ((__builtin_expect(!!(tryResult810.isErr(
)), 0))) { auto tryTempError = tryResult810.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 903, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 902, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 902); } while (0); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
;
904
905 bool journalModeSet = false;
906
907 if (schemaVersion != kSQLiteSchemaVersion) {
908 const bool newDatabase = !schemaVersion;
909
910 if (newDatabase) {
911 // Set the page size first.
912 const auto sqlitePageSizeOverride =
913 aMaybeKey ? 8192 : kSQLitePageSizeOverride;
914 if (sqlitePageSizeOverride) {
915 QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL(nsPrintfCString({auto tryResult811 = (ToResult(connection->ExecuteSimpleSQL
(nsPrintfCString( "PRAGMA page_size = %" "u" ";", sqlitePageSizeOverride
)))); static_assert(std::is_empty_v<typename decltype(tryResult811
)::ok_type>); if ((__builtin_expect(!!(tryResult811.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", sqlitePageSizeOverride)))"
, tryResult811.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 916, mozilla::dom::quota::Severity::Error); return tryResult811
.propagateErr(); }}
916 "PRAGMA page_size = %" PRIu32 ";", sqlitePageSizeOverride)))){auto tryResult811 = (ToResult(connection->ExecuteSimpleSQL
(nsPrintfCString( "PRAGMA page_size = %" "u" ";", sqlitePageSizeOverride
)))); static_assert(std::is_empty_v<typename decltype(tryResult811
)::ok_type>); if ((__builtin_expect(!!(tryResult811.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", sqlitePageSizeOverride)))"
, tryResult811.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 916, mozilla::dom::quota::Severity::Error); return tryResult811
.propagateErr(); }}
;
917 }
918
919 // We have to set the auto_vacuum mode before opening a transaction.
920 QM_TRY((MOZ_TO_RESULT_INVOKE_MEMBER({auto tryResult812 = ((::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(tryResult812
)::ok_type>); if ((__builtin_expect(!!(tryResult812.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))"
, tryResult812.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 931, mozilla::dom::quota::Severity::Error); return tryResult812
.propagateErr(); }}
921 connection, ExecuteSimpleSQL,{auto tryResult812 = ((::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(tryResult812
)::ok_type>); if ((__builtin_expect(!!(tryResult812.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))"
, tryResult812.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 931, mozilla::dom::quota::Severity::Error); return tryResult812
.propagateErr(); }}
922#ifdef IDB_MOBILE{auto tryResult812 = ((::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(tryResult812
)::ok_type>); if ((__builtin_expect(!!(tryResult812.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))"
, tryResult812.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 931, mozilla::dom::quota::Severity::Error); return tryResult812
.propagateErr(); }}
923 // Turn on full auto_vacuum mode to reclaim disk space on{auto tryResult812 = ((::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(tryResult812
)::ok_type>); if ((__builtin_expect(!!(tryResult812.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))"
, tryResult812.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 931, mozilla::dom::quota::Severity::Error); return tryResult812
.propagateErr(); }}
924 // mobile devices (at the cost of some COMMIT speed).{auto tryResult812 = ((::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(tryResult812
)::ok_type>); if ((__builtin_expect(!!(tryResult812.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))"
, tryResult812.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 931, mozilla::dom::quota::Severity::Error); return tryResult812
.propagateErr(); }}
925 "PRAGMA auto_vacuum = FULL;"_ns{auto tryResult812 = ((::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(tryResult812
)::ok_type>); if ((__builtin_expect(!!(tryResult812.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))"
, tryResult812.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 931, mozilla::dom::quota::Severity::Error); return tryResult812
.propagateErr(); }}
926#else{auto tryResult812 = ((::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(tryResult812
)::ok_type>); if ((__builtin_expect(!!(tryResult812.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))"
, tryResult812.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 931, mozilla::dom::quota::Severity::Error); return tryResult812
.propagateErr(); }}
927 // Turn on incremental auto_vacuum mode on desktop builds.{auto tryResult812 = ((::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(tryResult812
)::ok_type>); if ((__builtin_expect(!!(tryResult812.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))"
, tryResult812.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 931, mozilla::dom::quota::Severity::Error); return tryResult812
.propagateErr(); }}
928 "PRAGMA auto_vacuum = INCREMENTAL;"_ns{auto tryResult812 = ((::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(tryResult812
)::ok_type>); if ((__builtin_expect(!!(tryResult812.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))"
, tryResult812.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 931, mozilla::dom::quota::Severity::Error); return tryResult812
.propagateErr(); }}
929#endif{auto tryResult812 = ((::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(tryResult812
)::ok_type>); if ((__builtin_expect(!!(tryResult812.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))"
, tryResult812.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 931, mozilla::dom::quota::Severity::Error); return tryResult812
.propagateErr(); }}
930 ){auto tryResult812 = ((::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(tryResult812
)::ok_type>); if ((__builtin_expect(!!(tryResult812.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))"
, tryResult812.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 931, mozilla::dom::quota::Severity::Error); return tryResult812
.propagateErr(); }}
931 .mapErr(mapNoDeviceSpaceError))){auto tryResult812 = ((::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(tryResult812
)::ok_type>); if ((__builtin_expect(!!(tryResult812.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))"
, tryResult812.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 931, mozilla::dom::quota::Severity::Error); return tryResult812
.propagateErr(); }}
;
932
933 QM_TRY(MOZ_TO_RESULT(SetJournalMode(*connection))){auto tryResult813 = (ToResult(SetJournalMode(*connection)));
static_assert(std::is_empty_v<typename decltype(tryResult813
)::ok_type>); if ((__builtin_expect(!!(tryResult813.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetJournalMode(*connection))"
, tryResult813.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 933, mozilla::dom::quota::Severity::Error); return tryResult813
.propagateErr(); }}
;
934
935 journalModeSet = true;
936 } else {
937#ifdef DEBUG1
938 // Disable foreign key support while upgrading. This has to be done before
939 // starting a transaction.
940 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 941); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")"); do { *((volatile int*)__null) = 941; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
941 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 941); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")"); do { *((volatile int*)__null) = 941; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
942#endif
943 }
944
945 bool vacuumNeeded = false;
946
947 mozStorageTransaction transaction(
948 connection.get(), false, mozIStorageConnection::TRANSACTION_IMMEDIATE);
949
950 QM_TRY(MOZ_TO_RESULT(transaction.Start())){auto tryResult814 = (ToResult(transaction.Start())); static_assert
(std::is_empty_v<typename decltype(tryResult814)::ok_type>
); if ((__builtin_expect(!!(tryResult814.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(transaction.Start())", tryResult814
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 950, mozilla::dom::quota::Severity::Error); return tryResult814
.propagateErr(); }}
;
951
952 if (newDatabase) {
953 QM_TRY(MOZ_TO_RESULT(CreateTables(*connection))){auto tryResult815 = (ToResult(CreateTables(*connection))); static_assert
(std::is_empty_v<typename decltype(tryResult815)::ok_type>
); if ((__builtin_expect(!!(tryResult815.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(CreateTables(*connection))"
, tryResult815.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 953, mozilla::dom::quota::Severity::Error); return tryResult815
.propagateErr(); }}
;
954
955#ifdef DEBUG1
956 {
957 QM_TRY_INSPECT(auto tryResult816 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult816
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult816.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 960, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 960); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 960; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& schemaVersion = tryResult816.inspect();
958 const int32_t& schemaVersion,auto tryResult816 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult816
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult816.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 960, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 960); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 960; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& schemaVersion = tryResult816.inspect();
959 MOZ_TO_RESULT_INVOKE_MEMBER(connection, GetSchemaVersion),auto tryResult816 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult816
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult816.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 960, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 960); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 960; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& schemaVersion = tryResult816.inspect();
960 QM_ASSERT_UNREACHABLE)auto tryResult816 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult816
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult816.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 960, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 960); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 960; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& schemaVersion = tryResult816.inspect();
;
961 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "schemaVersion == kSQLiteSchemaVersion"
")"); do { *((volatile int*)__null) = 961; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
962 }
963#endif
964
965 // The parameter names are not used, parameters are bound by index only
966 // locally in the same function.
967 QM_TRY_INSPECT(auto tryResult817 = (::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(!!(tryResult817.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)"
, tryResult817.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 972, mozilla::dom::quota::Severity::Error); return tryResult817
.propagateErr(); } const auto& stmt = tryResult817.inspect
();
968 const auto& stmt,auto tryResult817 = (::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(!!(tryResult817.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)"
, tryResult817.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 972, mozilla::dom::quota::Severity::Error); return tryResult817
.propagateErr(); } const auto& stmt = tryResult817.inspect
();
969 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult817 = (::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(!!(tryResult817.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)"
, tryResult817.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 972, mozilla::dom::quota::Severity::Error); return tryResult817
.propagateErr(); } const auto& stmt = tryResult817.inspect
();
970 nsCOMPtr<mozIStorageStatement>, connection, CreateStatement,auto tryResult817 = (::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(!!(tryResult817.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)"
, tryResult817.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 972, mozilla::dom::quota::Severity::Error); return tryResult817
.propagateErr(); } const auto& stmt = tryResult817.inspect
();
971 "INSERT INTO database (name, origin) "auto tryResult817 = (::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(!!(tryResult817.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)"
, tryResult817.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 972, mozilla::dom::quota::Severity::Error); return tryResult817
.propagateErr(); } const auto& stmt = tryResult817.inspect
();
972 "VALUES (:name, :origin)"_ns))auto tryResult817 = (::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(!!(tryResult817.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)"
, tryResult817.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 972, mozilla::dom::quota::Severity::Error); return tryResult817
.propagateErr(); } const auto& stmt = tryResult817.inspect
();
;
973
974 QM_TRY(MOZ_TO_RESULT(stmt->BindStringByIndex(0, aName))){auto tryResult818 = (ToResult(stmt->BindStringByIndex(0, aName
))); static_assert(std::is_empty_v<typename decltype(tryResult818
)::ok_type>); if ((__builtin_expect(!!(tryResult818.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByIndex(0, aName))"
, tryResult818.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 974, mozilla::dom::quota::Severity::Error); return tryResult818
.propagateErr(); }}
;
975 QM_TRY(MOZ_TO_RESULT(stmt->BindUTF8StringByIndex(1, aOrigin))){auto tryResult819 = (ToResult(stmt->BindUTF8StringByIndex
(1, aOrigin))); static_assert(std::is_empty_v<typename decltype
(tryResult819)::ok_type>); if ((__builtin_expect(!!(tryResult819
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindUTF8StringByIndex(1, aOrigin))"
, tryResult819.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 975, mozilla::dom::quota::Severity::Error); return tryResult819
.propagateErr(); }}
;
976 QM_TRY(MOZ_TO_RESULT(stmt->Execute())){auto tryResult820 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult820)::ok_type>
); if ((__builtin_expect(!!(tryResult820.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt->Execute())", tryResult820
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 976, mozilla::dom::quota::Severity::Error); return tryResult820
.propagateErr(); }}
;
977 } else {
978 QM_TRY_UNWRAP(vacuumNeeded, MaybeUpgradeSchema(*connection, schemaVersion,auto tryResult821 = (MaybeUpgradeSchema(*connection, schemaVersion
, aFMDirectory, aOrigin)); if ((__builtin_expect(!!(tryResult821
.isErr()), 0))) { mozilla::dom::quota::HandleError("MaybeUpgradeSchema(*connection, schemaVersion, aFMDirectory, aOrigin)"
, tryResult821.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 979, mozilla::dom::quota::Severity::Error); return tryResult821
.propagateErr(); } vacuumNeeded = tryResult821.unwrap();
979 aFMDirectory, aOrigin))auto tryResult821 = (MaybeUpgradeSchema(*connection, schemaVersion
, aFMDirectory, aOrigin)); if ((__builtin_expect(!!(tryResult821
.isErr()), 0))) { mozilla::dom::quota::HandleError("MaybeUpgradeSchema(*connection, schemaVersion, aFMDirectory, aOrigin)"
, tryResult821.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 979, mozilla::dom::quota::Severity::Error); return tryResult821
.propagateErr(); } vacuumNeeded = tryResult821.unwrap();
;
980 }
981
982 QM_TRY(MOZ_TO_RESULT_INVOKE_MEMBER(transaction, Commit){auto tryResult822 = (::mozilla::ToResultInvokeMember( (transaction
), &::mozilla::detail::DerefedType<decltype(transaction
)>::Commit) .mapErr(mapNoDeviceSpaceError)); static_assert
(std::is_empty_v<typename decltype(tryResult822)::ok_type>
); if ((__builtin_expect(!!(tryResult822.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (transaction), &::mozilla::detail::DerefedType<decltype(transaction)>::Commit) .mapErr(mapNoDeviceSpaceError)"
, tryResult822.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 983, mozilla::dom::quota::Severity::Error); return tryResult822
.propagateErr(); }}
983 .mapErr(mapNoDeviceSpaceError)){auto tryResult822 = (::mozilla::ToResultInvokeMember( (transaction
), &::mozilla::detail::DerefedType<decltype(transaction
)>::Commit) .mapErr(mapNoDeviceSpaceError)); static_assert
(std::is_empty_v<typename decltype(tryResult822)::ok_type>
); if ((__builtin_expect(!!(tryResult822.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (transaction), &::mozilla::detail::DerefedType<decltype(transaction)>::Commit) .mapErr(mapNoDeviceSpaceError)"
, tryResult822.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 983, mozilla::dom::quota::Severity::Error); return tryResult822
.propagateErr(); }}
;
984
985#ifdef DEBUG1
986 if (!newDatabase) {
987 // Re-enable foreign key support after doing a foreign key check.
988 QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult823 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult823.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult823.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 992, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 992); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 992; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult823.inspect();
989 CreateAndExecuteSingleStepStatement<auto tryResult823 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult823.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult823.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 992, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 992); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 992; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult823.inspect();
990 SingleStepResult::ReturnNullIfNoResult>(auto tryResult823 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult823.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult823.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 992, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 992); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 992; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult823.inspect();
991 *connection, "PRAGMA foreign_key_check;"_ns),auto tryResult823 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult823.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult823.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 992, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 992); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 992; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult823.inspect();
992 QM_ASSERT_UNREACHABLE)auto tryResult823 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult823.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult823.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 992, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 992); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 992; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult823.inspect();
;
993
994 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!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 994); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!foreignKeyError"
") (" "Database has inconsisistent foreign keys!" ")"); do {
*((volatile int*)__null) = 994; __attribute__((nomerge)) ::abort
(); } while (false); } } while (false)
;
995
996 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 997); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")"); do { *((volatile int*)__null) = 997; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
997 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 997); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")"); do { *((volatile int*)__null) = 997; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
998 }
999#endif
1000
1001 if (kSQLitePageSizeOverride && !newDatabase) {
1002 QM_TRY_INSPECT(const auto& stmt,auto tryResult824 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult824
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)"
, tryResult824.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1004, mozilla::dom::quota::Severity::Error); return tryResult824
.propagateErr(); } const auto& stmt = tryResult824.inspect
();
1003 CreateAndExecuteSingleStepStatement(auto tryResult824 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult824
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)"
, tryResult824.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1004, mozilla::dom::quota::Severity::Error); return tryResult824
.propagateErr(); } const auto& stmt = tryResult824.inspect
();
1004 *connection, "PRAGMA page_size;"_ns))auto tryResult824 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult824
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)"
, tryResult824.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1004, mozilla::dom::quota::Severity::Error); return tryResult824
.propagateErr(); } const auto& stmt = tryResult824.inspect
();
;
1005
1006 QM_TRY_INSPECT(const int32_t& pageSize,auto tryResult825 = (::mozilla::ToResultInvokeMember( (*stmt)
, &::mozilla::detail::DerefedType<decltype(*stmt)>::
GetInt32, 0)); if ((__builtin_expect(!!(tryResult825.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult825.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1007, mozilla::dom::quota::Severity::Error); return tryResult825
.propagateErr(); } const int32_t& pageSize = tryResult825
.inspect();
1007 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult825 = (::mozilla::ToResultInvokeMember( (*stmt)
, &::mozilla::detail::DerefedType<decltype(*stmt)>::
GetInt32, 0)); if ((__builtin_expect(!!(tryResult825.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult825.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1007, mozilla::dom::quota::Severity::Error); return tryResult825
.propagateErr(); } const int32_t& pageSize = tryResult825
.inspect();
;
1008 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1008); AnnotateMozCrashReason("MOZ_ASSERT" "(" "pageSize >= 512 && pageSize <= 65536"
")"); do { *((volatile int*)__null) = 1008; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1009
1010 if (kSQLitePageSizeOverride != uint32_t(pageSize)) {
1011 // We must not be in WAL journal mode to change the page size.
1012 QM_TRY(MOZ_TO_RESULT({auto tryResult826 = (ToResult(connection->ExecuteSimpleSQL
("PRAGMA journal_mode = DELETE;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult826)::ok_type>); if ((__builtin_expect
(!!(tryResult826.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA journal_mode = DELETE;\"_ns))"
, tryResult826.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1013, mozilla::dom::quota::Severity::Error); return tryResult826
.propagateErr(); }}
1013 connection->ExecuteSimpleSQL("PRAGMA journal_mode = DELETE;"_ns))){auto tryResult826 = (ToResult(connection->ExecuteSimpleSQL
("PRAGMA journal_mode = DELETE;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult826)::ok_type>); if ((__builtin_expect
(!!(tryResult826.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA journal_mode = DELETE;\"_ns))"
, tryResult826.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1013, mozilla::dom::quota::Severity::Error); return tryResult826
.propagateErr(); }}
;
1014
1015 QM_TRY_INSPECT(const auto& stmt,auto tryResult827 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult827
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)"
, tryResult827.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1017, mozilla::dom::quota::Severity::Error); return tryResult827
.propagateErr(); } const auto& stmt = tryResult827.inspect
();
1016 CreateAndExecuteSingleStepStatement(auto tryResult827 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult827
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)"
, tryResult827.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1017, mozilla::dom::quota::Severity::Error); return tryResult827
.propagateErr(); } const auto& stmt = tryResult827.inspect
();
1017 *connection, "PRAGMA journal_mode;"_ns))auto tryResult827 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult827
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)"
, tryResult827.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1017, mozilla::dom::quota::Severity::Error); return tryResult827
.propagateErr(); } const auto& stmt = tryResult827.inspect
();
;
1018
1019 QM_TRY_INSPECT(const auto& journalMode,auto tryResult828 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult828.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult828.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1021, mozilla::dom::quota::Severity::Error); return tryResult828
.propagateErr(); } const auto& journalMode = tryResult828
.inspect();
1020 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCString, *stmt,auto tryResult828 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult828.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult828.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1021, mozilla::dom::quota::Severity::Error); return tryResult828
.propagateErr(); } const auto& journalMode = tryResult828
.inspect();
1021 GetUTF8String, 0))auto tryResult828 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult828.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult828.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1021, mozilla::dom::quota::Severity::Error); return tryResult828
.propagateErr(); } const auto& journalMode = tryResult828
.inspect();
;
1022
1023 if (journalMode.EqualsLiteral("delete")) {
1024 // Successfully set to rollback journal mode so changing the page size
1025 // is possible with a VACUUM.
1026 QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL(nsPrintfCString({auto tryResult829 = (ToResult(connection->ExecuteSimpleSQL
(nsPrintfCString( "PRAGMA page_size = %" "u" ";", kSQLitePageSizeOverride
)))); static_assert(std::is_empty_v<typename decltype(tryResult829
)::ok_type>); if ((__builtin_expect(!!(tryResult829.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", kSQLitePageSizeOverride)))"
, tryResult829.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1027, mozilla::dom::quota::Severity::Error); return tryResult829
.propagateErr(); }}
1027 "PRAGMA page_size = %" PRIu32 ";", kSQLitePageSizeOverride)))){auto tryResult829 = (ToResult(connection->ExecuteSimpleSQL
(nsPrintfCString( "PRAGMA page_size = %" "u" ";", kSQLitePageSizeOverride
)))); static_assert(std::is_empty_v<typename decltype(tryResult829
)::ok_type>); if ((__builtin_expect(!!(tryResult829.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", kSQLitePageSizeOverride)))"
, tryResult829.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1027, mozilla::dom::quota::Severity::Error); return tryResult829
.propagateErr(); }}
;
1028
1029 // We will need to VACUUM in order to change the page size.
1030 vacuumNeeded = true;
1031 } else {
1032 NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set journal_mode for database, unable to "
"change the page size!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1034)
1033 "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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1034)
1034 "change the page size!")NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set journal_mode for database, unable to "
"change the page size!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1034)
;
1035 }
1036 }
1037 }
1038
1039 if (vacuumNeeded) {
1040 QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL("VACUUM;"_ns))){auto tryResult830 = (ToResult(connection->ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult830)::ok_type>); if ((__builtin_expect(!!(tryResult830
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult830.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1040, mozilla::dom::quota::Severity::Error); return tryResult830
.propagateErr(); }}
;
1041 }
1042
1043 if (newDatabase || vacuumNeeded) {
1044 if (journalModeSet) {
1045 // Make sure we checkpoint to get an accurate file size.
1046 QM_TRY(MOZ_TO_RESULT({auto tryResult831 = (ToResult(connection->ExecuteSimpleSQL
("PRAGMA wal_checkpoint(FULL);"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult831)::ok_type>); if ((__builtin_expect
(!!(tryResult831.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA wal_checkpoint(FULL);\"_ns))"
, tryResult831.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1047, mozilla::dom::quota::Severity::Error); return tryResult831
.propagateErr(); }}
1047 connection->ExecuteSimpleSQL("PRAGMA wal_checkpoint(FULL);"_ns))){auto tryResult831 = (ToResult(connection->ExecuteSimpleSQL
("PRAGMA wal_checkpoint(FULL);"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult831)::ok_type>); if ((__builtin_expect
(!!(tryResult831.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA wal_checkpoint(FULL);\"_ns))"
, tryResult831.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1047, mozilla::dom::quota::Severity::Error); return tryResult831
.propagateErr(); }}
;
1048 }
1049
1050 QM_TRY_INSPECT(const int64_t& fileSize,auto tryResult832 = (::mozilla::ToResultInvokeMember( (aDBFile
), &::mozilla::detail::DerefedType<decltype(aDBFile)>
::GetFileSize)); if ((__builtin_expect(!!(tryResult832.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDBFile), &::mozilla::detail::DerefedType<decltype(aDBFile)>::GetFileSize)"
, tryResult832.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1051, mozilla::dom::quota::Severity::Error); return tryResult832
.propagateErr(); } const int64_t& fileSize = tryResult832
.inspect();
1051 MOZ_TO_RESULT_INVOKE_MEMBER(aDBFile, GetFileSize))auto tryResult832 = (::mozilla::ToResultInvokeMember( (aDBFile
), &::mozilla::detail::DerefedType<decltype(aDBFile)>
::GetFileSize)); if ((__builtin_expect(!!(tryResult832.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDBFile), &::mozilla::detail::DerefedType<decltype(aDBFile)>::GetFileSize)"
, tryResult832.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1051, mozilla::dom::quota::Severity::Error); return tryResult832
.propagateErr(); } const int64_t& fileSize = tryResult832
.inspect();
;
1052 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1052); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 1052; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1053
1054 PRTime vacuumTime = PR_Now();
1055 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1055); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime"
")"); do { *((volatile int*)__null) = 1055; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1056
1057 // The parameter names are not used, parameters are bound by index only
1058 // locally in the same function.
1059 QM_TRY_INSPECT(auto tryResult833 = (::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(!!
(tryResult833.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)"
, tryResult833.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1065, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); } const auto& vacuumTimeStmt = tryResult833
.inspect();
1060 const auto& vacuumTimeStmt,auto tryResult833 = (::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(!!
(tryResult833.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)"
, tryResult833.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1065, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); } const auto& vacuumTimeStmt = tryResult833
.inspect();
1061 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCOMPtr<mozIStorageStatement>,auto tryResult833 = (::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(!!
(tryResult833.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)"
, tryResult833.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1065, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); } const auto& vacuumTimeStmt = tryResult833
.inspect();
1062 connection, CreateStatement,auto tryResult833 = (::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(!!
(tryResult833.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)"
, tryResult833.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1065, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); } const auto& vacuumTimeStmt = tryResult833
.inspect();
1063 "UPDATE database "auto tryResult833 = (::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(!!
(tryResult833.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)"
, tryResult833.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1065, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); } const auto& vacuumTimeStmt = tryResult833
.inspect();
1064 "SET last_vacuum_time = :time"auto tryResult833 = (::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(!!
(tryResult833.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)"
, tryResult833.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1065, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); } const auto& vacuumTimeStmt = tryResult833
.inspect();
1065 ", last_vacuum_size = :size;"_ns))auto tryResult833 = (::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(!!
(tryResult833.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)"
, tryResult833.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1065, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); } const auto& vacuumTimeStmt = tryResult833
.inspect();
;
1066
1067 QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->BindInt64ByIndex(0, vacuumTime))){auto tryResult834 = (ToResult(vacuumTimeStmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult834)::ok_type>); if ((__builtin_expect(!!(tryResult834
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult834.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1067, mozilla::dom::quota::Severity::Error); return tryResult834
.propagateErr(); }}
;
1068 QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->BindInt64ByIndex(1, fileSize))){auto tryResult835 = (ToResult(vacuumTimeStmt->BindInt64ByIndex
(1, fileSize))); static_assert(std::is_empty_v<typename decltype
(tryResult835)::ok_type>); if ((__builtin_expect(!!(tryResult835
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->BindInt64ByIndex(1, fileSize))"
, tryResult835.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1068, mozilla::dom::quota::Severity::Error); return tryResult835
.propagateErr(); }}
;
1069 QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->Execute())){auto tryResult836 = (ToResult(vacuumTimeStmt->Execute()))
; static_assert(std::is_empty_v<typename decltype(tryResult836
)::ok_type>); if ((__builtin_expect(!!(tryResult836.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->Execute())"
, tryResult836.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1069, mozilla::dom::quota::Severity::Error); return tryResult836
.propagateErr(); }}
;
1070 }
1071 }
1072
1073 if (!journalModeSet) {
1074 QM_TRY(MOZ_TO_RESULT(SetJournalMode(*connection))){auto tryResult837 = (ToResult(SetJournalMode(*connection)));
static_assert(std::is_empty_v<typename decltype(tryResult837
)::ok_type>); if ((__builtin_expect(!!(tryResult837.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetJournalMode(*connection))"
, tryResult837.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1074, mozilla::dom::quota::Severity::Error); return tryResult837
.propagateErr(); }}
;
1075 }
1076
1077 return WrapMovingNotNullUnchecked(std::move(connection));
1078}
1079
1080nsCOMPtr<nsIFile> GetFileForPath(const nsAString& aPath) {
1081 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1081); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aPath.IsEmpty()"
")"); do { *((volatile int*)__null) = 1081; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1082
1083 QM_TRY_RETURN(QM_NewLocalFile(aPath), nullptr){auto tryResult838 = (QM_NewLocalFile(aPath)); if ((__builtin_expect
(!!(tryResult838.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult838.unwrapErr(); mozilla::dom::quota
::HandleError("QM_NewLocalFile(aPath)", tryResult838.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1083, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "QM_NewLocalFile(aPath)"
, tryTempError, nullptr); } return tryResult838.unwrap();}
;
1084}
1085
1086Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult>
1087GetStorageConnection(nsIFile& aDatabaseFile, const int64_t aDirectoryLockId,
1088 const uint32_t aTelemetryId,
1089 const Maybe<CipherKey>& aMaybeKey) {
1090 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1090); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 1090; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1091 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1091); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 1091; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1092 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1092); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= 0"
")"); do { *((volatile int*)__null) = 1092; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1093
1094 AUTO_PROFILER_LABEL("GetStorageConnection", DOM)mozilla::AutoProfilerLabel raiiObject1094( "GetStorageConnection"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
1095
1096 QM_TRY_INSPECT(const bool& exists,auto tryResult839 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::Exists)); if ((__builtin_expect(!!(tryResult839.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::Exists)"
, tryResult839.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1097, mozilla::dom::quota::Severity::Error); return tryResult839
.propagateErr(); } const bool& exists = tryResult839.inspect
();
1097 MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, Exists))auto tryResult839 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::Exists)); if ((__builtin_expect(!!(tryResult839.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::Exists)"
, tryResult839.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1097, mozilla::dom::quota::Severity::Error); return tryResult839
.propagateErr(); } const bool& exists = tryResult839.inspect
();
;
1098
1099 QM_TRY(OkIf(exists), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult840 = (OkIf(exists)); static_assert(std::is_empty_v
<typename decltype(tryResult840)::ok_type>); if ((__builtin_expect
(!!(tryResult840.isErr()), 0))) { auto tryTempError = tryResult840
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(exists)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1100, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1100, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(exists)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
1100 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult840 = (OkIf(exists)); static_assert(std::is_empty_v
<typename decltype(tryResult840)::ok_type>); if ((__builtin_expect
(!!(tryResult840.isErr()), 0))) { auto tryTempError = tryResult840
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(exists)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1100, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1100, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(exists)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
;
1101
1102 QM_TRY_INSPECT(auto tryResult841 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult841.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)"
, tryResult841.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1104, mozilla::dom::quota::Severity::Error); return tryResult841
.propagateErr(); } const auto& dbFileUrl = tryResult841.inspect
();
1103 const auto& dbFileUrl,auto tryResult841 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult841.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)"
, tryResult841.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1104, mozilla::dom::quota::Severity::Error); return tryResult841
.propagateErr(); } const auto& dbFileUrl = tryResult841.inspect
();
1104 GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey))auto tryResult841 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult841.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)"
, tryResult841.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1104, mozilla::dom::quota::Severity::Error); return tryResult841
.propagateErr(); } const auto& dbFileUrl = tryResult841.inspect
();
;
1105
1106 QM_TRY_INSPECT(const auto& storageService,auto tryResult842 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult842.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\")"
, tryResult842.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1109, mozilla::dom::quota::Severity::Error); return tryResult842
.propagateErr(); } const auto& storageService = tryResult842
.inspect();
1107 MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<mozIStorageService>,auto tryResult842 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult842.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\")"
, tryResult842.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1109, mozilla::dom::quota::Severity::Error); return tryResult842
.propagateErr(); } const auto& storageService = tryResult842
.inspect();
1108 MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult842 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult842.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\")"
, tryResult842.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1109, mozilla::dom::quota::Severity::Error); return tryResult842
.propagateErr(); } const auto& storageService = tryResult842
.inspect();
1109 MOZ_STORAGE_SERVICE_CONTRACTID))auto tryResult842 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult842.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\")"
, tryResult842.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1109, mozilla::dom::quota::Severity::Error); return tryResult842
.propagateErr(); } const auto& storageService = tryResult842
.inspect();
;
1110
1111 QM_TRY_UNWRAP(auto tryResult843 = (OpenDatabaseAndHandleBusy(*storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult843
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)"
, tryResult843.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1113, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } nsCOMPtr<mozIStorageConnection> connection
= tryResult843.unwrap();
1112 nsCOMPtr<mozIStorageConnection> connection,auto tryResult843 = (OpenDatabaseAndHandleBusy(*storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult843
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)"
, tryResult843.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1113, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } nsCOMPtr<mozIStorageConnection> connection
= tryResult843.unwrap();
1113 OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId))auto tryResult843 = (OpenDatabaseAndHandleBusy(*storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult843
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)"
, tryResult843.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1113, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } nsCOMPtr<mozIStorageConnection> connection
= tryResult843.unwrap();
;
1114
1115 QM_TRY(MOZ_TO_RESULT(SetDefaultPragmas(*connection))){auto tryResult844 = (ToResult(SetDefaultPragmas(*connection)
)); static_assert(std::is_empty_v<typename decltype(tryResult844
)::ok_type>); if ((__builtin_expect(!!(tryResult844.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetDefaultPragmas(*connection))"
, tryResult844.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1115, mozilla::dom::quota::Severity::Error); return tryResult844
.propagateErr(); }}
;
1116
1117 QM_TRY(MOZ_TO_RESULT(SetJournalMode(*connection))){auto tryResult845 = (ToResult(SetJournalMode(*connection)));
static_assert(std::is_empty_v<typename decltype(tryResult845
)::ok_type>); if ((__builtin_expect(!!(tryResult845.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetJournalMode(*connection))"
, tryResult845.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1117, mozilla::dom::quota::Severity::Error); return tryResult845
.propagateErr(); }}
;
1118
1119 return WrapMovingNotNullUnchecked(std::move(connection));
1120}
1121
1122Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult>
1123GetStorageConnection(const nsAString& aDatabaseFilePath,
1124 const int64_t aDirectoryLockId,
1125 const uint32_t aTelemetryId,
1126 const Maybe<CipherKey>& aMaybeKey) {
1127 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1127); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 1127; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1128 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1128); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 1128; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1129 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1129); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseFilePath.IsEmpty()"
")"); do { *((volatile int*)__null) = 1129; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1130 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1130); AnnotateMozCrashReason("MOZ_ASSERT" "(" "StringEndsWith(aDatabaseFilePath, kSQLiteSuffix)"
")"); do { *((volatile int*)__null) = 1130; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1131 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1131); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= 0"
")"); do { *((volatile int*)__null) = 1131; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1132
1133 nsCOMPtr<nsIFile> dbFile = GetFileForPath(aDatabaseFilePath);
1134
1135 QM_TRY(OkIf(dbFile), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult846 = (OkIf(dbFile)); static_assert(std::is_empty_v
<typename decltype(tryResult846)::ok_type>); if ((__builtin_expect
(!!(tryResult846.isErr()), 0))) { auto tryTempError = tryResult846
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(dbFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1136, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1136, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(dbFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
1136 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult846 = (OkIf(dbFile)); static_assert(std::is_empty_v
<typename decltype(tryResult846)::ok_type>); if ((__builtin_expect
(!!(tryResult846.isErr()), 0))) { auto tryTempError = tryResult846
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(dbFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1136, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1136, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(dbFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
;
1137
1138 return GetStorageConnection(*dbFile, aDirectoryLockId, aTelemetryId,
1139 aMaybeKey);
1140}
1141
1142/*******************************************************************************
1143 * ConnectionPool declarations
1144 ******************************************************************************/
1145
1146class DatabaseConnection final : public CachingDatabaseConnection {
1147 friend class ConnectionPool;
1148
1149 enum class CheckpointMode { Full, Restart, Truncate };
1150
1151 public:
1152 class AutoSavepoint;
1153 class UpdateRefcountFunction;
1154
1155 private:
1156 InitializedOnce<const NotNull<SafeRefPtr<DatabaseFileManager>>> mFileManager;
1157 RefPtr<UpdateRefcountFunction> mUpdateRefcountFunction;
1158 RefPtr<QuotaObject> mQuotaObject;
1159 RefPtr<QuotaObject> mJournalQuotaObject;
1160 IDBTransaction::Durability mLastDurability;
1161 bool mInReadTransaction;
1162 bool mInWriteTransaction;
1163
1164#ifdef DEBUG1
1165 uint32_t mDEBUGSavepointCount;
1166#endif
1167
1168 public:
1169 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1169); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
1169; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1169); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 1169
; __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:
1170
1171 UpdateRefcountFunction* GetUpdateRefcountFunction() const {
1172 AssertIsOnConnectionThread();
1173
1174 return mUpdateRefcountFunction;
1175 }
1176
1177 nsresult BeginWriteTransaction(const IDBTransaction::Durability aDurability);
1178
1179 nsresult CommitWriteTransaction();
1180
1181 void RollbackWriteTransaction();
1182
1183 void FinishWriteTransaction();
1184
1185 nsresult StartSavepoint();
1186
1187 nsresult ReleaseSavepoint();
1188
1189 nsresult RollbackSavepoint();
1190
1191 nsresult Checkpoint() {
1192 AssertIsOnConnectionThread();
1193
1194 return CheckpointInternal(CheckpointMode::Full);
1195 }
1196
1197 void DoIdleProcessing(bool aNeedsCheckpoint,
1198 const Atomic<bool>& aInterrupted);
1199
1200 void Close();
1201
1202 nsresult DisableQuotaChecks();
1203
1204 void EnableQuotaChecks();
1205
1206 private:
1207 DatabaseConnection(
1208 MovingNotNull<nsCOMPtr<mozIStorageConnection>> aStorageConnection,
1209 MovingNotNull<SafeRefPtr<DatabaseFileManager>> aFileManager);
1210
1211 ~DatabaseConnection();
1212
1213 nsresult Init();
1214
1215 nsresult CheckpointInternal(CheckpointMode aMode);
1216
1217 Result<uint32_t, nsresult> GetFreelistCount(
1218 CachedStatement& aCachedStatement);
1219
1220 /**
1221 * On success, returns whether some pages were freed.
1222 */
1223 Result<bool, nsresult> ReclaimFreePagesWhileIdle(
1224 CachedStatement& aFreelistStatement, CachedStatement& aRollbackStatement,
1225 uint32_t aFreelistCount, bool aNeedsCheckpoint,
1226 const Atomic<bool>& aInterrupted);
1227
1228 Result<int64_t, nsresult> GetFileSize(const nsAString& aPath);
1229};
1230
1231class MOZ_STACK_CLASS DatabaseConnection::AutoSavepoint final {
1232 DatabaseConnection* mConnection;
1233#ifdef DEBUG1
1234 const TransactionBase* mDEBUGTransaction;
1235#endif
1236
1237 public:
1238 AutoSavepoint();
1239 ~AutoSavepoint();
1240
1241 nsresult Start(const TransactionBase& aTransaction);
1242
1243 nsresult Commit();
1244};
1245
1246class DatabaseConnection::UpdateRefcountFunction final
1247 : public mozIStorageFunction {
1248 class FileInfoEntry;
1249
1250 enum class UpdateType { Increment, Decrement };
1251
1252 DatabaseConnection* const mConnection;
1253 DatabaseFileManager& mFileManager;
1254 nsClassHashtable<nsUint64HashKey, FileInfoEntry> mFileInfoEntries;
1255 nsTHashMap<nsUint64HashKey, NotNull<FileInfoEntry*>> mSavepointEntriesIndex;
1256
1257 nsTArray<int64_t> mJournalsToCreateBeforeCommit;
1258 nsTArray<int64_t> mJournalsToRemoveAfterCommit;
1259 nsTArray<int64_t> mJournalsToRemoveAfterAbort;
1260
1261 bool mInSavepoint;
1262
1263 public:
1264 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:
1265 NS_DECL_MOZISTORAGEFUNCTIONvirtual nsresult OnFunctionCall(mozIStorageValueArray *aFunctionArguments
, nsIVariant **_retval) override;
1266
1267 UpdateRefcountFunction(DatabaseConnection* aConnection,
1268 DatabaseFileManager& aFileManager);
1269
1270 nsresult WillCommit();
1271
1272 void DidCommit();
1273
1274 void DidAbort();
1275
1276 void StartSavepoint();
1277
1278 void ReleaseSavepoint();
1279
1280 void RollbackSavepoint();
1281
1282 void Reset();
1283
1284 private:
1285 ~UpdateRefcountFunction() = default;
1286
1287 nsresult ProcessValue(mozIStorageValueArray* aValues, int32_t aIndex,
1288 UpdateType aUpdateType);
1289
1290 nsresult CreateJournals();
1291
1292 nsresult RemoveJournals(const nsTArray<int64_t>& aJournals);
1293};
1294
1295class DatabaseConnection::UpdateRefcountFunction::FileInfoEntry final {
1296 SafeRefPtr<DatabaseFileInfo> mFileInfo;
1297 int32_t mDelta;
1298 int32_t mSavepointDelta;
1299
1300 public:
1301 explicit FileInfoEntry(SafeRefPtr<DatabaseFileInfo> aFileInfo)
1302 : mFileInfo(std::move(aFileInfo)), mDelta(0), mSavepointDelta(0) {
1303 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<
nsISupports, DatabaseConnection::UpdateRefcountFunction::FileInfoEntry
>::value, "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)
;
1304 }
1305
1306 void IncDeltas(bool aUpdateSavepointDelta) {
1307 ++mDelta;
1308 if (aUpdateSavepointDelta) {
1309 ++mSavepointDelta;
1310 }
1311 }
1312 void DecDeltas(bool aUpdateSavepointDelta) {
1313 --mDelta;
1314 if (aUpdateSavepointDelta) {
1315 --mSavepointDelta;
1316 }
1317 }
1318 void DecBySavepointDelta() { mDelta -= mSavepointDelta; }
1319 SafeRefPtr<DatabaseFileInfo> ReleaseFileInfo() {
1320 return std::move(mFileInfo);
1321 }
1322 void MaybeUpdateDBRefs() {
1323 if (mDelta) {
1324 mFileInfo->UpdateDBRefs(mDelta);
1325 }
1326 }
1327
1328 int32_t Delta() const { return mDelta; }
1329 int32_t SavepointDelta() const { return mSavepointDelta; }
1330
1331 ~FileInfoEntry() {
1332 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<
nsISupports, DatabaseConnection::UpdateRefcountFunction::FileInfoEntry
>::value, "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)
;
1333 }
1334};
1335
1336class ConnectionPool final {
1337 public:
1338 class FinishCallback;
1339
1340 private:
1341 class ConnectionRunnable;
1342 class CloseConnectionRunnable;
1343 struct DatabaseInfo;
1344 struct DatabaseCompleteCallback;
1345 class FinishCallbackWrapper;
1346 class IdleConnectionRunnable;
1347
1348#ifdef DEBUG1
1349 class TransactionRunnable;
1350#endif
1351 class TransactionInfo;
1352 struct TransactionInfoPair;
1353
1354 struct IdleResource {
1355 TimeStamp mIdleTime;
1356
1357 IdleResource(const IdleResource& aOther) = delete;
1358 IdleResource(IdleResource&& aOther) noexcept
1359 : IdleResource(aOther.mIdleTime) {}
1360 IdleResource& operator=(const IdleResource& aOther) = delete;
1361 IdleResource& operator=(IdleResource&& aOther) = delete;
1362
1363 protected:
1364 explicit IdleResource(const TimeStamp& aIdleTime);
1365
1366 ~IdleResource();
1367 };
1368
1369 struct IdleDatabaseInfo final : public IdleResource {
1370 InitializedOnce<const NotNull<DatabaseInfo*>> mDatabaseInfo;
1371
1372 public:
1373 explicit IdleDatabaseInfo(DatabaseInfo& aDatabaseInfo);
1374
1375 IdleDatabaseInfo(const IdleDatabaseInfo& aOther) = delete;
1376 IdleDatabaseInfo(IdleDatabaseInfo&& aOther) noexcept
1377 : IdleResource(std::move(aOther)),
1378 mDatabaseInfo{std::move(aOther.mDatabaseInfo)} {
1379 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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1379); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo"
")"); do { *((volatile int*)__null) = 1379; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1380
1381 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<nsISupports, ConnectionPool
::IdleDatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::IdleDatabaseInfo"
, sizeof(*this)); } while (0)
;
1382 }
1383 IdleDatabaseInfo& operator=(const IdleDatabaseInfo& aOther) = delete;
1384 IdleDatabaseInfo& operator=(IdleDatabaseInfo&& aOther) = delete;
1385
1386 ~IdleDatabaseInfo();
1387
1388 bool operator==(const IdleDatabaseInfo& aOther) const {
1389 return *mDatabaseInfo == *aOther.mDatabaseInfo;
1390 }
1391
1392 bool operator==(const DatabaseInfo* aDatabaseInfo) const {
1393 return *mDatabaseInfo == aDatabaseInfo;
1394 }
1395
1396 bool operator<(const IdleDatabaseInfo& aOther) const {
1397 return mIdleTime < aOther.mIdleTime;
1398 }
1399 };
1400
1401 struct PerformingIdleMaintenanceDatabaseInfo {
1402 const NotNull<DatabaseInfo*> mDatabaseInfo;
1403 RefPtr<IdleConnectionRunnable> mIdleConnectionRunnable;
1404
1405 PerformingIdleMaintenanceDatabaseInfo(
1406 DatabaseInfo& aDatabaseInfo,
1407 RefPtr<IdleConnectionRunnable> aIdleConnectionRunnable);
1408
1409 PerformingIdleMaintenanceDatabaseInfo(
1410 const PerformingIdleMaintenanceDatabaseInfo& aOther) = delete;
1411 PerformingIdleMaintenanceDatabaseInfo(
1412 PerformingIdleMaintenanceDatabaseInfo&& aOther) noexcept
1413 : mDatabaseInfo{aOther.mDatabaseInfo},
1414 mIdleConnectionRunnable{std::move(aOther.mIdleConnectionRunnable)} {
1415 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<
nsISupports, ConnectionPool::PerformingIdleMaintenanceDatabaseInfo
>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo"
, sizeof(*this)); } while (0)
;
1416 }
1417 PerformingIdleMaintenanceDatabaseInfo& operator=(
1418 const PerformingIdleMaintenanceDatabaseInfo& aOther) = delete;
1419 PerformingIdleMaintenanceDatabaseInfo& operator=(
1420 PerformingIdleMaintenanceDatabaseInfo&& aOther) = delete;
1421
1422 ~PerformingIdleMaintenanceDatabaseInfo();
1423
1424 bool operator==(const DatabaseInfo* aDatabaseInfo) const {
1425 return mDatabaseInfo == aDatabaseInfo;
1426 }
1427 };
1428
1429 // This mutex guards mDatabases, see below.
1430 Mutex mDatabasesMutex MOZ_UNANNOTATED;
1431
1432 nsCOMPtr<nsIThreadPool> mIOTarget;
1433 nsTArray<IdleDatabaseInfo> mIdleDatabases;
1434 nsTArray<PerformingIdleMaintenanceDatabaseInfo>
1435 mDatabasesPerformingIdleMaintenance;
1436 nsCOMPtr<nsITimer> mIdleTimer;
1437 TimeStamp mTargetIdleTime;
1438
1439 // Only modifed on the owning thread, but read on multiple threads. Therefore
1440 // all modifications and all reads off the owning thread must be protected by
1441 // mDatabasesMutex.
1442 nsClassHashtable<nsCStringHashKey, DatabaseInfo> mDatabases;
1443
1444 nsClassHashtable<nsUint64HashKey, TransactionInfo> mTransactions;
1445 nsTArray<NotNull<TransactionInfo*>> mQueuedTransactions;
1446
1447 nsTArray<UniquePtr<DatabaseCompleteCallback>> mCompleteCallbacks;
1448
1449 uint64_t mNextTransactionId;
1450 FlippedOnce<false> mShutdownRequested;
1451 FlippedOnce<false> mShutdownComplete;
1452
1453 public:
1454 ConnectionPool();
1455
1456 void AssertIsOnOwningThread() const {
1457 NS_ASSERT_OWNINGTHREAD(ConnectionPool)_mOwningThread.AssertOwnership("ConnectionPool" " not thread-safe"
)
;
1458 }
1459
1460 Result<RefPtr<DatabaseConnection>, nsresult> GetOrCreateConnection(
1461 const Database& aDatabase);
1462
1463 uint64_t Start(const nsID& aBackgroundChildLoggingId,
1464 const nsACString& aDatabaseId, int64_t aLoggingSerialNumber,
1465 const nsTArray<nsString>& aObjectStoreNames,
1466 bool aIsWriteTransaction,
1467 TransactionDatabaseOperationBase* aTransactionOp);
1468
1469 void Dispatch(uint64_t aTransactionId, nsIRunnable* aRunnable);
1470
1471 void Finish(uint64_t aTransactionId, FinishCallback* aCallback);
1472
1473 void CloseDatabaseWhenIdle(const nsACString& aDatabaseId) {
1474 Unused << CloseDatabaseWhenIdleInternal(aDatabaseId);
1475 }
1476
1477 void WaitForDatabaseToComplete(const nsCString& aDatabaseId,
1478 nsIRunnable* aCallback);
1479
1480 void Shutdown();
1481
1482 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
1482; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 1482
; __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:
1483
1484 private:
1485 ~ConnectionPool();
1486
1487 static void IdleTimerCallback(nsITimer* aTimer, void* aClosure);
1488
1489 static uint32_t SerialNumber() { return ++sSerialNumber; }
1490
1491 static uint32_t sSerialNumber;
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 class 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1590); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGConnectionEventTarget"
")"); do { *((volatile int*)__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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1591); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget"
")"); do { *((volatile int*)__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
1600 private:
1601 ~DatabaseInfo();
1602
1603 DatabaseInfo(const DatabaseInfo&) = delete;
1604 DatabaseInfo& operator=(const DatabaseInfo&) = delete;
1605};
1606
1607struct ConnectionPool::DatabaseCompleteCallback final {
1608 friend class DefaultDelete<DatabaseCompleteCallback>;
1609
1610 nsCString mDatabaseId;
1611 nsCOMPtr<nsIRunnable> mCallback;
1612
1613 DatabaseCompleteCallback(const nsCString& aDatabaseIds,
1614 nsIRunnable* aCallback);
1615
1616 private:
1617 ~DatabaseCompleteCallback();
1618};
1619
1620class NS_NO_VTABLE ConnectionPool::FinishCallback : public nsIRunnable {
1621 public:
1622 // Called on the owning thread before any additional transactions are
1623 // unblocked.
1624 virtual void TransactionFinishedBeforeUnblock() = 0;
1625
1626 // Called on the owning thread after additional transactions may have been
1627 // unblocked.
1628 virtual void TransactionFinishedAfterUnblock() = 0;
1629
1630 protected:
1631 FinishCallback() = default;
1632
1633 virtual ~FinishCallback() = default;
1634};
1635
1636class ConnectionPool::FinishCallbackWrapper final : public Runnable {
1637 RefPtr<ConnectionPool> mConnectionPool;
1638 RefPtr<FinishCallback> mCallback;
1639 nsCOMPtr<nsIEventTarget> mOwningEventTarget;
1640 uint64_t mTransactionId;
1641 bool mHasRunOnce;
1642
1643 public:
1644 FinishCallbackWrapper(ConnectionPool* aConnectionPool,
1645 uint64_t aTransactionId, FinishCallback* aCallback);
1646
1647 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; }
1648
1649 private:
1650 ~FinishCallbackWrapper() override;
1651
1652 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
1653};
1654
1655#ifdef DEBUG1
1656
1657class ConnectionPool::TransactionRunnable final : public Runnable {
1658 public:
1659 explicit TransactionRunnable(nsCOMPtr<nsIRunnable> aRunnable);
1660
1661 private:
1662 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
1663
1664 nsCOMPtr<nsIRunnable> mRunnable;
1665};
1666
1667#endif
1668
1669class ConnectionPool::TransactionInfo final {
1670 friend class mozilla::DefaultDelete<TransactionInfo>;
1671
1672 nsTHashSet<TransactionInfo*> mBlocking;
1673 nsTArray<NotNull<TransactionInfo*>> mBlockingOrdered;
1674
1675 public:
1676 DatabaseInfo& mDatabaseInfo;
1677 const nsID mBackgroundChildLoggingId;
1678 const nsCString mDatabaseId;
1679 const uint64_t mTransactionId;
1680 const int64_t mLoggingSerialNumber;
1681 const nsTArray<nsString> mObjectStoreNames;
1682 nsTHashSet<TransactionInfo*> mBlockedOn;
1683 nsTArray<nsCOMPtr<nsIRunnable>> mQueuedRunnables;
1684 const bool mIsWriteTransaction;
1685 bool mRunning;
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 private:
1704 ~TransactionInfo();
1705
1706 void MaybeUnblock(TransactionInfo& aTransactionInfo);
1707};
1708
1709struct ConnectionPool::TransactionInfoPair final {
1710 // Multiple reading transactions can block future writes.
1711 nsTArray<NotNull<TransactionInfo*>> mLastBlockingWrites;
1712 // But only a single writing transaction can block future reads.
1713 Maybe<TransactionInfo&> mLastBlockingReads;
1714
1715#if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1)
1716 TransactionInfoPair();
1717 ~TransactionInfoPair();
1718#endif
1719};
1720
1721/*******************************************************************************
1722 * Actor class declarations
1723 ******************************************************************************/
1724
1725template <IDBCursorType CursorType>
1726class CommonOpenOpHelper;
1727template <IDBCursorType CursorType>
1728class IndexOpenOpHelper;
1729template <IDBCursorType CursorType>
1730class ObjectStoreOpenOpHelper;
1731template <IDBCursorType CursorType>
1732class OpenOpHelper;
1733
1734class DatabaseOperationBase : public Runnable,
1735 public mozIStorageProgressHandler {
1736 template <IDBCursorType CursorType>
1737 friend class OpenOpHelper;
1738
1739 protected:
1740 class AutoSetProgressHandler;
1741
1742 using UniqueIndexTable = nsTHashMap<nsUint64HashKey, bool>;
1743
1744 const nsCOMPtr<nsIEventTarget> mOwningEventTarget;
1745 const nsID mBackgroundChildLoggingId;
1746 const uint64_t mLoggingSerialNumber;
1747
1748 private:
1749 nsresult mResultCode = NS_OK;
1750 Atomic<bool> mOperationMayProceed;
1751 FlippedOnce<false> mActorDestroyed;
1752
1753 public:
1754 NS_DECL_ISUPPORTS_INHERITEDpublic: virtual nsresult QueryInterface(const nsIID& aIID
, void** aInstancePtr) override; virtual MozExternalRefCountType
AddRef(void) override; virtual MozExternalRefCountType Release
(void) override;
1755
1756 bool IsOnOwningThread() const {
1757 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1757); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget"
")"); do { *((volatile int*)__null) = 1757; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1758
1759 bool current;
1760 return NS_SUCCEEDED(mOwningEventTarget->IsOnCurrentThread(&current))((bool)(__builtin_expect(!!(!NS_FAILED_impl(mOwningEventTarget
->IsOnCurrentThread(&current))), 1)))
&&
1761 current;
1762 }
1763
1764 void AssertIsOnOwningThread() const {
1765 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1765); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 1765; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1766 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1766); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnOwningThread()"
")"); do { *((volatile int*)__null) = 1766; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1767 }
1768
1769 void NoteActorDestroyed() {
1770 AssertIsOnOwningThread();
1771
1772 mActorDestroyed.EnsureFlipped();
1773 mOperationMayProceed = false;
1774 }
1775
1776 bool IsActorDestroyed() const {
1777 AssertIsOnOwningThread();
1778
1779 return mActorDestroyed;
1780 }
1781
1782 // May be called on any thread, but you should call IsActorDestroyed() if
1783 // you know you're on the background thread because it is slightly faster.
1784 bool OperationMayProceed() const { return mOperationMayProceed; }
1785
1786 const nsID& BackgroundChildLoggingId() const {
1787 return mBackgroundChildLoggingId;
1788 }
1789
1790 uint64_t LoggingSerialNumber() const { return mLoggingSerialNumber; }
1791
1792 nsresult ResultCode() const { return mResultCode; }
1793
1794 void SetFailureCode(nsresult aFailureCode) {
1795 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1795); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)))"
")"); do { *((volatile int*)__null) = 1795; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1796 OverrideFailureCode(aFailureCode);
1797 }
1798
1799 void SetFailureCodeIfUnset(nsresult aFailureCode) {
1800 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
1801 OverrideFailureCode(aFailureCode);
1802 }
1803 }
1804
1805 bool HasFailed() const { return NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0))
)
; }
1806
1807 protected:
1808 DatabaseOperationBase(const nsID& aBackgroundChildLoggingId,
1809 uint64_t aLoggingSerialNumber)
1810 : Runnable("dom::indexedDB::DatabaseOperationBase"),
1811 mOwningEventTarget(GetCurrentSerialEventTarget()),
1812 mBackgroundChildLoggingId(aBackgroundChildLoggingId),
1813 mLoggingSerialNumber(aLoggingSerialNumber),
1814 mOperationMayProceed(true) {
1815 AssertIsOnOwningThread();
1816 }
1817
1818 ~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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1818); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed"
")"); do { *((volatile int*)__null) = 1818; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
1819
1820 void OverrideFailureCode(nsresult aFailureCode) {
1821 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1821); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aFailureCode)), 0)))"
")"); do { *((volatile int*)__null) = 1821; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1822
1823 mResultCode = aFailureCode;
1824 }
1825
1826 static nsAutoCString MaybeGetBindingClauseForKeyRange(
1827 const Maybe<SerializedKeyRange>& aOptionalKeyRange,
1828 const nsACString& aKeyColumnName);
1829
1830 static nsAutoCString GetBindingClauseForKeyRange(
1831 const SerializedKeyRange& aKeyRange, const nsACString& aKeyColumnName);
1832
1833 static uint64_t ReinterpretDoubleAsUInt64(double aDouble);
1834
1835 static nsresult BindKeyRangeToStatement(const SerializedKeyRange& aKeyRange,
1836 mozIStorageStatement* aStatement);
1837
1838 static nsresult BindKeyRangeToStatement(const SerializedKeyRange& aKeyRange,
1839 mozIStorageStatement* aStatement,
1840 const nsCString& aLocale);
1841
1842 static Result<IndexDataValuesAutoArray, nsresult>
1843 IndexDataValuesFromUpdateInfos(const nsTArray<IndexUpdateInfo>& aUpdateInfos,
1844 const UniqueIndexTable& aUniqueIndexTable);
1845
1846 static nsresult InsertIndexTableRows(
1847 DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId,
1848 const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues);
1849
1850 static nsresult DeleteIndexDataTableRows(
1851 DatabaseConnection* aConnection, const Key& aObjectStoreKey,
1852 const nsTArray<IndexDataValue>& aIndexValues);
1853
1854 static nsresult DeleteObjectStoreDataTableRowsWithIndexes(
1855 DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId,
1856 const Maybe<SerializedKeyRange>& aKeyRange);
1857
1858 static nsresult UpdateIndexValues(
1859 DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId,
1860 const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues);
1861
1862 static Result<bool, nsresult> ObjectStoreHasIndexes(
1863 DatabaseConnection& aConnection, IndexOrObjectStoreId aObjectStoreId);
1864
1865 private:
1866 template <typename KeyTransformation>
1867 static nsresult MaybeBindKeyToStatement(
1868 const Key& aKey, mozIStorageStatement* aStatement,
1869 const nsACString& aParameterName,
1870 const KeyTransformation& aKeyTransformation);
1871
1872 template <typename KeyTransformation>
1873 static nsresult BindTransformedKeyRangeToStatement(
1874 const SerializedKeyRange& aKeyRange, mozIStorageStatement* aStatement,
1875 const KeyTransformation& aKeyTransformation);
1876
1877 // Not to be overridden by subclasses.
1878 NS_DECL_MOZISTORAGEPROGRESSHANDLERvirtual nsresult OnProgress(mozIStorageConnection *aConnection
, bool *_retval) override;
1879};
1880
1881class MOZ_STACK_CLASS DatabaseOperationBase::AutoSetProgressHandler final {
1882 Maybe<mozIStorageConnection&> mConnection;
1883#ifdef DEBUG1
1884 DatabaseOperationBase* mDEBUGDatabaseOp;
1885#endif
1886
1887 public:
1888 AutoSetProgressHandler();
1889
1890 ~AutoSetProgressHandler();
1891
1892 nsresult Register(mozIStorageConnection& aConnection,
1893 DatabaseOperationBase* aDatabaseOp);
1894
1895 void Unregister();
1896};
1897
1898class TransactionDatabaseOperationBase : public DatabaseOperationBase {
1899 enum class InternalState {
1900 Initial,
1901 DatabaseWork,
1902 SendingPreprocess,
1903 WaitingForContinue,
1904 SendingResults,
1905 Completed
1906 };
1907
1908 InitializedOnce<const NotNull<SafeRefPtr<TransactionBase>>> mTransaction;
1909 // Unique request id within the context of the transaction, allocated by the
1910 // transaction in the content process starting from 0. Values less than 0 are
1911 // impossible and forbidden. Used to support the explicit commit() request.
1912 const int64_t mRequestId;
1913 InternalState mInternalState = InternalState::Initial;
1914 bool mWaitingForContinue = false;
1915 const bool mTransactionIsAborted;
1916
1917 protected:
1918 const int64_t mTransactionLoggingSerialNumber;
1919
1920#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED1
1921 protected:
1922 // A check only enables when the diagnostic assert turns on. It assumes the
1923 // mUpdateRefcountFunction is a nullptr because the previous
1924 // StartTransactionOp failed on the connection thread and the next write
1925 // operation (e.g. ObjectstoreAddOrPutRequestOp) doesn't have enough time to
1926 // catch up the failure information.
1927 bool mAssumingPreviousOperationFail = false;
1928#endif
1929
1930 public:
1931 void AssertIsOnConnectionThread() const
1932#ifdef DEBUG1
1933 ;
1934#else
1935 {
1936 }
1937#endif
1938
1939 uint64_t StartOnConnectionPool(const nsID& aBackgroundChildLoggingId,
1940 const nsACString& aDatabaseId,
1941 int64_t aLoggingSerialNumber,
1942 const nsTArray<nsString>& aObjectStoreNames,
1943 bool aIsWriteTransaction);
1944
1945 void DispatchToConnectionPool();
1946
1947 TransactionBase& Transaction() { return **mTransaction; }
1948
1949 const TransactionBase& Transaction() const { return **mTransaction; }
1950
1951 bool IsWaitingForContinue() const {
1952 AssertIsOnOwningThread();
1953
1954 return mWaitingForContinue;
1955 }
1956
1957 void NoteContinueReceived();
1958
1959 int64_t TransactionLoggingSerialNumber() const {
1960 return mTransactionLoggingSerialNumber;
1961 }
1962
1963 // May be overridden by subclasses if they need to perform work on the
1964 // background thread before being dispatched. Returning false will kill the
1965 // child actors and prevent dispatch.
1966 virtual bool Init(TransactionBase& aTransaction);
1967
1968 // This callback will be called on the background thread before releasing the
1969 // final reference to this request object. Subclasses may perform any
1970 // additional cleanup here but must always call the base class implementation.
1971 virtual void Cleanup();
1972
1973 protected:
1974 TransactionDatabaseOperationBase(SafeRefPtr<TransactionBase> aTransaction,
1975 int64_t aRequestId);
1976
1977 TransactionDatabaseOperationBase(SafeRefPtr<TransactionBase> aTransaction,
1978 const int64_t aRequestId,
1979 uint64_t aLoggingSerialNumber);
1980
1981 ~TransactionDatabaseOperationBase() override;
1982
1983 virtual void RunOnConnectionThread();
1984
1985 // Must be overridden in subclasses. Called on the target thread to allow the
1986 // subclass to perform necessary database or file operations. A successful
1987 // return value will trigger a SendSuccessResult callback on the background
1988 // thread while a failure value will trigger a SendFailureResult callback.
1989 virtual nsresult DoDatabaseWork(DatabaseConnection* aConnection) = 0;
1990
1991 // May be overriden in subclasses. Called on the background thread to decide
1992 // if the subclass needs to send any preprocess info to the child actor.
1993 virtual bool HasPreprocessInfo();
1994
1995 // May be overriden in subclasses. Called on the background thread to allow
1996 // the subclass to serialize its preprocess info and send it to the child
1997 // actor. A successful return value will trigger a wait for a
1998 // NoteContinueReceived callback on the background thread while a failure
1999 // value will trigger a SendFailureResult callback.
2000 virtual nsresult SendPreprocessInfo();
2001
2002 // Must be overridden in subclasses. Called on the background thread to allow
2003 // the subclass to serialize its results and send them to the child actor. A
2004 // failed return value will trigger a SendFailureResult callback.
2005 virtual nsresult SendSuccessResult() = 0;
2006
2007 // Must be overridden in subclasses. Called on the background thread to allow
2008 // the subclass to send its failure code. Returning false will cause the
2009 // transaction to be aborted with aResultCode. Returning true will not cause
2010 // the transaction to be aborted.
2011 virtual bool SendFailureResult(nsresult aResultCode) = 0;
2012
2013#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED1
2014 auto MakeAutoSavepointCleanupHandler(DatabaseConnection& aConnection) {
2015 return [this, &aConnection](const auto) {
2016 if (!aConnection.GetUpdateRefcountFunction()) {
2017 mAssumingPreviousOperationFail = true;
2018 }
2019 };
2020 }
2021#endif
2022
2023 private:
2024 void SendToConnectionPool();
2025
2026 void SendPreprocess();
2027
2028 void SendResults();
2029
2030 void SendPreprocessInfoOrResults(bool aSendPreprocessInfo);
2031
2032 // Not to be overridden by subclasses.
2033 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
2034};
2035
2036class Factory final : public PBackgroundIDBFactoryParent,
2037 public AtomicSafeRefCounted<Factory> {
2038 nsCString mSystemLocale;
2039 RefPtr<DatabaseLoggingInfo> mLoggingInfo;
2040
2041#ifdef DEBUG1
2042 bool mActorDestroyed;
2043#endif
2044
2045 // Reference counted.
2046 ~Factory() override;
2047
2048 public:
2049 [[nodiscard]] static SafeRefPtr<Factory> Create(
2050 const LoggingInfo& aLoggingInfo, const nsACString& aSystemLocale);
2051
2052 DatabaseLoggingInfo* GetLoggingInfo() const {
2053 AssertIsOnBackgroundThread();
2054 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2054); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo"
")"); do { *((volatile int*)__null) = 2054; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2055
2056 return mLoggingInfo;
2057 }
2058
2059 const nsCString& GetSystemLocale() const { return mSystemLocale; }
2060
2061 MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::Factory)const char* typeName() const { return "mozilla::dom::indexedDB::Factory"
; } size_t typeSize() const { return sizeof(*this); }
2062 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; }
2063
2064 // Only constructed in Create().
2065 Factory(RefPtr<DatabaseLoggingInfo> aLoggingInfo,
2066 const nsACString& aSystemLocale);
2067
2068 // IPDL methods are only called by IPDL.
2069 void ActorDestroy(ActorDestroyReason aWhy) override;
2070
2071 mozilla::ipc::IPCResult RecvDeleteMe() override;
2072
2073 PBackgroundIDBFactoryRequestParent* AllocPBackgroundIDBFactoryRequestParent(
2074 const FactoryRequestParams& aParams) override;
2075
2076 mozilla::ipc::IPCResult RecvPBackgroundIDBFactoryRequestConstructor(
2077 PBackgroundIDBFactoryRequestParent* aActor,
2078 const FactoryRequestParams& aParams) override;
2079
2080 bool DeallocPBackgroundIDBFactoryRequestParent(
2081 PBackgroundIDBFactoryRequestParent* aActor) override;
2082
2083 mozilla::ipc::IPCResult RecvGetDatabases(
2084 const PersistenceType& aPersistenceType,
2085 const PrincipalInfo& aPrincipalInfo,
2086 GetDatabasesResolver&& aResolve) override;
2087
2088 private:
2089 Maybe<ContentParentId> GetContentParentId() const;
2090};
2091
2092class WaitForTransactionsHelper final : public Runnable {
2093 const nsCString mDatabaseId;
2094 nsCOMPtr<nsIRunnable> mCallback;
2095
2096 enum class State { Initial = 0, WaitingForTransactions, Complete } mState;
2097
2098 public:
2099 WaitForTransactionsHelper(const nsACString& aDatabaseId,
2100 nsIRunnable* aCallback)
2101 : Runnable("dom::indexedDB::WaitForTransactionsHelper"),
2102 mDatabaseId(aDatabaseId),
2103 mCallback(aCallback),
2104 mState(State::Initial) {
2105 AssertIsOnBackgroundThread();
2106 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2106); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { *((volatile int*)__null) = 2106; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2107 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2107); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { *((volatile int*)__null) = 2107; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2108 }
2109
2110 void WaitForTransactions();
2111
2112 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; }
2113
2114 private:
2115 ~WaitForTransactionsHelper() override {
2116 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2116); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCallback"
")"); do { *((volatile int*)__null) = 2116; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2117 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2117); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Complete"
")"); do { *((volatile int*)__null) = 2117; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2118 }
2119
2120 void MaybeWaitForTransactions();
2121
2122 void CallCallback();
2123
2124 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
2125};
2126
2127class Database final
2128 : public PBackgroundIDBDatabaseParent,
2129 public SupportsCheckedUnsafePtr<CheckIf<DiagnosticAssertEnabled>>,
2130 public AtomicSafeRefCounted<Database> {
2131 friend class VersionChangeTransaction;
2132
2133 class StartTransactionOp;
2134 class UnmapBlobCallback;
2135
2136 private:
2137 SafeRefPtr<Factory> mFactory;
2138 SafeRefPtr<FullDatabaseMetadata> mMetadata;
2139 SafeRefPtr<DatabaseFileManager> mFileManager;
2140 RefPtr<ClientDirectoryLock> mDirectoryLock;
2141 nsTHashSet<TransactionBase*> mTransactions;
2142 nsTHashMap<nsIDHashKey, SafeRefPtr<DatabaseFileInfo>> mMappedBlobs;
2143 RefPtr<DatabaseConnection> mConnection;
2144 const PrincipalInfo mPrincipalInfo;
2145 const Maybe<ContentParentId> mOptionalContentParentId;
2146 // XXX Consider changing this to ClientMetadata.
2147 const quota::OriginMetadata mOriginMetadata;
2148 const nsCString mId;
2149 const nsString mFilePath;
2150 const Maybe<const CipherKey> mKey;
2151 int64_t mDirectoryLockId;
2152 const uint32_t mTelemetryId;
2153 const PersistenceType mPersistenceType;
2154 const bool mInPrivateBrowsing;
2155 FlippedOnce<false> mClosed;
2156 FlippedOnce<false> mInvalidated;
2157 FlippedOnce<false> mActorWasAlive;
2158 FlippedOnce<false> mActorDestroyed;
2159 nsCOMPtr<nsIEventTarget> mBackgroundThread;
2160#ifdef DEBUG1
2161 bool mAllBlobsUnmapped;
2162#endif
2163
2164 public:
2165 // Created by OpenDatabaseOp.
2166 Database(SafeRefPtr<Factory> aFactory, const PrincipalInfo& aPrincipalInfo,
2167 const Maybe<ContentParentId>& aOptionalContentParentId,
2168 const quota::OriginMetadata& aOriginMetadata, uint32_t aTelemetryId,
2169 SafeRefPtr<FullDatabaseMetadata> aMetadata,
2170 SafeRefPtr<DatabaseFileManager> aFileManager,
2171 RefPtr<ClientDirectoryLock> aDirectoryLock, bool aInPrivateBrowsing,
2172 const Maybe<const CipherKey>& aMaybeKey);
2173
2174 void AssertIsOnConnectionThread() const {
2175#ifdef DEBUG1
2176 // mConnection is used to cache the result from ConnectionPool's
2177 // GetOrCreateConnection method (potentially avoiding a lock and a hash
2178 // lookup). However, once the connection is closed, the task queue for the
2179 // given database is also destroyed, so the connection, which caches the
2180 // event target it was created on, is no longer reliable for asserting that
2181 // the current thread is the connection thread (mConnection might be reset
2182 // when EnsureConnection is called again, but in the meantime, we have to
2183 // fallback to just checking the main thread and the PBackgroud thread).
2184 if (mConnection && !mConnection->Closed()) {
2185 mConnection->AssertIsOnConnectionThread();
2186 } else {
2187 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2187); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 2187; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2188 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2188); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 2188; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2189 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2189); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInvalidated"
")"); do { *((volatile int*)__null) = 2189; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2190 }
2191#endif
2192 }
2193
2194 NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType AddRef() override {
2195 return AtomicSafeRefCounted<Database>::AddRef();
2196 }
2197 NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType Release() override {
2198 return AtomicSafeRefCounted<Database>::Release();
2199 }
2200
2201 MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::Database)const char* typeName() const { return "mozilla::dom::indexedDB::Database"
; } size_t typeSize() const { return sizeof(*this); }
2202
2203 void Invalidate();
2204
2205 bool IsOwnedByProcess(ContentParentId aContentParentId) const {
2206 return mOptionalContentParentId &&
2207 mOptionalContentParentId.value() == aContentParentId;
2208 }
2209
2210 const quota::OriginMetadata& OriginMetadata() const {
2211 return mOriginMetadata;
2212 }
2213
2214 const nsCString& Id() const { return mId; }
2215
2216 Maybe<ClientDirectoryLock&> MaybeDirectoryLockRef() const {
2217 AssertIsOnBackgroundThread();
2218
2219 return ToMaybeRef(mDirectoryLock.get());
2220 }
2221
2222 int64_t DirectoryLockId() const { return mDirectoryLockId; }
2223
2224 uint32_t TelemetryId() const { return mTelemetryId; }
2225
2226 PersistenceType Type() const { return mPersistenceType; }
2227
2228 const nsString& FilePath() const { return mFilePath; }
2229
2230 DatabaseFileManager& GetFileManager() const { return *mFileManager; }
2231
2232 MovingNotNull<SafeRefPtr<DatabaseFileManager>> GetFileManagerPtr() const {
2233 return WrapMovingNotNull(mFileManager.clonePtr());
2234 }
2235
2236 const FullDatabaseMetadata& Metadata() const {
2237 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2237); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"
); do { *((volatile int*)__null) = 2237; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2238 return *mMetadata;
2239 }
2240
2241 SafeRefPtr<FullDatabaseMetadata> MetadataPtr() const {
2242 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2242); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"
); do { *((volatile int*)__null) = 2242; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2243 return mMetadata.clonePtr();
2244 }
2245
2246 PBackgroundParent* GetBackgroundParent() const {
2247 AssertIsOnBackgroundThread();
2248 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2248); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 2248; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2249
2250 return Manager()->Manager();
2251 }
2252
2253 DatabaseLoggingInfo* GetLoggingInfo() const {
2254 AssertIsOnBackgroundThread();
2255 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")"
); do { *((volatile int*)__null) = 2255; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2256
2257 return mFactory->GetLoggingInfo();
2258 }
2259
2260 bool RegisterTransaction(TransactionBase& aTransaction);
2261
2262 void UnregisterTransaction(TransactionBase& aTransaction);
2263
2264 void SetActorAlive();
2265
2266 void MapBlob(const IPCBlob& aIPCBlob, SafeRefPtr<DatabaseFileInfo> aFileInfo);
2267
2268 bool IsActorAlive() const {
2269 AssertIsOnBackgroundThread();
2270
2271 return mActorWasAlive && !mActorDestroyed;
2272 }
2273
2274 bool IsActorDestroyed() const {
2275 AssertIsOnBackgroundThread();
2276
2277 return mActorWasAlive && mActorDestroyed;
2278 }
2279
2280 bool IsClosed() const {
2281 AssertIsOnBackgroundThread();
2282
2283 return mClosed;
2284 }
2285
2286 bool IsInvalidated() const {
2287 AssertIsOnBackgroundThread();
2288
2289 return mInvalidated;
2290 }
2291
2292 nsresult EnsureConnection();
2293
2294 DatabaseConnection* GetConnection() const {
2295#ifdef DEBUG1
2296 if (mConnection) {
2297 mConnection->AssertIsOnConnectionThread();
2298 }
2299#endif
2300
2301 return mConnection;
2302 }
2303
2304 void Stringify(nsACString& aResult) const;
2305
2306 bool IsInPrivateBrowsing() const {
2307 AssertIsOnBackgroundThread();
2308 return mInPrivateBrowsing;
2309 }
2310
2311 const Maybe<const CipherKey>& MaybeKeyRef() const {
2312 // This can be called on any thread, as it is const.
2313 MOZ_ASSERT(mKey.isSome() == mInPrivateBrowsing)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mKey.isSome() == mInPrivateBrowsing)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mKey.isSome() == mInPrivateBrowsing
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mKey.isSome() == mInPrivateBrowsing", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2313); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKey.isSome() == mInPrivateBrowsing"
")"); do { *((volatile int*)__null) = 2313; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2314 return mKey;
2315 }
2316
2317 ~Database() override {
2318 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2318); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mClosed" ")"
); do { *((volatile int*)__null) = 2318; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2319 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed"
")"); do { *((volatile int*)__null) = 2319; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
2320
2321 NS_ProxyRelease("ReleaseIDBFactory", mBackgroundThread.get(),
2322 mFactory.forget());
2323 }
2324
2325 private:
2326 [[nodiscard]] SafeRefPtr<DatabaseFileInfo> GetBlob(const IPCBlob& aIPCBlob);
2327
2328 void UnmapBlob(const nsID& aID);
2329
2330 void UnmapAllBlobs();
2331
2332 bool CloseInternal();
2333
2334 void MaybeCloseConnection();
2335
2336 void ConnectionClosedCallback();
2337
2338 void CleanupMetadata();
2339
2340 // IPDL methods are only called by IPDL.
2341 void ActorDestroy(ActorDestroyReason aWhy) override;
2342
2343 PBackgroundIDBDatabaseFileParent* AllocPBackgroundIDBDatabaseFileParent(
2344 const IPCBlob& aIPCBlob) override;
2345
2346 bool DeallocPBackgroundIDBDatabaseFileParent(
2347 PBackgroundIDBDatabaseFileParent* aActor) override;
2348
2349 already_AddRefed<PBackgroundIDBTransactionParent>
2350 AllocPBackgroundIDBTransactionParent(
2351 const nsTArray<nsString>& aObjectStoreNames, const Mode& aMode,
2352 const Durability& aDurability) override;
2353
2354 mozilla::ipc::IPCResult RecvPBackgroundIDBTransactionConstructor(
2355 PBackgroundIDBTransactionParent* aActor,
2356 nsTArray<nsString>&& aObjectStoreNames, const Mode& aMode,
2357 const Durability& aDurability) override;
2358
2359 mozilla::ipc::IPCResult RecvDeleteMe() override;
2360
2361 mozilla::ipc::IPCResult RecvBlocked() override;
2362
2363 mozilla::ipc::IPCResult RecvClose() override;
2364
2365 template <typename T>
2366 static bool InvalidateAll(const nsTBaseHashSet<nsPtrHashKey<T>>& aTable);
2367};
2368
2369class Database::StartTransactionOp final
2370 : public TransactionDatabaseOperationBase {
2371 friend class Database;
2372
2373 private:
2374 explicit StartTransactionOp(SafeRefPtr<TransactionBase> aTransaction)
2375 : TransactionDatabaseOperationBase(std::move(aTransaction),
2376 /* aRequestId */ 0,
2377 /* aLoggingSerialNumber */ 0) {}
2378
2379 ~StartTransactionOp() override = default;
2380
2381 void RunOnConnectionThread() override;
2382
2383 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
2384
2385 nsresult SendSuccessResult() override;
2386
2387 bool SendFailureResult(nsresult aResultCode) override;
2388
2389 void Cleanup() override;
2390};
2391
2392class Database::UnmapBlobCallback final
2393 : public RemoteLazyInputStreamParentCallback {
2394 SafeRefPtr<Database> mDatabase;
2395 nsCOMPtr<nsISerialEventTarget> mBackgroundThread;
2396
2397 public:
2398 explicit UnmapBlobCallback(SafeRefPtr<Database> aDatabase)
2399 : mDatabase(std::move(aDatabase)),
2400 mBackgroundThread(GetCurrentSerialEventTarget()) {
2401 AssertIsOnBackgroundThread();
2402 }
2403
2404 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2404); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
2404; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2404); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 2404
; __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:
2405
2406 void ActorDestroyed(const nsID& aID) override {
2407 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2407); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { *((volatile int*)__null) = 2407; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2408 mBackgroundThread->Dispatch(NS_NewRunnableFunction(
2409 "UnmapBlobCallback", [aID, database = std::move(mDatabase)] {
2410 AssertIsOnBackgroundThread();
2411 database->UnmapBlob(aID);
2412 }));
2413 }
2414
2415 private:
2416 ~UnmapBlobCallback() = default;
2417};
2418
2419/**
2420 * In coordination with IDBDatabase's mFileActors weak-map on the child side, a
2421 * long-lived mapping from a child process's live Blobs to their corresponding
2422 * DatabaseFileInfo in our owning database. Assists in avoiding redundant IPC
2423 * traffic and disk storage. This includes both:
2424 * - Blobs retrieved from this database and sent to the child that do not need
2425 * to be written to disk because they already exist on disk in this database's
2426 * files directory.
2427 * - Blobs retrieved from other databases or from anywhere else that will need
2428 * to be written to this database's files directory. In this case we will
2429 * hold a reference to its BlobImpl in mBlobImpl until we have successfully
2430 * written the Blob to disk.
2431 *
2432 * Relevant Blob context: Blobs sent from the parent process to child processes
2433 * are automatically linked back to their source BlobImpl when the child process
2434 * references the Blob via IPC. This is done using the internal IPCBlob
2435 * inputStream actor ID to DatabaseFileInfo mapping. However, when getting an
2436 * actor in the child process for sending an in-child-created Blob to the
2437 * parent process, there is (currently) no Blob machinery to automatically
2438 * establish and reuse a long-lived Actor. As a result, without IDB's weak-map
2439 * cleverness, a memory-backed Blob repeatedly sent from the child to the parent
2440 * would appear as a different Blob each time, requiring the Blob data to be
2441 * sent over IPC each time as well as potentially needing to be written to disk
2442 * each time.
2443 *
2444 * This object remains alive as long as there is an active child actor or an
2445 * ObjectStoreAddOrPutRequestOp::StoredFileInfo for a queued or active add/put
2446 * op is holding a reference to us.
2447 */
2448class DatabaseFile final : public PBackgroundIDBDatabaseFileParent {
2449 // mBlobImpl's ownership lifecycle:
2450 // - Initialized on the background thread at creation time. Then
2451 // responsibility is handed off to the connection thread.
2452 // - Checked and used by the connection thread to generate a stream to write
2453 // the blob to disk by an add/put operation.
2454 // - Cleared on the connection thread once the file has successfully been
2455 // written to disk.
2456 InitializedOnce<const RefPtr<BlobImpl>> mBlobImpl;
2457 const SafeRefPtr<DatabaseFileInfo> mFileInfo;
2458
2459 public:
2460 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
2460; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 2460
; __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:
;
2461
2462 const DatabaseFileInfo& GetFileInfo() const {
2463 AssertIsOnBackgroundThread();
2464
2465 return *mFileInfo;
2466 }
2467
2468 SafeRefPtr<DatabaseFileInfo> GetFileInfoPtr() const {
2469 AssertIsOnBackgroundThread();
2470
2471 return mFileInfo.clonePtr();
2472 }
2473
2474 /**
2475 * If mBlobImpl is non-null (implying the contents of this file have not yet
2476 * been written to disk), then return an input stream. Otherwise, if mBlobImpl
2477 * is null (because the contents have been written to disk), returns null.
2478 */
2479 [[nodiscard]] nsCOMPtr<nsIInputStream> GetInputStream(ErrorResult& rv) const;
2480
2481 /**
2482 * To be called upon successful copying of the stream GetInputStream()
2483 * returned so that we won't try and redundantly write the file to disk in the
2484 * future. This is a separate step from GetInputStream() because
2485 * the write could fail due to quota errors that happen now but that might
2486 * not happen in a future attempt.
2487 */
2488 void WriteSucceededClearBlobImpl() {
2489 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2489); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 2489; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2490
2491 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "*mBlobImpl"
")"); do { *((volatile int*)__null) = 2491; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2492 mBlobImpl.destroy();
2493 }
2494
2495 public:
2496 // Called when sending to the child.
2497 explicit DatabaseFile(SafeRefPtr<DatabaseFileInfo> aFileInfo)
2498 : mBlobImpl{nullptr}, mFileInfo(std::move(aFileInfo)) {
2499 AssertIsOnBackgroundThread();
2500 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2500); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileInfo" ")"
); do { *((volatile int*)__null) = 2500; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2501 }
2502
2503 // Called when receiving from the child.
2504 DatabaseFile(RefPtr<BlobImpl> aBlobImpl,
2505 SafeRefPtr<DatabaseFileInfo> aFileInfo)
2506 : mBlobImpl(std::move(aBlobImpl)), mFileInfo(std::move(aFileInfo)) {
2507 AssertIsOnBackgroundThread();
2508 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2508); AnnotateMozCrashReason("MOZ_ASSERT" "(" "*mBlobImpl"
")"); do { *((volatile int*)__null) = 2508; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2509 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2509); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileInfo" ")"
); do { *((volatile int*)__null) = 2509; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2510 }
2511
2512 private:
2513 ~DatabaseFile() override = default;
2514
2515 void ActorDestroy(ActorDestroyReason aWhy) override {
2516 AssertIsOnBackgroundThread();
2517 }
2518};
2519
2520nsCOMPtr<nsIInputStream> DatabaseFile::GetInputStream(ErrorResult& rv) const {
2521 // We should only be called from our DB connection thread, not the background
2522 // thread.
2523 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2523); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 2523; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2524
2525 // If we were constructed without a BlobImpl, or WriteSucceededClearBlobImpl
2526 // was already called, return nullptr.
2527 if (!mBlobImpl || !*mBlobImpl) {
2528 return nullptr;
2529 }
2530
2531 nsCOMPtr<nsIInputStream> inputStream;
2532 (*mBlobImpl)->CreateInputStream(getter_AddRefs(inputStream), rv);
2533 if (rv.Failed()) {
2534 return nullptr;
2535 }
2536
2537 return inputStream;
2538}
2539
2540class TransactionBase : public AtomicSafeRefCounted<TransactionBase> {
2541 friend class CursorBase;
2542
2543 template <IDBCursorType CursorType>
2544 friend class Cursor;
2545
2546 class CommitOp;
2547
2548 protected:
2549 using Mode = IDBTransaction::Mode;
2550 using Durability = IDBTransaction::Durability;
2551
2552 private:
2553 const SafeRefPtr<Database> mDatabase;
2554 nsTArray<SafeRefPtr<FullObjectStoreMetadata>>
2555 mModifiedAutoIncrementObjectStoreMetadataArray;
2556 LazyInitializedOnceNotNull<const uint64_t> mTransactionId;
2557 const nsCString mDatabaseId;
2558 const int64_t mLoggingSerialNumber;
2559 uint64_t mActiveRequestCount;
2560 Atomic<bool> mInvalidatedOnAnyThread;
2561 const Mode mMode;
2562 const Durability mDurability;
2563 FlippedOnce<false> mInitialized;
2564 FlippedOnce<false> mHasBeenActiveOnConnectionThread;
2565 FlippedOnce<false> mActorDestroyed;
2566 FlippedOnce<false> mInvalidated;
2567
2568 protected:
2569 nsresult mResultCode;
2570 FlippedOnce<false> mCommitOrAbortReceived;
2571 FlippedOnce<false> mCommittedOrAborted;
2572 FlippedOnce<false> mForceAborted;
2573 LazyInitializedOnce<const Maybe<int64_t>> mLastRequestBeforeCommit;
2574 Maybe<int64_t> mLastFailedRequest;
2575
2576 public:
2577 void AssertIsOnConnectionThread() const {
2578 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2578); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { *((volatile int*)__null) = 2578; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2579 mDatabase->AssertIsOnConnectionThread();
2580 }
2581
2582 bool IsActorDestroyed() const {
2583 AssertIsOnBackgroundThread();
2584
2585 return mActorDestroyed;
2586 }
2587
2588 // Must be called on the background thread.
2589 bool IsInvalidated() const {
2590 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()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2590); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnBackgroundThread()"
") (" "Use IsInvalidatedOnAnyThread()" ")"); do { *((volatile
int*)__null) = 2590; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false)
;
2591 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2591); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)))"
")"); do { *((volatile int*)__null) = 2591; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
2592
2593 return mInvalidated;
2594 }
2595
2596 // May be called on any thread, but is more expensive than IsInvalidated().
2597 bool IsInvalidatedOnAnyThread() const { return mInvalidatedOnAnyThread; }
2598
2599 void Init(const uint64_t aTransactionId) {
2600 AssertIsOnBackgroundThread();
2601 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransactionId"
")"); do { *((volatile int*)__null) = 2601; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2602
2603 mTransactionId.init(aTransactionId);
2604 mInitialized.Flip();
2605 }
2606
2607 void SetActiveOnConnectionThread() {
2608 AssertIsOnConnectionThread();
2609 mHasBeenActiveOnConnectionThread.Flip();
2610 }
2611
2612 MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::TransactionBase)const char* typeName() const { return "mozilla::dom::indexedDB::TransactionBase"
; } size_t typeSize() const { return sizeof(*this); }
2613
2614 void Abort(nsresult aResultCode, bool aForce);
2615
2616 uint64_t TransactionId() const { return *mTransactionId; }
2617
2618 const nsACString& DatabaseId() const { return mDatabaseId; }
2619
2620 Mode GetMode() const { return mMode; }
2621
2622 Durability GetDurability() const { return mDurability; }
2623
2624 const Database& GetDatabase() const {
2625 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2625); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { *((volatile int*)__null) = 2625; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2626
2627 return *mDatabase;
2628 }
2629
2630 Database& GetMutableDatabase() const {
2631 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2631); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { *((volatile int*)__null) = 2631; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2632
2633 return *mDatabase;
2634 }
2635
2636 SafeRefPtr<Database> GetDatabasePtr() const {
2637 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { *((volatile int*)__null) = 2637; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2638
2639 return mDatabase.clonePtr();
2640 }
2641
2642 DatabaseLoggingInfo* GetLoggingInfo() const {
2643 AssertIsOnBackgroundThread();
2644 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2644); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { *((volatile int*)__null) = 2644; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2645
2646 return mDatabase->GetLoggingInfo();
2647 }
2648
2649 int64_t LoggingSerialNumber() const { return mLoggingSerialNumber; }
2650
2651 bool IsAborted() const {
2652 AssertIsOnBackgroundThread();
2653
2654 return NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0))
)
;
2655 }
2656
2657 [[nodiscard]] SafeRefPtr<FullObjectStoreMetadata> GetMetadataForObjectStoreId(
2658 IndexOrObjectStoreId aObjectStoreId) const;
2659
2660 [[nodiscard]] SafeRefPtr<FullIndexMetadata> GetMetadataForIndexId(
2661 FullObjectStoreMetadata& aObjectStoreMetadata,
2662 IndexOrObjectStoreId aIndexId) const;
2663
2664 PBackgroundParent* GetBackgroundParent() const {
2665 AssertIsOnBackgroundThread();
2666 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2666); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 2666; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2667
2668 return GetDatabase().GetBackgroundParent();
2669 }
2670
2671 void NoteModifiedAutoIncrementObjectStore(
2672 const SafeRefPtr<FullObjectStoreMetadata>& aMetadata);
2673
2674 void ForgetModifiedAutoIncrementObjectStore(
2675 FullObjectStoreMetadata& aMetadata);
2676
2677 void NoteActiveRequest();
2678
2679 void NoteFinishedRequest(int64_t aRequestId, nsresult aResultCode);
2680
2681 void Invalidate();
2682
2683 virtual ~TransactionBase();
2684
2685 protected:
2686 TransactionBase(SafeRefPtr<Database> aDatabase, Mode aMode,
2687 Durability aDurability);
2688
2689 void NoteActorDestroyed() {
2690 AssertIsOnBackgroundThread();
2691
2692 mActorDestroyed.Flip();
2693 }
2694
2695#ifdef DEBUG1
2696 // Only called by VersionChangeTransaction.
2697 void FakeActorDestroyed() { mActorDestroyed.EnsureFlipped(); }
2698#endif
2699
2700 mozilla::ipc::IPCResult RecvCommit(IProtocol* aActor,
2701 const Maybe<int64_t> aLastRequest);
2702
2703 mozilla::ipc::IPCResult RecvAbort(IProtocol* aActor, nsresult aResultCode);
2704
2705 void MaybeCommitOrAbort() {
2706 AssertIsOnBackgroundThread();
2707
2708 // If we've already committed or aborted then there's nothing else to do.
2709 if (mCommittedOrAborted) {
2710 return;
2711 }
2712
2713 // If there are active requests then we have to wait for those requests to
2714 // complete (see NoteFinishedRequest).
2715 if (mActiveRequestCount) {
2716 return;
2717 }
2718
2719 // If we haven't yet received a commit or abort message then there could be
2720 // additional requests coming so we should wait unless we're being forced to
2721 // abort.
2722 if (!mCommitOrAbortReceived && !mForceAborted) {
2723 return;
2724 }
2725
2726 CommitOrAbort();
2727 }
2728
2729 PBackgroundIDBRequestParent* AllocRequest(const int64_t aRequestId,
2730 RequestParams&& aParams,
2731 bool aTrustParams);
2732
2733 bool StartRequest(PBackgroundIDBRequestParent* aActor);
2734
2735 bool DeallocRequest(PBackgroundIDBRequestParent* aActor);
2736
2737 already_AddRefed<PBackgroundIDBCursorParent> AllocCursor(
2738 const OpenCursorParams& aParams, bool aTrustParams);
2739
2740 bool StartCursor(PBackgroundIDBCursorParent* aActor, const int64_t aRequestId,
2741 const OpenCursorParams& aParams);
2742
2743 virtual void UpdateMetadata(nsresult aResult) {}
2744
2745 virtual void SendCompleteNotification(nsresult aResult) = 0;
2746
2747 private:
2748 bool VerifyRequestParams(const RequestParams& aParams) const;
2749
2750 bool VerifyRequestParams(const SerializedKeyRange& aParams) const;
2751
2752 bool VerifyRequestParams(const ObjectStoreAddPutParams& aParams) const;
2753
2754 bool VerifyRequestParams(const Maybe<SerializedKeyRange>& aParams) const;
2755
2756 void CommitOrAbort();
2757};
2758
2759class TransactionBase::CommitOp final : public DatabaseOperationBase,
2760 public ConnectionPool::FinishCallback {
2761 friend class TransactionBase;
2762
2763 SafeRefPtr<TransactionBase> mTransaction;
2764 nsresult mResultCode; ///< TODO: There is also a mResultCode in
2765 ///< DatabaseOperationBase. Is there a reason not to
2766 ///< use that? At least a more specific name should be
2767 ///< given to this one.
2768
2769 private:
2770 CommitOp(SafeRefPtr<TransactionBase> aTransaction, nsresult aResultCode);
2771
2772 ~CommitOp() override = default;
2773
2774 // Writes new autoIncrement counts to database.
2775 nsresult WriteAutoIncrementCounts();
2776
2777 // Updates counts after a database activity has finished.
2778 void CommitOrRollbackAutoIncrementCounts();
2779
2780 void AssertForeignKeyConsistency(DatabaseConnection* aConnection)
2781#ifdef DEBUG1
2782 ;
2783#else
2784 {
2785 }
2786#endif
2787
2788 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
2789
2790 void TransactionFinishedBeforeUnblock() override;
2791
2792 void TransactionFinishedAfterUnblock() override;
2793
2794 public:
2795 // We need to declare all of nsISupports, because FinishCallback has
2796 // a pure-virtual nsISupports declaration.
2797 NS_DECL_ISUPPORTS_INHERITEDpublic: virtual nsresult QueryInterface(const nsIID& aIID
, void** aInstancePtr) override; virtual MozExternalRefCountType
AddRef(void) override; virtual MozExternalRefCountType Release
(void) override;
2798};
2799
2800class NormalTransaction final : public TransactionBase,
2801 public PBackgroundIDBTransactionParent {
2802 nsTArray<SafeRefPtr<FullObjectStoreMetadata>> mObjectStores;
2803
2804 // Reference counted.
2805 ~NormalTransaction() override = default;
2806
2807 bool IsSameProcessActor();
2808
2809 // Only called by TransactionBase.
2810 void SendCompleteNotification(nsresult aResult) override;
2811
2812 // IPDL methods are only called by IPDL.
2813 void ActorDestroy(ActorDestroyReason aWhy) override;
2814
2815 mozilla::ipc::IPCResult RecvDeleteMe() override;
2816
2817 mozilla::ipc::IPCResult RecvCommit(
2818 const Maybe<int64_t>& aLastRequest) override;
2819
2820 mozilla::ipc::IPCResult RecvAbort(const nsresult& aResultCode) override;
2821
2822 PBackgroundIDBRequestParent* AllocPBackgroundIDBRequestParent(
2823 const int64_t& aRequestId, const RequestParams& aParams) override;
2824
2825 mozilla::ipc::IPCResult RecvPBackgroundIDBRequestConstructor(
2826 PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId,
2827 const RequestParams& aParams) override;
2828
2829 bool DeallocPBackgroundIDBRequestParent(
2830 PBackgroundIDBRequestParent* aActor) override;
2831
2832 already_AddRefed<PBackgroundIDBCursorParent> AllocPBackgroundIDBCursorParent(
2833 const int64_t& aRequestId, const OpenCursorParams& aParams) override;
2834
2835 mozilla::ipc::IPCResult RecvPBackgroundIDBCursorConstructor(
2836 PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId,
2837 const OpenCursorParams& aParams) override;
2838
2839 public:
2840 // This constructor is only called by Database.
2841 NormalTransaction(
2842 SafeRefPtr<Database> aDatabase, TransactionBase::Mode aMode,
2843 TransactionBase::Durability aDurability,
2844 nsTArray<SafeRefPtr<FullObjectStoreMetadata>>&& aObjectStores);
2845
2846 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; }
2847};
2848
2849class VersionChangeTransaction final
2850 : public TransactionBase,
2851 public PBackgroundIDBVersionChangeTransactionParent {
2852 friend class OpenDatabaseOp;
2853
2854 RefPtr<OpenDatabaseOp> mOpenDatabaseOp;
2855 SafeRefPtr<FullDatabaseMetadata> mOldMetadata;
2856
2857 FlippedOnce<false> mActorWasAlive;
2858
2859 public:
2860 // Only called by OpenDatabaseOp.
2861 explicit VersionChangeTransaction(OpenDatabaseOp* aOpenDatabaseOp);
2862
2863 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; }
2864 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; }
2865
2866 private:
2867 // Reference counted.
2868 ~VersionChangeTransaction() override;
2869
2870 bool IsSameProcessActor();
2871
2872 // Only called by OpenDatabaseOp.
2873 bool CopyDatabaseMetadata();
2874
2875 void SetActorAlive();
2876
2877 // Only called by TransactionBase.
2878 void UpdateMetadata(nsresult aResult) override;
2879
2880 // Only called by TransactionBase.
2881 void SendCompleteNotification(nsresult aResult) override;
2882
2883 // IPDL methods are only called by IPDL.
2884 void ActorDestroy(ActorDestroyReason aWhy) override;
2885
2886 mozilla::ipc::IPCResult RecvDeleteMe() override;
2887
2888 mozilla::ipc::IPCResult RecvCommit(
2889 const Maybe<int64_t>& aLastRequest) override;
2890
2891 mozilla::ipc::IPCResult RecvAbort(const nsresult& aResultCode) override;
2892
2893 mozilla::ipc::IPCResult RecvCreateObjectStore(
2894 const ObjectStoreMetadata& aMetadata) override;
2895
2896 mozilla::ipc::IPCResult RecvDeleteObjectStore(
2897 const IndexOrObjectStoreId& aObjectStoreId) override;
2898
2899 mozilla::ipc::IPCResult RecvRenameObjectStore(
2900 const IndexOrObjectStoreId& aObjectStoreId,
2901 const nsAString& aName) override;
2902
2903 mozilla::ipc::IPCResult RecvCreateIndex(
2904 const IndexOrObjectStoreId& aObjectStoreId,
2905 const IndexMetadata& aMetadata) override;
2906
2907 mozilla::ipc::IPCResult RecvDeleteIndex(
2908 const IndexOrObjectStoreId& aObjectStoreId,
2909 const IndexOrObjectStoreId& aIndexId) override;
2910
2911 mozilla::ipc::IPCResult RecvRenameIndex(
2912 const IndexOrObjectStoreId& aObjectStoreId,
2913 const IndexOrObjectStoreId& aIndexId, const nsAString& aName) override;
2914
2915 PBackgroundIDBRequestParent* AllocPBackgroundIDBRequestParent(
2916 const int64_t& aRequestId, const RequestParams& aParams) override;
2917
2918 mozilla::ipc::IPCResult RecvPBackgroundIDBRequestConstructor(
2919 PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId,
2920 const RequestParams& aParams) override;
2921
2922 bool DeallocPBackgroundIDBRequestParent(
2923 PBackgroundIDBRequestParent* aActor) override;
2924
2925 already_AddRefed<PBackgroundIDBCursorParent> AllocPBackgroundIDBCursorParent(
2926 const int64_t& aRequestId, const OpenCursorParams& aParams) override;
2927
2928 mozilla::ipc::IPCResult RecvPBackgroundIDBCursorConstructor(
2929 PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId,
2930 const OpenCursorParams& aParams) override;
2931};
2932
2933class FactoryOp
2934 : public DatabaseOperationBase,
2935 public SupportsCheckedUnsafePtr<CheckIf<DiagnosticAssertEnabled>> {
2936 public:
2937 struct MaybeBlockedDatabaseInfo final {
2938 SafeRefPtr<Database> mDatabase;
2939 bool mBlocked;
2940
2941 MaybeBlockedDatabaseInfo(MaybeBlockedDatabaseInfo&&) = default;
2942 MaybeBlockedDatabaseInfo& operator=(MaybeBlockedDatabaseInfo&&) = default;
2943
2944 MOZ_IMPLICIT MaybeBlockedDatabaseInfo(SafeRefPtr<Database> aDatabase)
2945 : mDatabase(std::move(aDatabase)), mBlocked(false) {
2946 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 2946); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { *((volatile int*)__null) = 2946; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2947
2948 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<nsISupports, FactoryOp::
MaybeBlockedDatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "FactoryOp::MaybeBlockedDatabaseInfo"
, sizeof(*this)); } while (0)
;
2949 }
2950
2951 ~MaybeBlockedDatabaseInfo() {
2952 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<nsISupports, FactoryOp::
MaybeBlockedDatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "FactoryOp::MaybeBlockedDatabaseInfo"
, sizeof(*this)); } while (0)
;
2953 }
2954
2955 bool operator==(const Database* aOther) const {
2956 return mDatabase == aOther;
2957 }
2958
2959 Database* operator->() const& MOZ_NO_ADDREF_RELEASE_ON_RETURN {
2960 return mDatabase.unsafeGetRawPtr();
2961 }
2962 };
2963
2964 protected:
2965 enum class State {
2966 // Just created on the PBackground thread, dispatched to the current thread.
2967 // Next step is either SendingResults if opening initialization failed, or
2968 // DirectoryOpenPending if the opening initialization succeeded.
2969 Initial,
2970
2971 // Waiting for directory open allowed on the PBackground thread. The next
2972 // step is either SendingResults if directory lock failed to acquire, or
2973 // DirectoryWorkOpen if the factory operation is not tied up to a specific
2974 // database, or DatabaseOpenPending otherwise.
2975 DirectoryOpenPending,
2976
2977 // Waiting to do/doing directory work on the QuotaManager IO thread. Its
2978 // next step is DirectoryWorkDone if directory work was successful or
2979 // SendingResults if directory work failed.
2980 DirectoryWorkOpen,
2981
2982 // Checking if database work can be started. If the database is not blocked
2983 // by other factory operations then the next step is DatabaseWorkOpen.
2984 // Otherwise the next step is DatabaseOpenPending.
2985 DirectoryWorkDone,
2986
2987 // Waiting for database open allowed on the PBackground thread. The next
2988 // step is DatabaseWorkOpen.
2989 DatabaseOpenPending,
2990
2991 // Waiting to do/doing work on the QuotaManager IO thread. Its next step is
2992 // either BeginVersionChange if the requested version doesn't match the
2993 // existing database version or SendingResults if the versions match.
2994 DatabaseWorkOpen,
2995
2996 // Starting a version change transaction or deleting a database on the
2997 // PBackground thread. We need to notify other databases that a version
2998 // change is about to happen, and maybe tell the request that a version
2999 // change has been blocked. If databases are notified then the next step is
3000 // WaitingForOtherDatabasesToClose. Otherwise the next step is
3001 // WaitingForTransactionsToComplete.
3002 BeginVersionChange,
3003
3004 // Waiting for other databases to close on the PBackground thread. This
3005 // state may persist until all databases are closed. The next state is
3006 // WaitingForTransactionsToComplete.
3007 WaitingForOtherDatabasesToClose,
3008
3009 // Waiting for all transactions that could interfere with this operation to
3010 // complete on the PBackground thread. Next state is
3011 // DatabaseWorkVersionChange.
3012 WaitingForTransactionsToComplete,
3013
3014 // Waiting to do/doing work on the "work thread". This involves waiting for
3015 // the VersionChangeOp (OpenDatabaseOp and DeleteDatabaseOp each have a
3016 // different implementation) to do its work. If the VersionChangeOp is
3017 // OpenDatabaseOp and it succeeded then the next state is
3018 // DatabaseWorkVersionUpdate. Otherwise the next step is SendingResults.
3019 DatabaseWorkVersionChange,
3020
3021 // Waiting to do/doing finalization work on the QuotaManager IO thread.
3022 // Eventually the state will transition to SendingResults.
3023 DatabaseWorkVersionUpdate,
3024
3025 // Waiting to send/sending results on the PBackground thread. Next step is
3026 // Completed.
3027 SendingResults,
3028
3029 // All done.
3030 Completed
3031 };
3032
3033 // Must be released on the background thread!
3034 SafeRefPtr<Factory> mFactory;
3035
3036 Maybe<ContentParentId> mContentParentId;
3037
3038 // Must be released on the main thread!
3039 RefPtr<ClientDirectoryLock> mDirectoryLock;
3040
3041 nsTArray<NotNull<RefPtr<FactoryOp>>> mBlocking;
3042 nsTArray<NotNull<RefPtr<FactoryOp>>> mBlockedOn;
3043
3044 nsTArray<MaybeBlockedDatabaseInfo> mMaybeBlockedDatabases;
3045
3046 const PrincipalInfo mPrincipalInfo;
3047 OriginMetadata mOriginMetadata;
3048 Maybe<nsString> mDatabaseName;
3049 Maybe<nsCString> mDatabaseId;
3050 Maybe<nsString> mDatabaseFilePath;
3051 int64_t mDirectoryLockId;
3052 const PersistenceType mPersistenceType;
3053 State mState;
3054 bool mWaitingForPermissionRetry;
3055 bool mEnforcingQuota;
3056 const bool mDeleting;
3057 FlippedOnce<false> mInPrivateBrowsing;
3058
3059 public:
3060 const nsACString& Origin() const {
3061 AssertIsOnOwningThread();
3062
3063 return mOriginMetadata.mOrigin;
3064 }
3065
3066 const Maybe<nsString>& DatabaseNameRef() const {
3067 AssertIsOnOwningThread();
3068
3069 return mDatabaseName;
3070 }
3071
3072 bool DatabaseFilePathIsKnown() const {
3073 AssertIsOnOwningThread();
3074
3075 return mDatabaseFilePath.isSome();
3076 }
3077
3078 const nsAString& DatabaseFilePath() const {
3079 AssertIsOnOwningThread();
3080 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3080); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseFilePath"
")"); do { *((volatile int*)__null) = 3080; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3081
3082 return mDatabaseFilePath.ref();
3083 }
3084
3085 nsresult DispatchThisAfterProcessingCurrentEvent(
3086 nsCOMPtr<nsIEventTarget> aEventTarget);
3087
3088 void NoteDatabaseBlocked(Database* aDatabase);
3089
3090 void NoteDatabaseClosed(Database* aDatabase);
3091
3092#ifdef DEBUG1
3093 bool HasBlockedDatabases() const { return !mMaybeBlockedDatabases.IsEmpty(); }
3094#endif
3095
3096 void StringifyState(nsACString& aResult) const;
3097
3098 void Stringify(nsACString& aResult) const;
3099
3100 protected:
3101 FactoryOp(SafeRefPtr<Factory> aFactory,
3102 const Maybe<ContentParentId>& aContentParentId,
3103 const PersistenceType aPersistenceType,
3104 const PrincipalInfo& aPrincipalInfo,
3105 const Maybe<nsString>& aDatabaseName, bool aDeleting);
3106
3107 ~FactoryOp() override {
3108 // Normally this would be out-of-line since it is a virtual function but
3109 // MSVC 2010 fails to link for some reason if it is not inlined here...
3110 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3111); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::Completed"
")"); do { *((volatile int*)__null) = 3111; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3111 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3111); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::Completed"
")"); do { *((volatile int*)__null) = 3111; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3112 }
3113
3114 nsresult Open();
3115
3116 nsresult DirectoryOpen();
3117
3118 nsresult DirectoryWorkDone();
3119
3120 nsresult SendToIOThread();
3121
3122 void WaitForTransactions();
3123
3124 void CleanupMetadata();
3125
3126 void FinishSendResults();
3127
3128 nsresult SendVersionChangeMessages(DatabaseActorInfo* aDatabaseActorInfo,
3129 Maybe<Database&> aOpeningDatabase,
3130 uint64_t aOldVersion,
3131 const Maybe<uint64_t>& aNewVersion);
3132
3133 // Methods that subclasses must implement.
3134 virtual nsresult DoDirectoryWork() = 0;
3135
3136 virtual nsresult DatabaseOpen() = 0;
3137
3138 virtual nsresult DoDatabaseWork() = 0;
3139
3140 virtual nsresult BeginVersionChange() = 0;
3141
3142 virtual bool AreActorsAlive() = 0;
3143
3144 virtual nsresult DispatchToWorkThread() = 0;
3145
3146 virtual nsresult DoVersionUpdate() = 0;
3147
3148 // Should only be called by Run().
3149 virtual void SendResults() = 0;
3150
3151 // Common nsIRunnable implementation that subclasses may not override.
3152 NS_IMETHODvirtual nsresult
3153 Run() final;
3154
3155 void DirectoryLockAcquired(ClientDirectoryLock* aLock);
3156
3157 void DirectoryLockFailed();
3158
3159 virtual void SendBlockedNotification() = 0;
3160
3161 private:
3162 // Test whether this FactoryOp needs to wait for the given op.
3163 bool MustWaitFor(const FactoryOp& aExistingOp);
3164
3165 void AddBlockingOp(FactoryOp& aOp) {
3166 AssertIsOnOwningThread();
3167
3168 mBlocking.AppendElement(WrapNotNull(&aOp));
3169 }
3170
3171 void AddBlockedOnOp(FactoryOp& aOp) {
3172 AssertIsOnOwningThread();
3173
3174 mBlockedOn.AppendElement(WrapNotNull(&aOp));
3175 }
3176
3177 void MaybeUnblock(FactoryOp& aOp) {
3178 AssertIsOnOwningThread();
3179
3180 mBlockedOn.RemoveElement(&aOp);
3181 if (mBlockedOn.IsEmpty()) {
3182 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3182); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(this))"
")"); do { *((volatile int*)__null) = 3182; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
3183 }
3184 }
3185};
3186
3187class FactoryRequestOp : public FactoryOp,
3188 public PBackgroundIDBFactoryRequestParent {
3189 protected:
3190 const CommonFactoryRequestParams mCommonParams;
3191
3192 FactoryRequestOp(SafeRefPtr<Factory> aFactory,
3193 const Maybe<ContentParentId>& aContentParentId,
3194 const CommonFactoryRequestParams& aCommonParams,
3195 bool aDeleting)
3196 : FactoryOp(std::move(aFactory), aContentParentId,
3197 aCommonParams.metadata().persistenceType(),
3198 aCommonParams.principalInfo(),
3199 Some(aCommonParams.metadata().name()), aDeleting),
3200 mCommonParams(aCommonParams) {}
3201
3202 nsresult DoDirectoryWork() override;
3203
3204 // IPDL methods.
3205 void ActorDestroy(ActorDestroyReason aWhy) override;
3206};
3207
3208class OpenDatabaseOp final : public FactoryRequestOp {
3209 friend class Database;
3210 friend class VersionChangeTransaction;
3211
3212 class VersionChangeOp;
3213
3214 SafeRefPtr<FullDatabaseMetadata> mMetadata;
3215
3216 uint64_t mRequestedVersion;
3217 SafeRefPtr<DatabaseFileManager> mFileManager;
3218
3219 SafeRefPtr<Database> mDatabase;
3220 SafeRefPtr<VersionChangeTransaction> mVersionChangeTransaction;
3221
3222 // This is only set while a VersionChangeOp is live. It holds a strong
3223 // reference to its OpenDatabaseOp object so this is a weak pointer to avoid
3224 // cycles.
3225 VersionChangeOp* mVersionChangeOp;
3226
3227 MoveOnlyFunction<void()> mCompleteCallback;
3228
3229 uint32_t mTelemetryId;
3230
3231 public:
3232 OpenDatabaseOp(SafeRefPtr<Factory> aFactory,
3233 const Maybe<ContentParentId>& aContentParentId,
3234 const CommonFactoryRequestParams& aParams);
3235
3236 private:
3237 ~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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3237); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeOp"
")"); do { *((volatile int*)__null) = 3237; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
3238
3239 nsresult LoadDatabaseInformation(mozIStorageConnection& aConnection);
3240
3241 nsresult SendUpgradeNeeded();
3242
3243 void EnsureDatabaseActor();
3244
3245 nsresult EnsureDatabaseActorIsAlive();
3246
3247 mozilla::Result<DatabaseSpec, nsresult> MetadataToSpec() const;
3248
3249 void AssertMetadataConsistency(const FullDatabaseMetadata& aMetadata)
3250#ifdef DEBUG1
3251 ;
3252#else
3253 {
3254 }
3255#endif
3256
3257 void ConnectionClosedCallback();
3258
3259 void ActorDestroy(ActorDestroyReason aWhy) override;
3260
3261 nsresult DatabaseOpen() override;
3262
3263 nsresult DoDatabaseWork() override;
3264
3265 nsresult BeginVersionChange() override;
3266
3267 bool AreActorsAlive() override;
3268
3269 void SendBlockedNotification() override;
3270
3271 nsresult DispatchToWorkThread() override;
3272
3273 nsresult DoVersionUpdate() override;
3274
3275 void SendResults() override;
3276
3277 static nsresult UpdateLocaleAwareIndex(mozIStorageConnection& aConnection,
3278 const IndexMetadata& aIndexMetadata,
3279 const nsCString& aLocale);
3280};
3281
3282class OpenDatabaseOp::VersionChangeOp final
3283 : public TransactionDatabaseOperationBase {
3284 friend class OpenDatabaseOp;
3285
3286 RefPtr<OpenDatabaseOp> mOpenDatabaseOp;
3287 const uint64_t mRequestedVersion;
3288 uint64_t mPreviousVersion;
3289
3290 private:
3291 explicit VersionChangeOp(OpenDatabaseOp* aOpenDatabaseOp)
3292 : TransactionDatabaseOperationBase(
3293 aOpenDatabaseOp->mVersionChangeTransaction.clonePtr(),
3294 /* aRequestId */ 0, aOpenDatabaseOp->LoggingSerialNumber()),
3295 mOpenDatabaseOp(aOpenDatabaseOp),
3296 mRequestedVersion(aOpenDatabaseOp->mRequestedVersion),
3297 mPreviousVersion(
3298 aOpenDatabaseOp->mMetadata->mCommonMetadata.version()) {
3299 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3299); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpenDatabaseOp"
")"); do { *((volatile int*)__null) = 3299; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3300 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3300); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRequestedVersion"
")"); do { *((volatile int*)__null) = 3300; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3301 }
3302
3303 ~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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3303); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOpenDatabaseOp"
")"); do { *((volatile int*)__null) = 3303; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
3304
3305 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3306
3307 nsresult SendSuccessResult() override;
3308
3309 bool SendFailureResult(nsresult aResultCode) override;
3310
3311 void Cleanup() override;
3312};
3313
3314class DeleteDatabaseOp final : public FactoryRequestOp {
3315 class VersionChangeOp;
3316
3317 nsString mDatabaseDirectoryPath;
3318 nsString mDatabaseFilenameBase;
3319 uint64_t mPreviousVersion;
3320
3321 public:
3322 DeleteDatabaseOp(SafeRefPtr<Factory> aFactory,
3323 const Maybe<ContentParentId>& aContentParentId,
3324 const CommonFactoryRequestParams& aParams)
3325 : FactoryRequestOp(std::move(aFactory), aContentParentId, aParams,
3326 /* aDeleting */ true),
3327 mPreviousVersion(0) {}
3328
3329 private:
3330 ~DeleteDatabaseOp() override = default;
3331
3332 void LoadPreviousVersion(nsIFile& aDatabaseFile);
3333
3334 nsresult DatabaseOpen() override;
3335
3336 nsresult DoDatabaseWork() override;
3337
3338 nsresult BeginVersionChange() override;
3339
3340 bool AreActorsAlive() override;
3341
3342 void SendBlockedNotification() override;
3343
3344 nsresult DispatchToWorkThread() override;
3345
3346 nsresult DoVersionUpdate() override;
3347
3348 void SendResults() override;
3349};
3350
3351class DeleteDatabaseOp::VersionChangeOp final : public DatabaseOperationBase {
3352 friend class DeleteDatabaseOp;
3353
3354 RefPtr<DeleteDatabaseOp> mDeleteDatabaseOp;
3355
3356 private:
3357 explicit VersionChangeOp(DeleteDatabaseOp* aDeleteDatabaseOp)
3358 : DatabaseOperationBase(aDeleteDatabaseOp->BackgroundChildLoggingId(),
3359 aDeleteDatabaseOp->LoggingSerialNumber()),
3360 mDeleteDatabaseOp(aDeleteDatabaseOp) {
3361 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3361); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDeleteDatabaseOp"
")"); do { *((volatile int*)__null) = 3361; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3362 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3362); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty()"
")"); do { *((volatile int*)__null) = 3362; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3363 }
3364
3365 ~VersionChangeOp() override = default;
3366
3367 nsresult RunOnIOThread();
3368
3369 void RunOnOwningThread();
3370
3371 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
3372};
3373
3374class GetDatabasesOp final : public FactoryOp {
3375 nsTHashMap<nsStringHashKey, DatabaseMetadata> mDatabaseMetadataTable;
3376 nsTArray<DatabaseMetadata> mDatabaseMetadataArray;
3377 Factory::GetDatabasesResolver mResolver;
3378
3379 public:
3380 GetDatabasesOp(SafeRefPtr<Factory> aFactory,
3381 const Maybe<ContentParentId>& aContentParentId,
3382 const PersistenceType aPersistenceType,
3383 const PrincipalInfo& aPrincipalInfo,
3384 Factory::GetDatabasesResolver&& aResolver)
3385 : FactoryOp(std::move(aFactory), aContentParentId, aPersistenceType,
3386 aPrincipalInfo, Nothing(), /* aDeleting */ false),
3387 mResolver(std::move(aResolver)) {}
3388
3389 private:
3390 ~GetDatabasesOp() override = default;
3391
3392 nsresult DatabasesNotAvailable();
3393
3394 nsresult DoDirectoryWork() override;
3395
3396 nsresult DatabaseOpen() override;
3397
3398 nsresult DoDatabaseWork() override;
3399
3400 nsresult BeginVersionChange() override;
3401
3402 bool AreActorsAlive() override;
3403
3404 void SendBlockedNotification() override;
3405
3406 nsresult DispatchToWorkThread() override;
3407
3408 nsresult DoVersionUpdate() override;
3409
3410 void SendResults() override;
3411};
3412
3413class VersionChangeTransactionOp : public TransactionDatabaseOperationBase {
3414 public:
3415 void Cleanup() override;
3416
3417 protected:
3418 explicit VersionChangeTransactionOp(
3419 SafeRefPtr<VersionChangeTransaction> aTransaction)
3420 : TransactionDatabaseOperationBase(std::move(aTransaction),
3421 /* aRequestId */ 0) {}
3422
3423 ~VersionChangeTransactionOp() override = default;
3424
3425 private:
3426 nsresult SendSuccessResult() override;
3427
3428 bool SendFailureResult(nsresult aResultCode) override;
3429};
3430
3431class CreateObjectStoreOp final : public VersionChangeTransactionOp {
3432 friend class VersionChangeTransaction;
3433
3434 const ObjectStoreMetadata mMetadata;
3435
3436 private:
3437 // Only created by VersionChangeTransaction.
3438 CreateObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3439 const ObjectStoreMetadata& aMetadata)
3440 : VersionChangeTransactionOp(std::move(aTransaction)),
3441 mMetadata(aMetadata) {
3442 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3442); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMetadata.id()"
")"); do { *((volatile int*)__null) = 3442; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3443 }
3444
3445 ~CreateObjectStoreOp() override = default;
3446
3447 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3448};
3449
3450class DeleteObjectStoreOp final : public VersionChangeTransactionOp {
3451 friend class VersionChangeTransaction;
3452
3453 const SafeRefPtr<FullObjectStoreMetadata> mMetadata;
3454 const bool mIsLastObjectStore;
3455
3456 private:
3457 // Only created by VersionChangeTransaction.
3458 DeleteObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3459 SafeRefPtr<FullObjectStoreMetadata> aMetadata,
3460 const bool aIsLastObjectStore)
3461 : VersionChangeTransactionOp(std::move(aTransaction)),
3462 mMetadata(std::move(aMetadata)),
3463 mIsLastObjectStore(aIsLastObjectStore) {
3464 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3464); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mCommonMetadata.id()"
")"); do { *((volatile int*)__null) = 3464; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3465 }
3466
3467 ~DeleteObjectStoreOp() override = default;
3468
3469 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3470};
3471
3472class RenameObjectStoreOp final : public VersionChangeTransactionOp {
3473 friend class VersionChangeTransaction;
3474
3475 const int64_t mId;
3476 const nsString mNewName;
3477
3478 private:
3479 // Only created by VersionChangeTransaction.
3480 RenameObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3481 FullObjectStoreMetadata& aMetadata)
3482 : VersionChangeTransactionOp(std::move(aTransaction)),
3483 mId(aMetadata.mCommonMetadata.id()),
3484 mNewName(aMetadata.mCommonMetadata.name()) {
3485 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3485); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mId" ")"); do
{ *((volatile int*)__null) = 3485; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
3486 }
3487
3488 ~RenameObjectStoreOp() override = default;
3489
3490 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3491};
3492
3493class CreateIndexOp final : public VersionChangeTransactionOp {
3494 friend class VersionChangeTransaction;
3495
3496 class UpdateIndexDataValuesFunction;
3497
3498 const IndexMetadata mMetadata;
3499 Maybe<UniqueIndexTable> mMaybeUniqueIndexTable;
3500 const SafeRefPtr<DatabaseFileManager> mFileManager;
3501 const nsCString mDatabaseId;
3502 const IndexOrObjectStoreId mObjectStoreId;
3503
3504 private:
3505 // Only created by VersionChangeTransaction.
3506 CreateIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3507 IndexOrObjectStoreId aObjectStoreId,
3508 const IndexMetadata& aMetadata);
3509
3510 ~CreateIndexOp() override = default;
3511
3512 nsresult InsertDataFromObjectStore(DatabaseConnection* aConnection);
3513
3514 nsresult InsertDataFromObjectStoreInternal(
3515 DatabaseConnection* aConnection) const;
3516
3517 bool Init(TransactionBase& aTransaction) override;
3518
3519 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3520};
3521
3522class CreateIndexOp::UpdateIndexDataValuesFunction final
3523 : public mozIStorageFunction {
3524 RefPtr<CreateIndexOp> mOp;
3525 RefPtr<DatabaseConnection> mConnection;
3526 const NotNull<SafeRefPtr<Database>> mDatabase;
3527
3528 public:
3529 UpdateIndexDataValuesFunction(CreateIndexOp* aOp,
3530 DatabaseConnection* aConnection,
3531 SafeRefPtr<Database> aDatabase)
3532 : mOp(aOp),
3533 mConnection(aConnection),
3534 mDatabase(WrapNotNull(std::move(aDatabase))) {
3535 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3535); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOp" ")"); do
{ *((volatile int*)__null) = 3535; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
3536 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3536); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 3536; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3537 aConnection->AssertIsOnConnectionThread();
3538 }
3539
3540 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:
3541
3542 private:
3543 ~UpdateIndexDataValuesFunction() = default;
3544
3545 NS_DECL_MOZISTORAGEFUNCTIONvirtual nsresult OnFunctionCall(mozIStorageValueArray *aFunctionArguments
, nsIVariant **_retval) override;
3546};
3547
3548class DeleteIndexOp final : public VersionChangeTransactionOp {
3549 friend class VersionChangeTransaction;
3550
3551 const IndexOrObjectStoreId mObjectStoreId;
3552 const IndexOrObjectStoreId mIndexId;
3553 const bool mUnique;
3554 const bool mIsLastIndex;
3555
3556 private:
3557 // Only created by VersionChangeTransaction.
3558 DeleteIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3559 IndexOrObjectStoreId aObjectStoreId,
3560 IndexOrObjectStoreId aIndexId, const bool aUnique,
3561 const bool aIsLastIndex);
3562
3563 ~DeleteIndexOp() override = default;
3564
3565 nsresult RemoveReferencesToIndex(
3566 DatabaseConnection* aConnection, const Key& aObjectDataKey,
3567 nsTArray<IndexDataValue>& aIndexValues) const;
3568
3569 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3570};
3571
3572class RenameIndexOp final : public VersionChangeTransactionOp {
3573 friend class VersionChangeTransaction;
3574
3575 const IndexOrObjectStoreId mObjectStoreId;
3576 const IndexOrObjectStoreId mIndexId;
3577 const nsString mNewName;
3578
3579 private:
3580 // Only created by VersionChangeTransaction.
3581 RenameIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3582 FullIndexMetadata& aMetadata,
3583 IndexOrObjectStoreId aObjectStoreId)
3584 : VersionChangeTransactionOp(std::move(aTransaction)),
3585 mObjectStoreId(aObjectStoreId),
3586 mIndexId(aMetadata.mCommonMetadata.id()),
3587 mNewName(aMetadata.mCommonMetadata.name()) {
3588 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3588); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIndexId" ")"
); do { *((volatile int*)__null) = 3588; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3589 }
3590
3591 ~RenameIndexOp() override = default;
3592
3593 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3594};
3595
3596class NormalTransactionOp : public TransactionDatabaseOperationBase,
3597 public PBackgroundIDBRequestParent {
3598#ifdef DEBUG1
3599 bool mResponseSent;
3600#endif
3601
3602 public:
3603 void Cleanup() override;
3604
3605 protected:
3606 NormalTransactionOp(SafeRefPtr<TransactionBase> aTransaction,
3607 const int64_t aRequestId)
3608 : TransactionDatabaseOperationBase(std::move(aTransaction), aRequestId)
3609#ifdef DEBUG1
3610 ,
3611 mResponseSent(false)
3612#endif
3613 {
3614 }
3615
3616 ~NormalTransactionOp() override = default;
3617
3618 // An overload of DatabaseOperationBase's function that can avoid doing extra
3619 // work on non-versionchange transactions.
3620 mozilla::Result<bool, nsresult> ObjectStoreHasIndexes(
3621 DatabaseConnection& aConnection, IndexOrObjectStoreId aObjectStoreId,
3622 bool aMayHaveIndexes);
3623
3624 virtual mozilla::Result<PreprocessParams, nsresult> GetPreprocessParams();
3625
3626 // Subclasses use this override to set the IPDL response value.
3627 virtual void GetResponse(RequestResponse& aResponse,
3628 size_t* aResponseSize) = 0;
3629
3630 private:
3631 nsresult SendPreprocessInfo() override;
3632
3633 nsresult SendSuccessResult() override;
3634
3635 bool SendFailureResult(nsresult aResultCode) override;
3636
3637 // IPDL methods.
3638 void ActorDestroy(ActorDestroyReason aWhy) override;
3639
3640 mozilla::ipc::IPCResult RecvContinue(
3641 const PreprocessResponse& aResponse) final;
3642};
3643
3644class ObjectStoreAddOrPutRequestOp final : public NormalTransactionOp {
3645 friend class TransactionBase;
3646
3647 using PersistenceType = mozilla::dom::quota::PersistenceType;
3648
3649 class StoredFileInfo final {
3650 InitializedOnce<const NotNull<SafeRefPtr<DatabaseFileInfo>>> mFileInfo;
3651 // Either nothing, a file actor or a non-Blob-backed inputstream to write to
3652 // disk.
3653 using FileActorOrInputStream =
3654 Variant<Nothing, RefPtr<DatabaseFile>, nsCOMPtr<nsIInputStream>>;
3655 InitializedOnce<const FileActorOrInputStream> mFileActorOrInputStream;
3656#ifdef DEBUG1
3657 const StructuredCloneFileBase::FileType mType;
3658#endif
3659 void EnsureCipherKey();
3660 void AssertInvariants() const;
3661
3662 StoredFileInfo(SafeRefPtr<DatabaseFileInfo> aFileInfo,
3663 RefPtr<DatabaseFile> aFileActor);
3664
3665 StoredFileInfo(SafeRefPtr<DatabaseFileInfo> aFileInfo,
3666 nsCOMPtr<nsIInputStream> aInputStream);
3667
3668 public:
3669#if defined(NS_BUILD_REFCNT_LOGGING1)
3670 // Only for MOZ_COUNT_CTOR.
3671 StoredFileInfo(StoredFileInfo&& aOther)
3672 : mFileInfo{std::move(aOther.mFileInfo)},
3673 mFileActorOrInputStream{std::move(aOther.mFileActorOrInputStream)}
3674# ifdef DEBUG1
3675 ,
3676 mType{aOther.mType}
3677# endif
3678 {
3679 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<
nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo>
::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
, sizeof(*this)); } while (0)
;
3680 }
3681#else
3682 StoredFileInfo(StoredFileInfo&&) = default;
3683#endif
3684
3685 static StoredFileInfo CreateForBlob(SafeRefPtr<DatabaseFileInfo> aFileInfo,
3686 RefPtr<DatabaseFile> aFileActor);
3687 static StoredFileInfo CreateForStructuredClone(
3688 SafeRefPtr<DatabaseFileInfo> aFileInfo,
3689 nsCOMPtr<nsIInputStream> aInputStream);
3690
3691#if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1)
3692 ~StoredFileInfo() {
3693 AssertIsOnBackgroundThread();
3694 AssertInvariants();
3695
3696 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<
nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo>
::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
, sizeof(*this)); } while (0)
;
3697 }
3698#endif
3699
3700 bool IsValid() const { return static_cast<bool>(mFileInfo); }
3701
3702 const DatabaseFileInfo& GetFileInfo() const { return **mFileInfo; }
3703
3704 bool ShouldCompress() const;
3705
3706 void NotifyWriteSucceeded() const;
3707
3708 using InputStreamResult =
3709 mozilla::Result<nsCOMPtr<nsIInputStream>, nsresult>;
3710 InputStreamResult GetInputStream();
3711
3712 void Serialize(nsString& aText) const;
3713 };
3714 class SCInputStream;
3715
3716 ObjectStoreAddPutParams mParams;
3717 Maybe<UniqueIndexTable> mUniqueIndexTable;
3718
3719 // This must be non-const so that we can update the mNextAutoIncrementId field
3720 // if we are modifying an autoIncrement objectStore.
3721 SafeRefPtr<FullObjectStoreMetadata> mMetadata;
3722
3723 nsTArray<StoredFileInfo> mStoredFileInfos;
3724
3725 Key mResponse;
3726 const OriginMetadata mOriginMetadata;
3727 const PersistenceType mPersistenceType;
3728 const bool mOverwrite;
3729 bool mObjectStoreMayHaveIndexes;
3730 bool mDataOverThreshold;
3731
3732 private:
3733 // Only created by TransactionBase.
3734 ObjectStoreAddOrPutRequestOp(SafeRefPtr<TransactionBase> aTransaction,
3735 const int64_t aRequestId,
3736 RequestParams&& aParams);
3737
3738 ~ObjectStoreAddOrPutRequestOp() override = default;
3739
3740 nsresult RemoveOldIndexDataValues(DatabaseConnection* aConnection);
3741
3742 bool Init(TransactionBase& aTransaction) override;
3743
3744 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3745
3746 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
3747
3748 void Cleanup() override;
3749};
3750
3751void ObjectStoreAddOrPutRequestOp::StoredFileInfo::AssertInvariants() const {
3752 // The only allowed types are eStructuredClone, eBlob and eMutableFile.
3753 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3755); AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType"
")"); do { *((volatile int*)__null) = 3755; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
3754 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3755); AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType"
")"); do { *((volatile int*)__null) = 3755; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
3755 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3755); AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType"
")"); do { *((volatile int*)__null) = 3755; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3756
3757 // mFileInfo and a file actor in mFileActorOrInputStream are present until
3758 // the object is moved away, but an inputStream in mFileActorOrInputStream
3759 // can be released early.
3760 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3762); AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)"
")"); do { *((volatile int*)__null) = 3762; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3761 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3762); AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)"
")"); do { *((volatile int*)__null) = 3762; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3762 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3762); AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)"
")"); do { *((volatile int*)__null) = 3762; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3763
3764 if (mFileInfo) {
3765 // In a non-moved StoredFileInfo, one of the following is true:
3766 // - This was an overflow structured clone (eStructuredClone) and
3767 // storedFileInfo.mFileActorOrInputStream CAN be a non-nullptr input
3768 // stream (but that might have been release by ReleaseInputStream).
3769 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>>())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3773); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { *((volatile int*)__null) = 3773; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3770 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>>())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3773); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { *((volatile int*)__null) = 3773; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3771 !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>>())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3773); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { *((volatile int*)__null) = 3773; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3772 (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>>())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3773); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { *((volatile int*)__null) = 3773; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3773 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>>())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3773); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { *((volatile int*)__null) = 3773; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3774
3775 // - This is a reference to a Blob (eBlob) that may or may not have
3776 // already been written to disk. storedFileInfo.mFileActorOrInputStream
3777 // MUST be a non-null file actor, but its GetInputStream may return
3778 // nullptr (so don't assert on that).
3779 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>>()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3781); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()"
")"); do { *((volatile int*)__null) = 3781; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3780 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>>()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3781); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()"
")"); do { *((volatile int*)__null) = 3781; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3781 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>>()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3781); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()"
")"); do { *((volatile int*)__null) = 3781; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3782
3783 // - It's a mutable file (eMutableFile). No writing will be performed,
3784 // and storedFileInfo.mFileActorOrInputStream is Nothing.
3785 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>()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3786); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<Nothing>()"
")"); do { *((volatile int*)__null) = 3786; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3786 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>()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3786); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<Nothing>()"
")"); do { *((volatile int*)__null) = 3786; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3787 }
3788}
3789
3790void ObjectStoreAddOrPutRequestOp::StoredFileInfo::EnsureCipherKey() {
3791 const auto& fileInfo = GetFileInfo();
3792 const auto& fileManager = fileInfo.Manager();
3793
3794 // No need to generate cipher keys if we are not in PBM
3795 if (!fileManager.IsInPrivateBrowsingMode()) {
3796 return;
3797 }
3798
3799 nsCString keyId;
3800 keyId.AppendInt(fileInfo.Id());
3801
3802 fileManager.MutableCipherKeyManagerRef().Ensure(keyId);
3803}
3804
3805ObjectStoreAddOrPutRequestOp::StoredFileInfo::StoredFileInfo(
3806 SafeRefPtr<DatabaseFileInfo> aFileInfo, RefPtr<DatabaseFile> aFileActor)
3807 : mFileInfo{WrapNotNull(std::move(aFileInfo))},
3808 mFileActorOrInputStream{std::move(aFileActor)}
3809#ifdef DEBUG1
3810 ,
3811 mType{StructuredCloneFileBase::eBlob}
3812#endif
3813{
3814 AssertIsOnBackgroundThread();
3815 AssertInvariants();
3816
3817 EnsureCipherKey();
3818 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<
nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo>
::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
, sizeof(*this)); } while (0)
;
3819}
3820
3821ObjectStoreAddOrPutRequestOp::StoredFileInfo::StoredFileInfo(
3822 SafeRefPtr<DatabaseFileInfo> aFileInfo,
3823 nsCOMPtr<nsIInputStream> aInputStream)
3824 : mFileInfo{WrapNotNull(std::move(aFileInfo))},
3825 mFileActorOrInputStream{std::move(aInputStream)}
3826#ifdef DEBUG1
3827 ,
3828 mType{StructuredCloneFileBase::eStructuredClone}
3829#endif
3830{
3831 AssertIsOnBackgroundThread();
3832 AssertInvariants();
3833
3834 EnsureCipherKey();
3835 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<
nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo>
::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
, sizeof(*this)); } while (0)
;
3836}
3837
3838ObjectStoreAddOrPutRequestOp::StoredFileInfo
3839ObjectStoreAddOrPutRequestOp::StoredFileInfo::CreateForBlob(
3840 SafeRefPtr<DatabaseFileInfo> aFileInfo, RefPtr<DatabaseFile> aFileActor) {
3841 return {std::move(aFileInfo), std::move(aFileActor)};
3842}
3843
3844ObjectStoreAddOrPutRequestOp::StoredFileInfo
3845ObjectStoreAddOrPutRequestOp::StoredFileInfo::CreateForStructuredClone(
3846 SafeRefPtr<DatabaseFileInfo> aFileInfo,
3847 nsCOMPtr<nsIInputStream> aInputStream) {
3848 return {std::move(aFileInfo), std::move(aInputStream)};
3849}
3850
3851bool ObjectStoreAddOrPutRequestOp::StoredFileInfo::ShouldCompress() const {
3852 // Must not be called after moving.
3853 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3853); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")"
); do { *((volatile int*)__null) = 3853; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3854
3855 // Compression is only necessary for eStructuredClone, i.e. when
3856 // mFileActorOrInputStream stored an input stream. However, this is only
3857 // called after GetInputStream, when mFileActorOrInputStream has been
3858 // cleared, which is only possible for this type.
3859 const bool res = !mFileActorOrInputStream;
3860 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3860); AnnotateMozCrashReason("MOZ_ASSERT" "(" "res == (StructuredCloneFileBase::eStructuredClone == mType)"
")"); do { *((volatile int*)__null) = 3860; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3861 return res;
3862}
3863
3864void ObjectStoreAddOrPutRequestOp::StoredFileInfo::NotifyWriteSucceeded()
3865 const {
3866 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3866); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")"
); do { *((volatile int*)__null) = 3866; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3867
3868 // For eBlob, clear the blob implementation.
3869 if (mFileActorOrInputStream &&
3870 mFileActorOrInputStream->is<RefPtr<DatabaseFile>>()) {
3871 mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()
3872 ->WriteSucceededClearBlobImpl();
3873 }
3874
3875 // For the other types, no action is necessary.
3876}
3877
3878ObjectStoreAddOrPutRequestOp::StoredFileInfo::InputStreamResult
3879ObjectStoreAddOrPutRequestOp::StoredFileInfo::GetInputStream() {
3880 if (!mFileActorOrInputStream) {
3881 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3881); AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType"
")"); do { *((volatile int*)__null) = 3881; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3882 return nsCOMPtr<nsIInputStream>{};
3883 }
3884
3885 // For the different cases, see also the comments in AssertInvariants.
3886 return mFileActorOrInputStream->match(
3887 [](const Nothing&) -> InputStreamResult {
3888 return nsCOMPtr<nsIInputStream>{};
3889 },
3890 [](const RefPtr<DatabaseFile>& databaseActor) -> InputStreamResult {
3891 ErrorResult rv;
3892 auto inputStream = databaseActor->GetInputStream(rv);
3893 if (NS_WARN_IF(rv.Failed())NS_warn_if_impl(rv.Failed(), "rv.Failed()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3893)
) {
3894 return Err(rv.StealNSResult());
3895 }
3896
3897 return inputStream;
3898 },
3899 [this](const nsCOMPtr<nsIInputStream>& inputStream) -> InputStreamResult {
3900 auto res = inputStream;
3901 // destroy() clears the inputStream parameter, so we needed to make a
3902 // copy before
3903 mFileActorOrInputStream.destroy();
3904 AssertInvariants();
3905 return res;
3906 });
3907}
3908
3909void ObjectStoreAddOrPutRequestOp::StoredFileInfo::Serialize(
3910 nsString& aText) const {
3911 AssertInvariants();
3912 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3912); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")"
); do { *((volatile int*)__null) = 3912; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3913
3914 const int64_t id = (*mFileInfo)->Id();
3915
3916 auto structuredCloneHandler = [&aText, id](const nsCOMPtr<nsIInputStream>&) {
3917 // eStructuredClone
3918 aText.Append('.');
3919 aText.AppendInt(id);
3920 };
3921
3922 // If mFileActorOrInputStream was moved, we had an inputStream before.
3923 if (!mFileActorOrInputStream) {
3924 structuredCloneHandler(nullptr);
3925 return;
3926 }
3927
3928 // This encoding is parsed in DeserializeStructuredCloneFile.
3929 mFileActorOrInputStream->match(
3930 [&aText, id](const Nothing&) {
3931 // eMutableFile
3932 aText.AppendInt(-id);
3933 },
3934 [&aText, id](const RefPtr<DatabaseFile>&) {
3935 // eBlob
3936 aText.AppendInt(id);
3937 },
3938 structuredCloneHandler);
3939}
3940
3941class ObjectStoreAddOrPutRequestOp::SCInputStream final
3942 : public nsIInputStream {
3943 const JSStructuredCloneData& mData;
3944 JSStructuredCloneData::Iterator mIter;
3945
3946 public:
3947 explicit SCInputStream(const JSStructuredCloneData& aData)
3948 : mData(aData), mIter(aData.Start()) {}
3949
3950 private:
3951 virtual ~SCInputStream() = default;
3952
3953 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:
3954 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;
3955};
3956
3957class ObjectStoreGetRequestOp final : public NormalTransactionOp {
3958 friend class TransactionBase;
3959
3960 const IndexOrObjectStoreId mObjectStoreId;
3961 SafeRefPtr<Database> mDatabase;
3962 const Maybe<SerializedKeyRange> mOptionalKeyRange;
3963 AutoTArray<StructuredCloneReadInfoParent, 1> mResponse;
3964 PBackgroundParent* mBackgroundParent;
3965 uint32_t mPreprocessInfoCount;
3966 const uint32_t mLimit;
3967 const bool mGetAll;
3968
3969 private:
3970 // Only created by TransactionBase.
3971 ObjectStoreGetRequestOp(SafeRefPtr<TransactionBase> aTransaction,
3972 const int64_t aRequestId,
3973 const RequestParams& aParams, bool aGetAll);
3974
3975 ~ObjectStoreGetRequestOp() override = default;
3976
3977 template <typename T>
3978 mozilla::Result<T, nsresult> ConvertResponse(
3979 StructuredCloneReadInfoParent&& aInfo);
3980
3981 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3982
3983 bool HasPreprocessInfo() override;
3984
3985 mozilla::Result<PreprocessParams, nsresult> GetPreprocessParams() override;
3986
3987 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
3988};
3989
3990class ObjectStoreGetKeyRequestOp final : public NormalTransactionOp {
3991 friend class TransactionBase;
3992
3993 const IndexOrObjectStoreId mObjectStoreId;
3994 const Maybe<SerializedKeyRange> mOptionalKeyRange;
3995 const uint32_t mLimit;
3996 const bool mGetAll;
3997 nsTArray<Key> mResponse;
3998
3999 private:
4000 // Only created by TransactionBase.
4001 ObjectStoreGetKeyRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4002 const int64_t aRequestId,
4003 const RequestParams& aParams, bool aGetAll);
4004
4005 ~ObjectStoreGetKeyRequestOp() override = default;
4006
4007 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4008
4009 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
4010};
4011
4012class ObjectStoreDeleteRequestOp final : public NormalTransactionOp {
4013 friend class TransactionBase;
4014
4015 const ObjectStoreDeleteParams mParams;
4016 ObjectStoreDeleteResponse mResponse;
4017 bool mObjectStoreMayHaveIndexes;
4018
4019 private:
4020 ObjectStoreDeleteRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4021 const int64_t aRequestId,
4022 const ObjectStoreDeleteParams& aParams);
4023
4024 ~ObjectStoreDeleteRequestOp() override = default;
4025
4026 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4027
4028 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override {
4029 aResponse = std::move(mResponse);
4030 *aResponseSize = 0;
4031 }
4032};
4033
4034class ObjectStoreClearRequestOp final : public NormalTransactionOp {
4035 friend class TransactionBase;
4036
4037 const ObjectStoreClearParams mParams;
4038 ObjectStoreClearResponse mResponse;
4039 bool mObjectStoreMayHaveIndexes;
4040
4041 private:
4042 ObjectStoreClearRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4043 const int64_t aRequestId,
4044 const ObjectStoreClearParams& aParams);
4045
4046 ~ObjectStoreClearRequestOp() override = default;
4047
4048 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4049
4050 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override {
4051 aResponse = std::move(mResponse);
4052 *aResponseSize = 0;
4053 }
4054};
4055
4056class ObjectStoreCountRequestOp final : public NormalTransactionOp {
4057 friend class TransactionBase;
4058
4059 const ObjectStoreCountParams mParams;
4060 ObjectStoreCountResponse mResponse;
4061
4062 private:
4063 ObjectStoreCountRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4064 const int64_t aRequestId,
4065 const ObjectStoreCountParams& aParams)
4066 : NormalTransactionOp(std::move(aTransaction), aRequestId),
4067 mParams(aParams) {}
4068
4069 ~ObjectStoreCountRequestOp() 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 = sizeof(uint64_t);
4076 }
4077};
4078
4079class IndexRequestOpBase : public NormalTransactionOp {
4080 protected:
4081 const SafeRefPtr<FullIndexMetadata> mMetadata;
4082
4083 protected:
4084 IndexRequestOpBase(SafeRefPtr<TransactionBase> aTransaction,
4085 const int64_t aRequestId, const RequestParams& aParams)
4086 : NormalTransactionOp(std::move(aTransaction), aRequestId),
4087 mMetadata(IndexMetadataForParams(Transaction(), aParams)) {}
4088
4089 ~IndexRequestOpBase() override = default;
4090
4091 private:
4092 static SafeRefPtr<FullIndexMetadata> IndexMetadataForParams(
4093 const TransactionBase& aTransaction, const RequestParams& aParams);
4094};
4095
4096class IndexGetRequestOp final : public IndexRequestOpBase {
4097 friend class TransactionBase;
4098
4099 SafeRefPtr<Database> mDatabase;
4100 const Maybe<SerializedKeyRange> mOptionalKeyRange;
4101 AutoTArray<StructuredCloneReadInfoParent, 1> mResponse;
4102 PBackgroundParent* mBackgroundParent;
4103 const uint32_t mLimit;
4104 const bool mGetAll;
4105
4106 private:
4107 // Only created by TransactionBase.
4108 IndexGetRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4109 const int64_t aRequestId, const RequestParams& aParams,
4110 bool aGetAll);
4111
4112 ~IndexGetRequestOp() override = default;
4113
4114 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4115
4116 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
4117};
4118
4119class IndexGetKeyRequestOp final : public IndexRequestOpBase {
4120 friend class TransactionBase;
4121
4122 const Maybe<SerializedKeyRange> mOptionalKeyRange;
4123 AutoTArray<Key, 1> mResponse;
4124 const uint32_t mLimit;
4125 const bool mGetAll;
4126
4127 private:
4128 // Only created by TransactionBase.
4129 IndexGetKeyRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4130 const int64_t aRequestId, const RequestParams& aParams,
4131 bool aGetAll);
4132
4133 ~IndexGetKeyRequestOp() override = default;
4134
4135 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4136
4137 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
4138};
4139
4140class IndexCountRequestOp final : public IndexRequestOpBase {
4141 friend class TransactionBase;
4142
4143 const IndexCountParams mParams;
4144 IndexCountResponse mResponse;
4145
4146 private:
4147 // Only created by TransactionBase.
4148 IndexCountRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4149 const int64_t aRequestId, const RequestParams& aParams)
4150 : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams),
4151 mParams(aParams.get_IndexCountParams()) {}
4152
4153 ~IndexCountRequestOp() override = default;
4154
4155 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4156
4157 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override {
4158 aResponse = std::move(mResponse);
4159 *aResponseSize = sizeof(uint64_t);
4160 }
4161};
4162
4163template <IDBCursorType CursorType>
4164class Cursor;
4165
4166constexpr IDBCursorType ToKeyOnlyType(const IDBCursorType aType) {
4167 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4169); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { *((volatile int*)__null) = 4169; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4168 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4169); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { *((volatile int*)__null) = 4169; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4169 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4169); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { *((volatile int*)__null) = 4169; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4170 switch (aType) {
4171 case IDBCursorType::ObjectStore:
4172 [[fallthrough]];
4173 case IDBCursorType::ObjectStoreKey:
4174 return IDBCursorType::ObjectStoreKey;
4175 case IDBCursorType::Index:
4176 [[fallthrough]];
4177 case IDBCursorType::IndexKey:
4178 return IDBCursorType::IndexKey;
4179 }
4180}
4181
4182template <IDBCursorType CursorType>
4183using CursorPosition = CursorData<ToKeyOnlyType(CursorType)>;
4184
4185#ifdef DEBUG1
4186constexpr indexedDB::OpenCursorParams::Type ToOpenCursorParamsType(
4187 const IDBCursorType aType) {
4188 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4190); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { *((volatile int*)__null) = 4190; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4189 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4190); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { *((volatile int*)__null) = 4190; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4190 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4190); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { *((volatile int*)__null) = 4190; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4191 switch (aType) {
4192 case IDBCursorType::ObjectStore:
4193 return indexedDB::OpenCursorParams::TObjectStoreOpenCursorParams;
4194 case IDBCursorType::ObjectStoreKey:
4195 return indexedDB::OpenCursorParams::TObjectStoreOpenKeyCursorParams;
4196 case IDBCursorType::Index:
4197 return indexedDB::OpenCursorParams::TIndexOpenCursorParams;
4198 case IDBCursorType::IndexKey:
4199 return indexedDB::OpenCursorParams::TIndexOpenKeyCursorParams;
4200 }
4201}
4202#endif
4203
4204class CursorBase : public PBackgroundIDBCursorParent {
4205 friend class TransactionBase;
4206 template <IDBCursorType CursorType>
4207 friend class CommonOpenOpHelper;
4208
4209 protected:
4210 const SafeRefPtr<TransactionBase> mTransaction;
4211
4212 // This should only be touched on the PBackground thread to check whether
4213 // the objectStore has been deleted. Holding these saves a hash lookup for
4214 // every call to continue()/advance().
4215 InitializedOnce<const NotNull<SafeRefPtr<FullObjectStoreMetadata>>>
4216 mObjectStoreMetadata;
4217
4218 const IndexOrObjectStoreId mObjectStoreId;
4219
4220 LazyInitializedOnce<const Key>
4221 mLocaleAwareRangeBound; ///< If the cursor is based on a key range, the
4222 ///< bound in the direction of iteration (e.g.
4223 ///< the upper bound in case of mDirection ==
4224 ///< NEXT). If the cursor is based on a key, it
4225 ///< is unset. If mLocale is set, this was
4226 ///< converted to mLocale.
4227
4228 const Direction mDirection;
4229
4230 const int32_t mMaxExtraCount;
4231
4232 const bool mIsSameProcessActor;
4233
4234 struct ConstructFromTransactionBase {};
4235
4236 public:
4237 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4238); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
4238; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4238); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 4238
; __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:
4238 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4238); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
4238; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4238); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 4238
; __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:
4239
4240 CursorBase(SafeRefPtr<TransactionBase> aTransaction,
4241 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
4242 Direction aDirection,
4243 ConstructFromTransactionBase aConstructionTag);
4244
4245 protected:
4246 // Reference counted.
4247 ~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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4247); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStoreMetadata"
")"); do { *((volatile int*)__null) = 4247; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
4248
4249 private:
4250 virtual bool Start(const int64_t aRequestId,
4251 const OpenCursorParams& aParams) = 0;
4252};
4253
4254class IndexCursorBase : public CursorBase {
4255 public:
4256 bool IsLocaleAware() const { return !mLocale.IsEmpty(); }
4257
4258 IndexCursorBase(SafeRefPtr<TransactionBase> aTransaction,
4259 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
4260 SafeRefPtr<FullIndexMetadata> aIndexMetadata,
4261 Direction aDirection,
4262 ConstructFromTransactionBase aConstructionTag)
4263 : CursorBase{std::move(aTransaction), std::move(aObjectStoreMetadata),
4264 aDirection, aConstructionTag},
4265 mIndexMetadata(WrapNotNull(std::move(aIndexMetadata))),
4266 mIndexId((*mIndexMetadata)->mCommonMetadata.id()),
4267 mUniqueIndex((*mIndexMetadata)->mCommonMetadata.unique()),
4268 mLocale((*mIndexMetadata)->mCommonMetadata.locale()) {}
4269
4270 protected:
4271 IndexOrObjectStoreId Id() const { return mIndexId; }
4272
4273 // This should only be touched on the PBackground thread to check whether
4274 // the index has been deleted. Holding these saves a hash lookup for every
4275 // call to continue()/advance().
4276 InitializedOnce<const NotNull<SafeRefPtr<FullIndexMetadata>>> mIndexMetadata;
4277 const IndexOrObjectStoreId mIndexId;
4278 const bool mUniqueIndex;
4279 const nsCString
4280 mLocale; ///< The locale if the cursor is locale-aware, otherwise empty.
4281
4282 struct ContinueQueries {
4283 nsCString mContinueQuery;
4284 nsCString mContinueToQuery;
4285 nsCString mContinuePrimaryKeyQuery;
4286
4287 const nsACString& GetContinueQuery(const bool hasContinueKey,
4288 const bool hasContinuePrimaryKey) const {
4289 return hasContinuePrimaryKey ? mContinuePrimaryKeyQuery
4290 : hasContinueKey ? mContinueToQuery
4291 : mContinueQuery;
4292 }
4293 };
4294};
4295
4296class ObjectStoreCursorBase : public CursorBase {
4297 public:
4298 using CursorBase::CursorBase;
4299
4300 static constexpr bool IsLocaleAware() { return false; }
4301
4302 protected:
4303 IndexOrObjectStoreId Id() const { return mObjectStoreId; }
4304
4305 struct ContinueQueries {
4306 nsCString mContinueQuery;
4307 nsCString mContinueToQuery;
4308
4309 const nsACString& GetContinueQuery(const bool hasContinueKey,
4310 const bool hasContinuePrimaryKey) const {
4311 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4311); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasContinuePrimaryKey"
")"); do { *((volatile int*)__null) = 4311; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4312 return hasContinueKey ? mContinueToQuery : mContinueQuery;
4313 }
4314 };
4315};
4316
4317using FilesArray = nsTArray<nsTArray<StructuredCloneFileParent>>;
4318
4319struct PseudoFilesArray {
4320 static constexpr bool IsEmpty() { return true; }
4321
4322 static constexpr void Clear() {}
4323};
4324
4325template <IDBCursorType CursorType>
4326using FilesArrayT =
4327 std::conditional_t<!CursorTypeTraits<CursorType>::IsKeyOnlyCursor,
4328 FilesArray, PseudoFilesArray>;
4329
4330class ValueCursorBase {
4331 friend struct ValuePopulateResponseHelper<true>;
4332 friend struct ValuePopulateResponseHelper<false>;
4333
4334 protected:
4335 explicit ValueCursorBase(TransactionBase* const aTransaction)
4336 : mDatabase(aTransaction->GetDatabasePtr()),
4337 mFileManager(mDatabase->GetFileManagerPtr()),
4338 mBackgroundParent(WrapNotNull(aTransaction->GetBackgroundParent())) {
4339 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4339); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { *((volatile int*)__null) = 4339; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4340 }
4341
4342 void ProcessFiles(CursorResponse& aResponse, const FilesArray& aFiles);
4343
4344 ~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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4344); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mBackgroundParent"
")"); do { *((volatile int*)__null) = 4344; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
4345
4346 const SafeRefPtr<Database> mDatabase;
4347 const NotNull<SafeRefPtr<DatabaseFileManager>> mFileManager;
4348
4349 InitializedOnce<const NotNull<PBackgroundParent*>> mBackgroundParent;
4350};
4351
4352class KeyCursorBase {
4353 protected:
4354 explicit KeyCursorBase(TransactionBase* const /*aTransaction*/) {}
4355
4356 static constexpr void ProcessFiles(CursorResponse& aResponse,
4357 const PseudoFilesArray& aFiles) {}
4358};
4359
4360template <IDBCursorType CursorType>
4361class CursorOpBaseHelperBase;
4362
4363template <IDBCursorType CursorType>
4364class Cursor final
4365 : public std::conditional_t<
4366 CursorTypeTraits<CursorType>::IsObjectStoreCursor,
4367 ObjectStoreCursorBase, IndexCursorBase>,
4368 public std::conditional_t<CursorTypeTraits<CursorType>::IsKeyOnlyCursor,
4369 KeyCursorBase, ValueCursorBase> {
4370 using Base =
4371 std::conditional_t<CursorTypeTraits<CursorType>::IsObjectStoreCursor,
4372 ObjectStoreCursorBase, IndexCursorBase>;
4373
4374 using KeyValueBase =
4375 std::conditional_t<CursorTypeTraits<CursorType>::IsKeyOnlyCursor,
4376 KeyCursorBase, ValueCursorBase>;
4377
4378 static constexpr bool IsIndexCursor =
4379 !CursorTypeTraits<CursorType>::IsObjectStoreCursor;
4380
4381 static constexpr bool IsValueCursor =
4382 !CursorTypeTraits<CursorType>::IsKeyOnlyCursor;
4383
4384 class CursorOpBase;
4385 class OpenOp;
4386 class ContinueOp;
4387
4388 using Base::Id;
4389 using CursorBase::Manager;
4390 using CursorBase::mDirection;
4391 using CursorBase::mObjectStoreId;
4392 using CursorBase::mTransaction;
4393 using typename CursorBase::ActorDestroyReason;
4394
4395 using TypedOpenOpHelper =
4396 std::conditional_t<IsIndexCursor, IndexOpenOpHelper<CursorType>,
4397 ObjectStoreOpenOpHelper<CursorType>>;
4398
4399 friend class CursorOpBaseHelperBase<CursorType>;
4400 friend class CommonOpenOpHelper<CursorType>;
4401 friend TypedOpenOpHelper;
4402 friend class OpenOpHelper<CursorType>;
4403
4404 CursorOpBase* mCurrentlyRunningOp = nullptr;
4405
4406 LazyInitializedOnce<const typename Base::ContinueQueries> mContinueQueries;
4407
4408 // Only called by TransactionBase.
4409 bool Start(const int64_t aRequestId, const OpenCursorParams& aParams) final;
4410
4411 void SendResponseInternal(CursorResponse& aResponse,
4412 const FilesArrayT<CursorType>& aFiles);
4413
4414 // Must call SendResponseInternal!
4415 bool SendResponse(const CursorResponse& aResponse) = delete;
4416
4417 // IPDL methods.
4418 void ActorDestroy(ActorDestroyReason aWhy) override;
4419
4420 mozilla::ipc::IPCResult RecvDeleteMe() override;
4421
4422 mozilla::ipc::IPCResult RecvContinue(
4423 const int64_t& aRequestId, const CursorRequestParams& aParams,
4424 const Key& aCurrentKey, const Key& aCurrentObjectStoreKey) override;
4425
4426 public:
4427 Cursor(SafeRefPtr<TransactionBase> aTransaction,
4428 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
4429 SafeRefPtr<FullIndexMetadata> aIndexMetadata,
4430 typename Base::Direction aDirection,
4431 typename Base::ConstructFromTransactionBase aConstructionTag)
4432 : Base{std::move(aTransaction), std::move(aObjectStoreMetadata),
4433 std::move(aIndexMetadata), aDirection, aConstructionTag},
4434 KeyValueBase{this->mTransaction.unsafeGetRawPtr()} {}
4435
4436 Cursor(SafeRefPtr<TransactionBase> aTransaction,
4437 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
4438 typename Base::Direction aDirection,
4439 typename Base::ConstructFromTransactionBase aConstructionTag)
4440 : Base{std::move(aTransaction), std::move(aObjectStoreMetadata),
4441 aDirection, aConstructionTag},
4442 KeyValueBase{this->mTransaction.unsafeGetRawPtr()} {}
4443
4444 private:
4445 void SetOptionalKeyRange(const Maybe<SerializedKeyRange>& aOptionalKeyRange,
4446 bool* aOpen);
4447
4448 bool VerifyRequestParams(const CursorRequestParams& aParams,
4449 const CursorPosition<CursorType>& aPosition) const;
4450
4451 ~Cursor() final = default;
4452};
4453
4454template <IDBCursorType CursorType>
4455class Cursor<CursorType>::CursorOpBase
4456 : public TransactionDatabaseOperationBase {
4457 friend class CursorOpBaseHelperBase<CursorType>;
4458
4459 protected:
4460 RefPtr<Cursor> mCursor;
4461 FilesArrayT<CursorType> mFiles; // TODO: Consider removing this member
4462 // entirely if we are no value cursor.
4463
4464 CursorResponse mResponse;
4465
4466#ifdef DEBUG1
4467 bool mResponseSent;
4468#endif
4469
4470 protected:
4471 explicit CursorOpBase(Cursor* aCursor, const int64_t aRequestId)
4472 : TransactionDatabaseOperationBase(aCursor->mTransaction.clonePtr(),
4473 /* aRequestId */ aRequestId),
4474 mCursor(aCursor)
4475#ifdef DEBUG1
4476 ,
4477 mResponseSent(false)
4478#endif
4479 {
4480 AssertIsOnBackgroundThread();
4481 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCursor" ")"
); do { *((volatile int*)__null) = 4481; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4482 }
4483
4484 ~CursorOpBase() override = default;
4485
4486 bool SendFailureResult(nsresult aResultCode) final;
4487 nsresult SendSuccessResult() final;
4488
4489 void Cleanup() override;
4490};
4491
4492template <IDBCursorType CursorType>
4493class OpenOpHelper;
4494
4495using ResponseSizeOrError = Result<size_t, nsresult>;
4496
4497template <IDBCursorType CursorType>
4498class CursorOpBaseHelperBase {
4499 public:
4500 explicit CursorOpBaseHelperBase(
4501 typename Cursor<CursorType>::CursorOpBase& aOp)
4502 : mOp{aOp} {}
4503
4504 ResponseSizeOrError PopulateResponseFromStatement(mozIStorageStatement* aStmt,
4505 bool aInitializeResponse,
4506 Key* const aOptOutSortKey);
4507
4508 void PopulateExtraResponses(mozIStorageStatement* aStmt,
4509 uint32_t aMaxExtraCount,
4510 const size_t aInitialResponseSize,
4511 const nsACString& aOperation,
4512 Key* const aOptPreviousSortKey);
4513
4514 protected:
4515 Cursor<CursorType>& GetCursor() {
4516 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4516); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mCursor"
")"); do { *((volatile int*)__null) = 4516; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4517 return *mOp.mCursor;
4518 }
4519
4520 void SetResponse(CursorResponse aResponse) {
4521 mOp.mResponse = std::move(aResponse);
4522 }
4523
4524 protected:
4525 typename Cursor<CursorType>::CursorOpBase& mOp;
4526};
4527
4528class CommonOpenOpHelperBase {
4529 protected:
4530 static void AppendConditionClause(const nsACString& aColumnName,
4531 const nsACString& aStatementParameterName,
4532 bool aLessThan, bool aEquals,
4533 nsCString& aResult);
4534};
4535
4536template <IDBCursorType CursorType>
4537class CommonOpenOpHelper : public CursorOpBaseHelperBase<CursorType>,
4538 protected CommonOpenOpHelperBase {
4539 public:
4540 explicit CommonOpenOpHelper(typename Cursor<CursorType>::OpenOp& aOp)
4541 : CursorOpBaseHelperBase<CursorType>{aOp} {}
4542
4543 protected:
4544 using CursorOpBaseHelperBase<CursorType>::GetCursor;
4545 using CursorOpBaseHelperBase<CursorType>::PopulateExtraResponses;
4546 using CursorOpBaseHelperBase<CursorType>::PopulateResponseFromStatement;
4547 using CursorOpBaseHelperBase<CursorType>::SetResponse;
4548
4549 const Maybe<SerializedKeyRange>& GetOptionalKeyRange() const {
4550 // This downcast is safe, since we initialized mOp from an OpenOp in the
4551 // ctor.
4552 return static_cast<typename Cursor<CursorType>::OpenOp&>(this->mOp)
4553 .mOptionalKeyRange;
4554 }
4555
4556 nsresult ProcessStatementSteps(mozIStorageStatement* aStmt);
4557};
4558
4559template <IDBCursorType CursorType>
4560class ObjectStoreOpenOpHelper : protected CommonOpenOpHelper<CursorType> {
4561 public:
4562 using CommonOpenOpHelper<CursorType>::CommonOpenOpHelper;
4563
4564 protected:
4565 using CommonOpenOpHelper<CursorType>::GetCursor;
4566 using CommonOpenOpHelper<CursorType>::GetOptionalKeyRange;
4567 using CommonOpenOpHelper<CursorType>::AppendConditionClause;
4568
4569 void PrepareKeyConditionClauses(const nsACString& aDirectionClause,
4570 const nsACString& aQueryStart);
4571};
4572
4573template <IDBCursorType CursorType>
4574class IndexOpenOpHelper : protected CommonOpenOpHelper<CursorType> {
4575 public:
4576 using CommonOpenOpHelper<CursorType>::CommonOpenOpHelper;
4577
4578 protected:
4579 using CommonOpenOpHelper<CursorType>::GetCursor;
4580 using CommonOpenOpHelper<CursorType>::GetOptionalKeyRange;
4581 using CommonOpenOpHelper<CursorType>::AppendConditionClause;
4582
4583 void PrepareIndexKeyConditionClause(
4584 const nsACString& aDirectionClause,
4585 const nsLiteralCString& aObjectDataKeyPrefix, nsAutoCString aQueryStart);
4586};
4587
4588template <>
4589class OpenOpHelper<IDBCursorType::ObjectStore>
4590 : public ObjectStoreOpenOpHelper<IDBCursorType::ObjectStore> {
4591 public:
4592 using ObjectStoreOpenOpHelper<
4593 IDBCursorType::ObjectStore>::ObjectStoreOpenOpHelper;
4594
4595 nsresult DoDatabaseWork(DatabaseConnection* aConnection);
4596};
4597
4598template <>
4599class OpenOpHelper<IDBCursorType::ObjectStoreKey>
4600 : public ObjectStoreOpenOpHelper<IDBCursorType::ObjectStoreKey> {
4601 public:
4602 using ObjectStoreOpenOpHelper<
4603 IDBCursorType::ObjectStoreKey>::ObjectStoreOpenOpHelper;
4604
4605 nsresult DoDatabaseWork(DatabaseConnection* aConnection);
4606};
4607
4608template <>
4609class OpenOpHelper<IDBCursorType::Index>
4610 : IndexOpenOpHelper<IDBCursorType::Index> {
4611 private:
4612 void PrepareKeyConditionClauses(const nsACString& aDirectionClause,
4613 nsAutoCString aQueryStart) {
4614 PrepareIndexKeyConditionClause(aDirectionClause, "index_table."_ns,
4615 std::move(aQueryStart));
4616 }
4617
4618 public:
4619 using IndexOpenOpHelper<IDBCursorType::Index>::IndexOpenOpHelper;
4620
4621 nsresult DoDatabaseWork(DatabaseConnection* aConnection);
4622};
4623
4624template <>
4625class OpenOpHelper<IDBCursorType::IndexKey>
4626 : IndexOpenOpHelper<IDBCursorType::IndexKey> {
4627 private:
4628 void PrepareKeyConditionClauses(const nsACString& aDirectionClause,
4629 nsAutoCString aQueryStart) {
4630 PrepareIndexKeyConditionClause(aDirectionClause, ""_ns,
4631 std::move(aQueryStart));
4632 }
4633
4634 public:
4635 using IndexOpenOpHelper<IDBCursorType::IndexKey>::IndexOpenOpHelper;
4636
4637 nsresult DoDatabaseWork(DatabaseConnection* aConnection);
4638};
4639
4640template <IDBCursorType CursorType>
4641class Cursor<CursorType>::OpenOp final : public CursorOpBase {
4642 friend class Cursor<CursorType>;
4643 friend class CommonOpenOpHelper<CursorType>;
4644
4645 const Maybe<SerializedKeyRange> mOptionalKeyRange;
4646
4647 using CursorOpBase::mCursor;
4648 using CursorOpBase::mResponse;
4649
4650 // Only created by Cursor.
4651 OpenOp(Cursor* const aCursor, const int64_t aRequestId,
4652 const Maybe<SerializedKeyRange>& aOptionalKeyRange)
4653 : CursorOpBase(aCursor, aRequestId),
4654 mOptionalKeyRange(aOptionalKeyRange) {}
4655
4656 // Reference counted.
4657 ~OpenOp() override = default;
4658
4659 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4660};
4661
4662template <IDBCursorType CursorType>
4663class Cursor<CursorType>::ContinueOp final
4664 : public Cursor<CursorType>::CursorOpBase {
4665 friend class Cursor<CursorType>;
4666
4667 using CursorOpBase::mCursor;
4668 using CursorOpBase::mResponse;
4669 const CursorRequestParams mParams;
4670
4671 // Only created by Cursor.
4672 ContinueOp(Cursor* const aCursor, int64_t aRequestId,
4673 CursorRequestParams aParams, CursorPosition<CursorType> aPosition)
4674 : CursorOpBase(aCursor, aRequestId),
4675 mParams(std::move(aParams)),
4676 mCurrentPosition{std::move(aPosition)} {
4677 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4677); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mParams.type() != CursorRequestParams::T__None"
")"); do { *((volatile int*)__null) = 4677; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4678 }
4679
4680 // Reference counted.
4681 ~ContinueOp() override = default;
4682
4683 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4684
4685 const CursorPosition<CursorType> mCurrentPosition;
4686};
4687
4688class Utils final : public PBackgroundIndexedDBUtilsParent {
4689#ifdef DEBUG1
4690 bool mActorDestroyed;
4691#endif
4692
4693 public:
4694 Utils();
4695
4696 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4696); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
4696; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4696); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 4696
; __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:
4697
4698 private:
4699 // Reference counted.
4700 ~Utils() override;
4701
4702 // IPDL methods are only called by IPDL.
4703 void ActorDestroy(ActorDestroyReason aWhy) override;
4704
4705 mozilla::ipc::IPCResult RecvDeleteMe() override;
4706
4707 mozilla::ipc::IPCResult RecvGetFileReferences(
4708 const PersistenceType& aPersistenceType, const nsACString& aOrigin,
4709 const nsAString& aDatabaseName, const int64_t& aFileId, int32_t* aRefCnt,
4710 int32_t* aDBRefCnt, bool* aResult) override;
4711
4712 mozilla::ipc::IPCResult RecvDoMaintenance(
4713 DoMaintenanceResolver&& aResolver) override;
4714};
4715
4716/*******************************************************************************
4717 * Other class declarations
4718 ******************************************************************************/
4719
4720struct DatabaseActorInfo final {
4721 friend class mozilla::DefaultDelete<DatabaseActorInfo>;
4722
4723 SafeRefPtr<FullDatabaseMetadata> mMetadata;
4724 nsTArray<NotNull<CheckedUnsafePtr<Database>>> mLiveDatabases;
4725 RefPtr<FactoryOp> mWaitingFactoryOp;
4726
4727 DatabaseActorInfo(SafeRefPtr<FullDatabaseMetadata> aMetadata,
4728 NotNull<Database*> aDatabase)
4729 : mMetadata(std::move(aMetadata)) {
4730 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<nsISupports, DatabaseActorInfo>::value
, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "DatabaseActorInfo"
, sizeof(*this)); } while (0)
;
4731
4732 mLiveDatabases.AppendElement(aDatabase);
4733 }
4734
4735 private:
4736 ~DatabaseActorInfo() {
4737 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4737); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLiveDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 4737; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4738 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4738); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases()"
")"); do { *((volatile int*)__null) = 4738; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4739
4740 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<nsISupports, DatabaseActorInfo>::value
, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "DatabaseActorInfo"
, sizeof(*this)); } while (0)
;
4741 }
4742};
4743
4744class DatabaseLoggingInfo final {
4745#ifdef DEBUG1
4746 // Just for potential warnings.
4747 friend class Factory;
4748#endif
4749
4750 LoggingInfo mLoggingInfo;
4751
4752 public:
4753 explicit DatabaseLoggingInfo(const LoggingInfo& aLoggingInfo)
4754 : mLoggingInfo(aLoggingInfo) {
4755 AssertIsOnBackgroundThread();
4756 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4756); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextTransactionSerialNumber()"
")"); do { *((volatile int*)__null) = 4756; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4757 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4757); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextVersionChangeTransactionSerialNumber()"
")"); do { *((volatile int*)__null) = 4757; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4758 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4758); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextRequestSerialNumber()"
")"); do { *((volatile int*)__null) = 4758; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4759 }
4760
4761 const nsID& Id() const {
4762 AssertIsOnBackgroundThread();
4763
4764 return mLoggingInfo.backgroundChildLoggingId();
4765 }
4766
4767 int64_t NextTransactionSN(IDBTransaction::Mode aMode) {
4768 AssertIsOnBackgroundThread();
4769 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4769); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextTransactionSerialNumber() < (9223372036854775807L)"
")"); do { *((volatile int*)__null) = 4769; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4770 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4771); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)"
")"); do { *((volatile int*)__null) = 4771; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4771 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4771); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)"
")"); do { *((volatile int*)__null) = 4771; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4772
4773 if (aMode == IDBTransaction::Mode::VersionChange) {
4774 return mLoggingInfo.nextVersionChangeTransactionSerialNumber()--;
4775 }
4776
4777 return mLoggingInfo.nextTransactionSerialNumber()++;
4778 }
4779
4780 uint64_t NextRequestSN() {
4781 AssertIsOnBackgroundThread();
4782 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4782); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextRequestSerialNumber() < (18446744073709551615UL)"
")"); do { *((volatile int*)__null) = 4782; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4783
4784 return mLoggingInfo.nextRequestSerialNumber()++;
4785 }
4786
4787 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4787); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
4787; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4787); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 4787
; __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:
4788
4789 private:
4790 ~DatabaseLoggingInfo();
4791};
4792
4793class QuotaClient final : public mozilla::dom::quota::Client {
4794 friend class GetDatabasesOp;
4795
4796 static QuotaClient* sInstance;
4797
4798 nsCOMPtr<nsIEventTarget> mBackgroundThread;
4799 nsCOMPtr<nsITimer> mDeleteTimer;
4800 nsTArray<RefPtr<Maintenance>> mMaintenanceQueue;
4801 RefPtr<Maintenance> mCurrentMaintenance;
4802 RefPtr<nsThreadPool> mMaintenanceThreadPool;
4803 nsClassHashtable<nsRefPtrHashKey<DatabaseFileManager>, nsTArray<int64_t>>
4804 mPendingDeleteInfos;
4805
4806 public:
4807 QuotaClient();
4808
4809 static QuotaClient* GetInstance() {
4810 AssertIsOnBackgroundThread();
4811
4812 return sInstance;
4813 }
4814
4815 nsIEventTarget* BackgroundThread() const {
4816 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4816); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundThread"
")"); do { *((volatile int*)__null) = 4816; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4817 return mBackgroundThread;
4818 }
4819
4820 nsresult AsyncDeleteFile(DatabaseFileManager* aFileManager, int64_t aFileId);
4821
4822 nsresult FlushPendingFileDeletions();
4823
4824 RefPtr<BoolPromise> DoMaintenance();
4825
4826 RefPtr<Maintenance> GetCurrentMaintenance() const {
4827 return mCurrentMaintenance;
4828 }
4829
4830 void NoteFinishedMaintenance(Maintenance* aMaintenance) {
4831 AssertIsOnBackgroundThread();
4832 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4832); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMaintenance"
")"); do { *((volatile int*)__null) = 4832; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4833 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4833); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCurrentMaintenance == aMaintenance"
")"); do { *((volatile int*)__null) = 4833; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4834
4835 mCurrentMaintenance = nullptr;
4836
4837 QuotaManager::MaybeRecordQuotaClientShutdownStep(quota::Client::IDB,
4838 "Maintenance finished"_ns);
4839
4840 ProcessMaintenanceQueue();
4841 }
4842
4843 nsThreadPool* GetOrCreateThreadPool();
4844
4845 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4846); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
4846; __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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4846); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 4846
; __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:
4846 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4846); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
4846; __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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 4846); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 4846
; __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:
4847
4848 mozilla::dom::quota::Client::Type GetType() override;
4849
4850 nsresult UpgradeStorageFrom1_0To2_0(nsIFile* aDirectory) override;
4851
4852 nsresult UpgradeStorageFrom2_1To2_2(nsIFile* aDirectory) override;
4853
4854 Result<UsageInfo, nsresult> InitOrigin(PersistenceType aPersistenceType,
4855 const OriginMetadata& aOriginMetadata,
4856 const AtomicBool& aCanceled) override;
4857
4858 nsresult InitOriginWithoutTracking(PersistenceType aPersistenceType,
4859 const OriginMetadata& aOriginMetadata,
4860 const AtomicBool& aCanceled) override;
4861
4862 Result<UsageInfo, nsresult> GetUsageForOrigin(
4863 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
4864 const AtomicBool& aCanceled) override;
4865
4866 void OnOriginClearCompleted(const OriginMetadata& aOriginMetadata) override;
4867
4868 void OnRepositoryClearCompleted(PersistenceType aPersistenceType) override;
4869
4870 void ReleaseIOThreadObjects() override;
4871
4872 void AbortOperationsForLocks(
4873 const DirectoryLockIdTable& aDirectoryLockIds) override;
4874
4875 void AbortOperationsForProcess(ContentParentId aContentParentId) override;
4876
4877 void AbortAllOperations() override;
4878
4879 void StartIdleMaintenance() override;
4880
4881 void StopIdleMaintenance() override;
4882
4883 private:
4884 ~QuotaClient() override;
4885
4886 void InitiateShutdown() override;
4887 bool IsShutdownCompleted() const override;
4888 nsCString GetShutdownStatus() const override;
4889 void ForceKillActors() override;
4890 void FinalizeShutdown() override;
4891
4892 static void DeleteTimerCallback(nsITimer* aTimer, void* aClosure);
4893
4894 void AbortAllMaintenances();
4895
4896 Result<nsCOMPtr<nsIFile>, nsresult> GetDirectory(
4897 const OriginMetadata& aOriginMetadata);
4898
4899 struct SubdirectoriesToProcessAndDatabaseFilenames {
4900 AutoTArray<nsString, 20> subdirsToProcess;
4901 nsTHashSet<nsString> databaseFilenames{20};
4902 };
4903
4904 struct SubdirectoriesToProcessAndDatabaseFilenamesAndObsoleteFilenames {
4905 AutoTArray<nsString, 20> subdirsToProcess;
4906 nsTHashSet<nsString> databaseFilenames{20};
4907 nsTHashSet<nsString> obsoleteFilenames{20};
4908 };
4909
4910 enum class ObsoleteFilenamesHandling { Include, Omit };
4911
4912 template <ObsoleteFilenamesHandling ObsoleteFilenames>
4913 using GetDatabaseFilenamesResult = std::conditional_t<
4914 ObsoleteFilenames == ObsoleteFilenamesHandling::Include,
4915 SubdirectoriesToProcessAndDatabaseFilenamesAndObsoleteFilenames,
4916 SubdirectoriesToProcessAndDatabaseFilenames>;
4917
4918 // Returns a two-part or three-part structure:
4919 //
4920 // The first part is an array of subdirectories to process.
4921 //
4922 // The second part is a hashtable of database filenames.
4923 //
4924 // When ObsoleteFilenames is ObsoleteFilenamesHandling::Include, will also
4925 // collect files based on the marker files. For now,
4926 // GetUsageForOriginInternal() is the only consumer of this result because it
4927 // checks those unfinished deletion and clean them up after that.
4928 template <ObsoleteFilenamesHandling ObsoleteFilenames =
4929 ObsoleteFilenamesHandling::Omit>
4930 Result<GetDatabaseFilenamesResult<ObsoleteFilenames>,
4931 nsresult> static GetDatabaseFilenames(nsIFile& aDirectory,
4932 const AtomicBool& aCanceled);
4933
4934 nsresult GetUsageForOriginInternal(PersistenceType aPersistenceType,
4935 const OriginMetadata& aOriginMetadata,
4936 const AtomicBool& aCanceled,
4937 bool aInitializing, UsageInfo* aUsageInfo);
4938
4939 // Runs on the PBackground thread. Checks to see if there's a queued
4940 // Maintenance to run.
4941 void ProcessMaintenanceQueue();
4942};
4943
4944class DeleteFilesRunnable final : public Runnable {
4945 using ClientDirectoryLock = mozilla::dom::quota::ClientDirectoryLock;
4946
4947 enum State {
4948 // Just created on the PBackground thread. Next step is
4949 // State_DirectoryOpenPending.
4950 State_Initial,
4951
4952 // Waiting for directory open allowed on the main thread. The next step is
4953 // State_DatabaseWorkOpen.
4954 State_DirectoryOpenPending,
4955
4956 // Waiting to do/doing work on the QuotaManager IO thread. The next step is
4957 // State_UnblockingOpen.
4958 State_DatabaseWorkOpen,
4959
4960 // Notifying the QuotaManager that it can proceed to the next operation on
4961 // the main thread. Next step is State_Completed.
4962 State_UnblockingOpen,
4963
4964 // All done.
4965 State_Completed
4966 };
4967
4968 nsCOMPtr<nsIEventTarget> mOwningEventTarget;
4969 SafeRefPtr<DatabaseFileManager> mFileManager;
4970 RefPtr<ClientDirectoryLock> mDirectoryLock;
4971 nsTArray<int64_t> mFileIds;
4972 State mState;
4973 DEBUGONLY(bool mDEBUGCountsAsPending = false)bool mDEBUGCountsAsPending = false;
4974
4975 static uint64_t sPendingRunnables;
4976
4977 public:
4978 DeleteFilesRunnable(SafeRefPtr<DatabaseFileManager> aFileManager,
4979 nsTArray<int64_t>&& aFileIds);
4980
4981 void RunImmediately();
4982
4983 static bool IsDeletionPending() { return sPendingRunnables > 0; }
4984
4985 private:
4986#ifdef DEBUG1
4987 ~DeleteFilesRunnable();
4988#else
4989 ~DeleteFilesRunnable() = default;
4990#endif
4991
4992 void Open();
4993
4994 void DoDatabaseWork();
4995
4996 void Finish();
4997
4998 void UnblockOpen();
4999
5000 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
5001
5002 void DirectoryLockAcquired(ClientDirectoryLock* aLock);
5003
5004 void DirectoryLockFailed();
5005};
5006
5007class Maintenance final : public Runnable {
5008 struct DirectoryInfo final {
5009 InitializedOnce<const OriginMetadata> mOriginMetadata;
5010 InitializedOnce<const nsTArray<nsString>> mDatabasePaths;
5011 const PersistenceType mPersistenceType;
5012
5013 DirectoryInfo(PersistenceType aPersistenceType,
5014 OriginMetadata aOriginMetadata,
5015 nsTArray<nsString>&& aDatabasePaths);
5016
5017 DirectoryInfo(const DirectoryInfo& aOther) = delete;
5018 DirectoryInfo(DirectoryInfo&& aOther) = delete;
5019
5020 ~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<nsISupports, Maintenance
::DirectoryInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "Maintenance::DirectoryInfo"
, sizeof(*this)); } while (0)
; }
5021 };
5022
5023 enum class State {
5024 // Newly created on the PBackground thread. Will proceed immediately or be
5025 // added to the maintenance queue. The next step is either
5026 // DirectoryOpenPending if IndexedDatabaseManager is running, or
5027 // CreateIndexedDatabaseManager if not.
5028 Initial = 0,
5029
5030 // Create IndexedDatabaseManager on the main thread. The next step is either
5031 // Finishing if IndexedDatabaseManager initialization fails, or
5032 // IndexedDatabaseManagerOpen if initialization succeeds.
5033 CreateIndexedDatabaseManager,
5034
5035 // Call OpenDirectory() on the PBackground thread. The next step is
5036 // DirectoryOpenPending.
5037 IndexedDatabaseManagerOpen,
5038
5039 // Waiting for directory open allowed on the PBackground thread. The next
5040 // step is either Finishing if directory lock failed to acquire, or
5041 // DirectoryWorkOpen if directory lock is acquired.
5042 DirectoryOpenPending,
5043
5044 // Waiting to do/doing work on the QuotaManager IO thread. The next step is
5045 // BeginDatabaseMaintenance.
5046 DirectoryWorkOpen,
5047
5048 // Dispatching a runnable for each database on the PBackground thread. The
5049 // next state is either WaitingForDatabaseMaintenancesToComplete if at least
5050 // one runnable has been dispatched, or Finishing otherwise.
5051 BeginDatabaseMaintenance,
5052
5053 // Waiting for DatabaseMaintenance to finish on maintenance thread pool.
5054 // The next state is Finishing if the last runnable has finished.
5055 WaitingForDatabaseMaintenancesToComplete,
5056
5057 // Waiting to finish/finishing on the PBackground thread. The next step is
5058 // Completed.
5059 Finishing,
5060
5061 // All done.
5062 Complete
5063 };
5064
5065 RefPtr<QuotaClient> mQuotaClient;
5066 MozPromiseHolder<BoolPromise> mPromiseHolder;
5067 PRTime mStartTime;
5068 RefPtr<UniversalDirectoryLock> mPendingDirectoryLock;
5069 // The directory lock is normally dropped by BeginDatabaseMaintenance, but if
5070 // something fails (in any method), the Finish method will do the cleanup.
5071 RefPtr<UniversalDirectoryLock> mDirectoryLock;
5072 nsTArray<nsCOMPtr<nsIRunnable>> mCompleteCallbacks;
5073 nsTArray<DirectoryInfo> mDirectoryInfos;
5074 nsTHashMap<nsStringHashKey, DatabaseMaintenance*> mDatabaseMaintenances;
5075 nsresult mResultCode;
5076 Atomic<bool> mAborted;
5077 bool mOpenStorageForAllRepositoriesFailed;
5078 State mState;
5079
5080 public:
5081 explicit Maintenance(QuotaClient* aQuotaClient)
5082 : Runnable("dom::indexedDB::Maintenance"),
5083 mQuotaClient(aQuotaClient),
5084 mStartTime(PR_Now()),
5085 mResultCode(NS_OK),
5086 mAborted(false),
5087 mOpenStorageForAllRepositoriesFailed(false),
5088 mState(State::Initial) {
5089 AssertIsOnBackgroundThread();
5090 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5090); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aQuotaClient"
")"); do { *((volatile int*)__null) = 5090; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5091 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5091); AnnotateMozCrashReason("MOZ_ASSERT" "(" "QuotaClient::GetInstance() == aQuotaClient"
")"); do { *((volatile int*)__null) = 5091; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5092 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5092); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mStartTime"
")"); do { *((volatile int*)__null) = 5092; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5093 }
5094
5095 nsIEventTarget* BackgroundThread() const {
5096 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5096); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQuotaClient"
")"); do { *((volatile int*)__null) = 5096; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5097 return mQuotaClient->BackgroundThread();
5098 }
5099
5100 PRTime StartTime() const { return mStartTime; }
5101
5102 bool IsAborted() const { return mAborted; }
5103
5104 void RunImmediately() {
5105 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5105); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { *((volatile int*)__null) = 5105; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5106
5107 Unused << this->Run();
5108 }
5109
5110 RefPtr<BoolPromise> OnResults() {
5111 AssertIsOnBackgroundThread();
5112
5113 return mPromiseHolder.Ensure(__func__);
5114 }
5115
5116 void Abort();
5117
5118 void RegisterDatabaseMaintenance(DatabaseMaintenance* aDatabaseMaintenance);
5119
5120 void UnregisterDatabaseMaintenance(DatabaseMaintenance* aDatabaseMaintenance);
5121
5122 bool HasDatabaseMaintenances() const { return mDatabaseMaintenances.Count(); }
5123
5124 RefPtr<DatabaseMaintenance> GetDatabaseMaintenance(
5125 const nsAString& aDatabasePath) const {
5126 AssertIsOnBackgroundThread();
5127
5128 return mDatabaseMaintenances.Get(aDatabasePath);
5129 }
5130
5131 void WaitForCompletion(nsIRunnable* aCallback) {
5132 AssertIsOnBackgroundThread();
5133 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5133); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseMaintenances.Count()"
")"); do { *((volatile int*)__null) = 5133; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5134
5135 mCompleteCallbacks.AppendElement(aCallback);
5136 }
5137
5138 void Stringify(nsACString& aResult) const;
5139
5140 private:
5141 ~Maintenance() override {
5142 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5142); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Complete"
")"); do { *((volatile int*)__null) = 5142; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5143 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5143); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseMaintenances.Count()"
")"); do { *((volatile int*)__null) = 5143; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5144 }
5145
5146 // Runs on the PBackground thread. Checks if IndexedDatabaseManager is
5147 // running. Calls OpenDirectory() or dispatches to the main thread on which
5148 // CreateIndexedDatabaseManager() is called.
5149 nsresult Start();
5150
5151 // Runs on the main thread. Once IndexedDatabaseManager is created it will
5152 // dispatch to the PBackground thread on which OpenDirectory() is called.
5153 nsresult CreateIndexedDatabaseManager();
5154
5155 RefPtr<UniversalDirectoryLockPromise> OpenStorageDirectory(
5156 const PersistenceScope& aPersistenceScope, bool aInitializeOrigins);
5157
5158 // Runs on the PBackground thread. Once QuotaManager has given a lock it will
5159 // call DirectoryOpen().
5160 nsresult OpenDirectory();
5161
5162 // Runs on the PBackground thread. Dispatches to the QuotaManager I/O thread.
5163 nsresult DirectoryOpen();
5164
5165 // Runs on the QuotaManager I/O thread. Once it finds databases it will
5166 // dispatch to the PBackground thread on which BeginDatabaseMaintenance()
5167 // is called.
5168 nsresult DirectoryWork();
5169
5170 // Runs on the PBackground thread. It dispatches a runnable for each database.
5171 nsresult BeginDatabaseMaintenance();
5172
5173 // Runs on the PBackground thread. Called when the maintenance is finished or
5174 // if any of above methods fails.
5175 void Finish();
5176
5177 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
5178
5179 void DirectoryLockAcquired(UniversalDirectoryLock* aLock);
5180
5181 void DirectoryLockFailed();
5182};
5183
5184Maintenance::DirectoryInfo::DirectoryInfo(PersistenceType aPersistenceType,
5185 OriginMetadata aOriginMetadata,
5186 nsTArray<nsString>&& aDatabasePaths)
5187 : mOriginMetadata(std::move(aOriginMetadata)),
5188 mDatabasePaths(std::move(aDatabasePaths)),
5189 mPersistenceType(aPersistenceType) {
5190 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5190); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPersistenceType != PERSISTENCE_TYPE_INVALID"
")"); do { *((volatile int*)__null) = 5190; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5191 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5191); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata->mGroup.IsEmpty()"
")"); do { *((volatile int*)__null) = 5191; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5192 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5192); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata->mOrigin.IsEmpty()"
")"); do { *((volatile int*)__null) = 5192; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5193#ifdef DEBUG1
5194 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasePaths->IsEmpty()"
")"); do { *((volatile int*)__null) = 5194; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5195 for (const nsAString& databasePath : *mDatabasePaths) {
5196 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePath.IsEmpty()"
")"); do { *((volatile int*)__null) = 5196; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5197 }
5198#endif
5199
5200 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<nsISupports, Maintenance
::DirectoryInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "Maintenance::DirectoryInfo"
, sizeof(*this)); } while (0)
;
5201}
5202
5203class DatabaseMaintenance final : public Runnable {
5204 // The minimum amount of time that has passed since the last vacuum before we
5205 // will attempt to analyze the database for fragmentation.
5206 static const PRTime kMinVacuumAge =
5207 PRTime(PR_USEC_PER_SEC1000000L) * 60 * 60 * 24 * 7;
5208
5209 // If the percent of database pages that are not in contiguous order is higher
5210 // than this percentage we will attempt a vacuum.
5211 static const int32_t kPercentUnorderedThreshold = 30;
5212
5213 // If the percent of file size growth since the last vacuum is higher than
5214 // this percentage we will attempt a vacuum.
5215 static const int32_t kPercentFileSizeGrowthThreshold = 10;
5216
5217 // The number of freelist pages beyond which we will favor an incremental
5218 // vacuum over a full vacuum.
5219 static const int32_t kMaxFreelistThreshold = 5;
5220
5221 // If the percent of unused file bytes in the database exceeds this percentage
5222 // then we will attempt a full vacuum.
5223 static const int32_t kPercentUnusedThreshold = 20;
5224
5225 enum class MaintenanceAction { Nothing = 0, IncrementalVacuum, FullVacuum };
5226
5227 RefPtr<Maintenance> mMaintenance;
5228 // The directory lock is dropped in RunOnOwningThread which serves as a
5229 // cleanup method and is always called.
5230 RefPtr<ClientDirectoryLock> mDirectoryLock;
5231 const OriginMetadata mOriginMetadata;
5232 const nsString mDatabasePath;
5233 int64_t mDirectoryLockId;
5234 nsCOMPtr<nsIRunnable> mCompleteCallback;
5235 const PersistenceType mPersistenceType;
5236 const Maybe<CipherKey> mMaybeKey;
5237 Atomic<bool> mAborted;
5238 DataMutex<nsCOMPtr<mozIStorageConnection>> mSharedStorageConnection;
5239
5240 public:
5241 DatabaseMaintenance(Maintenance* aMaintenance,
5242 RefPtr<ClientDirectoryLock> aDirectoryLock,
5243 PersistenceType aPersistenceType,
5244 const OriginMetadata& aOriginMetadata,
5245 const nsAString& aDatabasePath,
5246 const Maybe<CipherKey>& aMaybeKey)
5247 : Runnable("dom::indexedDB::DatabaseMaintenance"),
5248 mMaintenance(aMaintenance),
5249 mDirectoryLock(std::move(aDirectoryLock)),
5250 mOriginMetadata(aOriginMetadata),
5251 mDatabasePath(aDatabasePath),
5252 mPersistenceType(aPersistenceType),
5253 mMaybeKey{aMaybeKey},
5254 mAborted(false),
5255 mSharedStorageConnection("sharedStorageConnection") {
5256 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock"
")"); do { *((volatile int*)__null) = 5256; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5257
5258 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5258); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock->Id() >= 0"
")"); do { *((volatile int*)__null) = 5258; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5259 mDirectoryLockId = mDirectoryLock->Id();
5260 }
5261
5262 const nsAString& DatabasePath() const { return mDatabasePath; }
5263
5264 void WaitForCompletion(nsIRunnable* aCallback) {
5265 AssertIsOnBackgroundThread();
5266 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5266); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCompleteCallback"
")"); do { *((volatile int*)__null) = 5266; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5267
5268 mCompleteCallback = aCallback;
5269 }
5270
5271 void Stringify(nsACString& aResult) const;
5272
5273 nsresult Abort();
5274
5275 private:
5276 ~DatabaseMaintenance() override = default;
5277
5278 // Runs on maintenance thread pool. Does maintenance on the database.
5279 void PerformMaintenanceOnDatabase();
5280
5281 // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase.
5282 nsresult CheckIntegrity(mozIStorageConnection& aConnection, bool* aOk);
5283
5284 // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase.
5285 nsresult DetermineMaintenanceAction(mozIStorageConnection& aConnection,
5286 nsIFile* aDatabaseFile,
5287 MaintenanceAction* aMaintenanceAction);
5288
5289 // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase.
5290 void IncrementalVacuum(mozIStorageConnection& aConnection);
5291
5292 // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase.
5293 void FullVacuum(mozIStorageConnection& aConnection, nsIFile* aDatabaseFile);
5294
5295 // Runs on the PBackground thread. It dispatches a complete callback and
5296 // unregisters from Maintenance.
5297 void RunOnOwningThread();
5298
5299 // Runs on maintenance thread pool. Once it performs database maintenance
5300 // it will dispatch to the PBackground thread on which RunOnOwningThread()
5301 // is called.
5302 void RunOnConnectionThread();
5303
5304 // TODO: Could QuotaClient::IsShuttingDownOnNonBackgroundThread() call
5305 // be part of mMaintenance::IsAborted() ?
5306 inline bool IsAborted() const {
5307 return mMaintenance->IsAborted() || mAborted ||
5308 NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5308)
;
5309 }
5310
5311 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
5312};
5313
5314#ifdef DEBUG1
5315
5316class DEBUGThreadSlower final : public nsIThreadObserver {
5317 public:
5318 DEBUGThreadSlower() {
5319 AssertIsOnBackgroundThread();
5320 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGThreadSleepMS"
")"); do { *((volatile int*)__null) = 5320; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5321 }
5322
5323 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:
5324
5325 private:
5326 ~DEBUGThreadSlower() { AssertIsOnBackgroundThread(); }
5327
5328 NS_DECL_NSITHREADOBSERVERvirtual nsresult OnDispatchedEvent(void) override; virtual nsresult
OnProcessNextEvent(nsIThreadInternal *thread, bool mayWait) override
; virtual nsresult AfterProcessNextEvent(nsIThreadInternal *thread
, bool eventWasProcessed) override;
5329};
5330
5331#endif // DEBUG
5332
5333/*******************************************************************************
5334 * Helper classes
5335 ******************************************************************************/
5336
5337// XXX Get rid of FileHelper and move the functions into DatabaseFileManager.
5338// Then, DatabaseFileManager::Get(Journal)Directory and
5339// DatabaseFileManager::GetFileForId might eventually be made private.
5340class MOZ_STACK_CLASS FileHelper final {
5341 const SafeRefPtr<DatabaseFileManager> mFileManager;
5342
5343 LazyInitializedOnce<const NotNull<nsCOMPtr<nsIFile>>> mFileDirectory;
5344 LazyInitializedOnce<const NotNull<nsCOMPtr<nsIFile>>> mJournalDirectory;
5345
5346 class ReadCallback;
5347 LazyInitializedOnce<const NotNull<RefPtr<ReadCallback>>> mReadCallback;
5348
5349 public:
5350 explicit FileHelper(SafeRefPtr<DatabaseFileManager>&& aFileManager)
5351 : mFileManager(std::move(aFileManager)) {
5352 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5352); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { *((volatile int*)__null) = 5352; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5353 }
5354
5355 nsresult Init();
5356
5357 [[nodiscard]] nsCOMPtr<nsIFile> GetFile(const DatabaseFileInfo& aFileInfo);
5358
5359 [[nodiscard]] nsCOMPtr<nsIFile> GetJournalFile(
5360 const DatabaseFileInfo& aFileInfo);
5361
5362 nsresult CreateFileFromStream(nsIFile& aFile, nsIFile& aJournalFile,
5363 nsIInputStream& aInputStream, bool aCompress,
5364 const Maybe<CipherKey>& aMaybeKey);
5365
5366 private:
5367 nsresult SyncCopy(nsIInputStream& aInputStream,
5368 nsIOutputStream& aOutputStream, char* aBuffer,
5369 uint32_t aBufferSize);
5370
5371 nsresult SyncRead(nsIInputStream& aInputStream, char* aBuffer,
5372 uint32_t aBufferSize, uint32_t* aRead);
5373};
5374
5375/*******************************************************************************
5376 * Helper Functions
5377 ******************************************************************************/
5378
5379bool GetFilenameBase(const nsAString& aFilename, const nsAString& aSuffix,
5380 nsDependentSubstring& aFilenameBase) {
5381 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5381); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()"
")"); do { *((volatile int*)__null) = 5381; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5382 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5382); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFilenameBase.IsEmpty()"
")"); do { *((volatile int*)__null) = 5382; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5383
5384 if (!StringEndsWith(aFilename, aSuffix) ||
5385 aFilename.Length() == aSuffix.Length()) {
5386 return false;
5387 }
5388
5389 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5389); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFilename.Length() > aSuffix.Length()"
")"); do { *((volatile int*)__null) = 5389; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5390
5391 aFilenameBase.Rebind(aFilename, 0, aFilename.Length() - aSuffix.Length());
5392 return true;
5393}
5394
5395class EncryptedFileBlobImpl final : public FileBlobImpl {
5396 public:
5397 EncryptedFileBlobImpl(const nsCOMPtr<nsIFile>& aNativeFile,
5398 const DatabaseFileInfo::IdType aId,
5399 const CipherKey& aKey)
5400 : FileBlobImpl{aNativeFile}, mKey{aKey} {
5401 SetFileId(aId);
5402 }
5403
5404 uint64_t GetSize(ErrorResult& aRv) override {
5405 nsCOMPtr<nsIInputStream> inputStream;
5406 CreateInputStream(getter_AddRefs(inputStream), aRv);
5407
5408 if (aRv.Failed()) {
5409 return 0;
5410 }
5411
5412 MOZ_ASSERT(inputStream)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(inputStream)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(inputStream))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("inputStream", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5412); AnnotateMozCrashReason("MOZ_ASSERT" "(" "inputStream"
")"); do { *((volatile int*)__null) = 5412; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5413
5414 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(inputStream, Available), 0,{auto tryResult847 = (::mozilla::ToResultInvokeMember( (inputStream
), &::mozilla::detail::DerefedType<decltype(inputStream
)>::Available)); if ((__builtin_expect(!!(tryResult847.isErr
()), 0))) { auto tryTempError = tryResult847.unwrapErr(); mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (inputStream), &::mozilla::detail::DerefedType<decltype(inputStream)>::Available)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5415, mozilla::dom::quota::Severity::Error); [&aRv](const
nsresult rv) { aRv = rv; }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (inputStream), &::mozilla::detail::DerefedType<decltype(inputStream)>::Available)"
, tryTempError, 0); } return tryResult847.unwrap();}
5415 [&aRv](const nsresult rv) { aRv = rv; }){auto tryResult847 = (::mozilla::ToResultInvokeMember( (inputStream
), &::mozilla::detail::DerefedType<decltype(inputStream
)>::Available)); if ((__builtin_expect(!!(tryResult847.isErr
()), 0))) { auto tryTempError = tryResult847.unwrapErr(); mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (inputStream), &::mozilla::detail::DerefedType<decltype(inputStream)>::Available)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5415, mozilla::dom::quota::Severity::Error); [&aRv](const
nsresult rv) { aRv = rv; }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (inputStream), &::mozilla::detail::DerefedType<decltype(inputStream)>::Available)"
, tryTempError, 0); } return tryResult847.unwrap();}
;
5416 }
5417
5418 void CreateInputStream(nsIInputStream** aInputStream,
5419 ErrorResult& aRv) const override {
5420 nsCOMPtr<nsIInputStream> baseInputStream;
5421 FileBlobImpl::CreateInputStream(getter_AddRefs(baseInputStream), aRv);
5422 if (NS_WARN_IF(aRv.Failed())NS_warn_if_impl(aRv.Failed(), "aRv.Failed()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5422)
) {
5423 return;
5424 }
5425
5426 *aInputStream =
5427 MakeAndAddRef<DecryptingInputStream<IndexedDBCipherStrategy>>(
5428 WrapNotNull(std::move(baseInputStream)), kEncryptedStreamBlockSize,
5429 mKey)
5430 .take();
5431 }
5432
5433 void GetBlobImplType(nsAString& aBlobImplType) const override {
5434 aBlobImplType = u"EncryptedFileBlobImpl"_ns;
5435 }
5436
5437 already_AddRefed<BlobImpl> CreateSlice(uint64_t aStart, uint64_t aLength,
5438 const nsAString& aContentType,
5439 ErrorResult& aRv) const override {
5440 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5440); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { *((volatile int*)__null) = 5440; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
5441 }
5442
5443 private:
5444 const CipherKey mKey;
5445};
5446
5447RefPtr<BlobImpl> CreateFileBlobImpl(const Database& aDatabase,
5448 const nsCOMPtr<nsIFile>& aNativeFile,
5449 const DatabaseFileInfo::IdType aId) {
5450 if (aDatabase.IsInPrivateBrowsing()) {
5451 nsCString keyId;
5452 keyId.AppendInt(aId);
5453
5454 const auto& key =
5455 aDatabase.GetFileManager().MutableCipherKeyManagerRef().Get(keyId);
5456
5457 MOZ_RELEASE_ASSERT(key.isSome())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(key.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(key.isSome()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("key.isSome()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5457); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "key.isSome()"
")"); do { *((volatile int*)__null) = 5457; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5458 return MakeRefPtr<EncryptedFileBlobImpl>(aNativeFile, aId, *key);
5459 }
5460
5461 auto impl = MakeRefPtr<FileBlobImpl>(aNativeFile);
5462 impl->SetFileId(aId);
5463
5464 return impl;
5465}
5466
5467Result<nsTArray<SerializedStructuredCloneFile>, nsresult>
5468SerializeStructuredCloneFiles(const SafeRefPtr<Database>& aDatabase,
5469 const nsTArray<StructuredCloneFileParent>& aFiles,
5470 bool aForPreprocess) {
5471 AssertIsOnBackgroundThread();
5472 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5472); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabase" ")"
); do { *((volatile int*)__null) = 5472; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5473
5474 if (aFiles.IsEmpty()) {
5475 return nsTArray<SerializedStructuredCloneFile>{};
5476 }
5477
5478 const nsCOMPtr<nsIFile> directory =
5479 aDatabase->GetFileManager().GetCheckedDirectory();
5480 QM_TRY(OkIf(directory), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult848 = (OkIf(directory)); static_assert(std::is_empty_v
<typename decltype(tryResult848)::ok_type>); if ((__builtin_expect
(!!(tryResult848.isErr()), 0))) { auto tryTempError = tryResult848
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(directory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5481, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5481, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(directory)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
5481 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult848 = (OkIf(directory)); static_assert(std::is_empty_v
<typename decltype(tryResult848)::ok_type>); if ((__builtin_expect
(!!(tryResult848.isErr()), 0))) { auto tryTempError = tryResult848
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(directory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5481, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5481, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(directory)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
;
5482
5483 nsTArray<SerializedStructuredCloneFile> serializedStructuredCloneFiles;
5484 QM_TRY(OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(),{auto tryResult849 = (OkIf(serializedStructuredCloneFiles.SetCapacity
(aFiles.Length(), fallible))); static_assert(std::is_empty_v<
typename decltype(tryResult849)::ok_type>); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult849.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5486, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}
5485 fallible)),{auto tryResult849 = (OkIf(serializedStructuredCloneFiles.SetCapacity
(aFiles.Length(), fallible))); static_assert(std::is_empty_v<
typename decltype(tryResult849)::ok_type>); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult849.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5486, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}
5486 Err(NS_ERROR_OUT_OF_MEMORY)){auto tryResult849 = (OkIf(serializedStructuredCloneFiles.SetCapacity
(aFiles.Length(), fallible))); static_assert(std::is_empty_v<
typename decltype(tryResult849)::ok_type>); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult849.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5486, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}
;
5487
5488 QM_TRY(TransformIfAbortOnErr({auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5489 aFiles, MakeBackInserter(serializedStructuredCloneFiles),{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5490 [aForPreprocess](const auto& file) {{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5491 return !aForPreprocess ||{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5492 file.Type() == StructuredCloneFileBase::eStructuredClone;{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5493 },{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5494 [&directory, &aDatabase, aForPreprocess]({auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5495 const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> {{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5496 const int64_t fileId = file.FileInfo().Id();{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5497 MOZ_ASSERT(fileId > 0);{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5498
5499 const nsCOMPtr<nsIFile> nativeFile ={auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5500 mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId({auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5501 directory, fileId);{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5502 QM_TRY(OkIf(nativeFile), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5503 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5504
5505 switch (file.Type()) {{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5506 case StructuredCloneFileBase::eStructuredClone:{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5507 if (!aForPreprocess) {{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5508 return SerializedStructuredCloneFile{{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5509 null_t(), StructuredCloneFileBase::eStructuredClone};{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5510 }{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5511
5512 [[fallthrough]];{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5513
5514 case StructuredCloneFileBase::eBlob: {{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5515 const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile,{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5516 file.FileInfo().Id());{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5517
5518 IPCBlob ipcBlob;{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5519
5520 // This can only fail if the child has crashed.{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5521 QM_TRY(MOZ_TO_RESULT(IPCBlobUtils::Serialize(impl, ipcBlob)),{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5522 Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5523 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5524
5525 aDatabase->MapBlob(ipcBlob, file.FileInfoPtr());{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5526
5527 return SerializedStructuredCloneFile{ipcBlob, file.Type()};{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5528 }{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5529
5530 case StructuredCloneFileBase::eMutableFile:{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5531 case StructuredCloneFileBase::eWasmBytecode:{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5532 case StructuredCloneFileBase::eWasmCompiled: {{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5533 // Set file() to null, support for storing WebAssembly.Modules has{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5534 // been removed in bug 1469395. Support for de-serialization of{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5535 // WebAssembly.Modules modules has been removed in bug 1561876.{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5536 // Support for MutableFile has been removed in bug 1500343. Full{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5537 // removal is tracked in bug 1487479.{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5538
5539 return SerializedStructuredCloneFile{null_t(), file.Type()};{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5540 }{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5541
5542 default:{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5543 MOZ_CRASH("Should never get here!");{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5544 }{auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
5545 })){auto tryResult852 = (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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult850
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult850)::ok_type>); if ((__builtin_expect(
!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5503, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851
.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5523, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __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!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5497); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5497; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult850 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5503, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult851 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult851)::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr()), 0))) { auto tryTempError = tryResult851.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5523, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5543); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5543; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult852.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5545, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
;
5546
5547 return std::move(serializedStructuredCloneFiles);
5548}
5549
5550bool IsFileNotFoundError(const nsresult aRv) {
5551 return aRv == NS_ERROR_FILE_NOT_FOUND;
5552}
5553
5554enum struct Idempotency { Yes, No };
5555
5556// Delete a file, decreasing the quota usage as appropriate. If the file no
5557// longer exists but aIdempotency is Idempotency::Yes, success is returned,
5558// although quota usage can't be decreased. (With the assumption being that the
5559// file was already deleted prior to this logic running, and the non-existent
5560// file was no longer tracked by quota because it didn't exist at
5561// initialization time or a previous deletion call updated the usage.)
5562nsresult DeleteFile(nsIFile& aFile, QuotaManager* const aQuotaManager,
5563 const PersistenceType aPersistenceType,
5564 const OriginMetadata& aOriginMetadata,
5565 const Idempotency aIdempotency) {
5566 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5566); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 5566; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5567 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5567); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 5567; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5568
5569 // Callers which pass Idempotency::Yes call this function without checking if
5570 // the file already exists (idempotent usage). QM_OR_ELSE_WARN_IF is not used
5571 // here since we just want to log NS_ERROR_FILE_NOT_FOUND results and not spam
5572 // the reports.
5573 // Theoretically, there should be no QM_OR_ELSE_(WARN|LOG_VERBOSE)_IF when a
5574 // caller passes Idempotency::No, but it's simpler when the predicate just
5575 // always returns false in that case.
5576
5577 const auto isIgnorableError = [&aIdempotency]() -> bool (*)(nsresult) {
5578 if (aIdempotency == Idempotency::Yes) {
5579 return IsFileNotFoundError;
5580 }
5581
5582 return [](const nsresult rv) { return false; };
5583 }();
5584
5585 QM_TRY_INSPECT(auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5586 const auto& fileSize,auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5587 ([aQuotaManager, &aFile,auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5588 isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> {auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5589 if (aQuotaManager) {auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5590 QM_TRY_INSPECT(auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5591 const Maybe<int64_t>& fileSize,auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5592 QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5593 // Expression.auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5594 MOZ_TO_RESULT_INVOKE_MEMBER(aFile, GetFileSize)auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5595 .map([](const int64_t val) { return Some(val); }),auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5596 // Predicate.auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5597 isIgnorableError,auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5598 // Fallback.auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5599 ErrToDefaultOk<Maybe<int64_t>>));auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5600
5601 // XXX Can we really assert that the file size is not 0 ifauto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5602 // it existed? This might be violated by externalauto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5603 // influences.auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5604 MOZ_ASSERT(!fileSize || fileSize.value() >= 0);auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5605
5606 return fileSize;auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5607 }auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5608
5609 return Some(int64_t(0));auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
5610 }()))auto tryResult854 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult853 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5599, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult853.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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult854.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult853 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult853.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5599, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult853.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5599, mozilla::dom::quota::Severity::Error); return tryResult853.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult853.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5604); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5604; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5610, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const auto& fileSize = tryResult854.inspect
();
;
5611
5612 if (!fileSize) {
5613 return NS_OK;
5614 }
5615
5616 QM_TRY_INSPECT(const auto& didExist,auto tryResult855 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5623, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult855
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5623, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5623, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& didExist = tryResult855.inspect
();
5617 QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult855 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5623, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult855
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5623, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5623, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& didExist = tryResult855.inspect
();
5618 // Expression.auto tryResult855 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5623, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult855
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5623, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5623, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& didExist = tryResult855.inspect
();
5619 MOZ_TO_RESULT(aFile.Remove(false)).map(Some<Ok>),auto tryResult855 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5623, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult855
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5623, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5623, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& didExist = tryResult855.inspect
();
5620 // Predicate.auto tryResult855 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5623, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult855
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5623, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5623, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& didExist = tryResult855.inspect
();
5621 isIgnorableError,auto tryResult855 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5623, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult855
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5623, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5623, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& didExist = tryResult855.inspect
();
5622 // Fallback.auto tryResult855 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5623, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult855
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5623, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5623, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& didExist = tryResult855.inspect
();
5623 ErrToDefaultOk<Maybe<Ok>>))auto tryResult855 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5623, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult855
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5623, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5623, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& didExist = tryResult855.inspect
();
;
5624
5625 if (!didExist) {
5626 // XXX If we get here, this means that the file still existed when we
5627 // queried its size, but no longer when we tried to remove it. Not sure if
5628 // this should really be silently accepted in idempotent mode.
5629 return NS_OK;
5630 }
5631
5632 if (fileSize.value() > 0) {
5633 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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5633); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aQuotaManager"
")"); do { *((volatile int*)__null) = 5633; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5634
5635 aQuotaManager->DecreaseUsageForClient(
5636 ClientMetadata{aOriginMetadata, Client::IDB}, fileSize.value());
5637 }
5638
5639 return NS_OK;
5640}
5641
5642nsresult DeleteFile(nsIFile& aDirectory, const nsAString& aFilename,
5643 QuotaManager* const aQuotaManager,
5644 const PersistenceType aPersistenceType,
5645 const OriginMetadata& aOriginMetadata,
5646 const Idempotency aIdempotent) {
5647 AssertIsOnIOThread();
5648 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5648); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()"
")"); do { *((volatile int*)__null) = 5648; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5649
5650 QM_TRY_INSPECT(const auto& file, CloneFileAndAppend(aDirectory, aFilename))auto tryResult856 = (CloneFileAndAppend(aDirectory, aFilename
)); if ((__builtin_expect(!!(tryResult856.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(aDirectory, aFilename)"
, tryResult856.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5650, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& file = tryResult856.inspect
();
;
5651
5652 return DeleteFile(*file, aQuotaManager, aPersistenceType, aOriginMetadata,
5653 aIdempotent);
5654}
5655
5656// Delete files in a directory that you think exists. If the directory doesn't
5657// exist, an error will not be returned, but warning telemetry will be
5658// generated! So only call this on directories that you know exist (idempotent
5659// usage, but it's not recommended).
5660nsresult DeleteFilesNoQuota(nsIFile& aFile) {
5661 AssertIsOnIOThread();
5662
5663 QM_TRY_INSPECT(const auto& didExist,auto tryResult857 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5670, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult857
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5670, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult857.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5670, mozilla::dom::quota::Severity::Error); return tryResult857
.propagateErr(); } const auto& didExist = tryResult857.inspect
();
5664 QM_OR_ELSE_WARN_IF(auto tryResult857 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5670, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult857
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5670, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult857.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5670, mozilla::dom::quota::Severity::Error); return tryResult857
.propagateErr(); } const auto& didExist = tryResult857.inspect
();
5665 // Expression.auto tryResult857 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5670, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult857
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5670, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult857.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5670, mozilla::dom::quota::Severity::Error); return tryResult857
.propagateErr(); } const auto& didExist = tryResult857.inspect
();
5666 MOZ_TO_RESULT(aFile.Remove(true)).map(Some<Ok>),auto tryResult857 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5670, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult857
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5670, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult857.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5670, mozilla::dom::quota::Severity::Error); return tryResult857
.propagateErr(); } const auto& didExist = tryResult857.inspect
();
5667 // Predicate.auto tryResult857 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5670, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult857
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5670, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult857.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5670, mozilla::dom::quota::Severity::Error); return tryResult857
.propagateErr(); } const auto& didExist = tryResult857.inspect
();
5668 IsFileNotFoundError,auto tryResult857 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5670, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult857
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5670, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult857.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5670, mozilla::dom::quota::Severity::Error); return tryResult857
.propagateErr(); } const auto& didExist = tryResult857.inspect
();
5669 // Fallback.auto tryResult857 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5670, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult857
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5670, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult857.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5670, mozilla::dom::quota::Severity::Error); return tryResult857
.propagateErr(); } const auto& didExist = tryResult857.inspect
();
5670 ErrToDefaultOk<Maybe<Ok>>))auto tryResult857 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5670, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult857
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5670, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult857.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5670, mozilla::dom::quota::Severity::Error); return tryResult857
.propagateErr(); } const auto& didExist = tryResult857.inspect
();
;
5671
5672 Unused << didExist;
5673
5674 return NS_OK;
5675}
5676
5677nsresult DeleteFilesNoQuota(nsIFile* aDirectory, const nsAString& aFilename) {
5678 AssertIsOnIOThread();
5679 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5679); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { *((volatile int*)__null) = 5679; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5680 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5680); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()"
")"); do { *((volatile int*)__null) = 5680; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5681
5682 // The current using function hasn't initialized the origin, so in here we
5683 // don't update the size of origin. Adding this assertion for preventing from
5684 // misusing.
5685 DebugOnly<QuotaManager*> quotaManager = QuotaManager::Get();
5686 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()",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5686); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!quotaManager->IsTemporaryStorageInitializedInternal()"
")"); do { *((volatile int*)__null) = 5686; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5687
5688 QM_TRY_INSPECT(const auto& file, CloneFileAndAppend(*aDirectory, aFilename))auto tryResult858 = (CloneFileAndAppend(*aDirectory, aFilename
)); if ((__builtin_expect(!!(tryResult858.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, aFilename)"
, tryResult858.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5688, mozilla::dom::quota::Severity::Error); return tryResult858
.propagateErr(); } const auto& file = tryResult858.inspect
();
;
5689
5690 QM_TRY(MOZ_TO_RESULT(DeleteFilesNoQuota(*file))){auto tryResult859 = (ToResult(DeleteFilesNoQuota(*file))); static_assert
(std::is_empty_v<typename decltype(tryResult859)::ok_type>
); if ((__builtin_expect(!!(tryResult859.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(*file))"
, tryResult859.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5690, mozilla::dom::quota::Severity::Error); return tryResult859
.propagateErr(); }}
;
5691
5692 return NS_OK;
5693}
5694
5695// CreateMarkerFile and RemoveMarkerFile are a pair of functions to indicate
5696// whether having removed all the files successfully. The marker file should
5697// be checked before executing the next operation or initialization.
5698Result<nsCOMPtr<nsIFile>, nsresult> CreateMarkerFile(
5699 nsIFile& aBaseDirectory, const nsAString& aDatabaseNameBase) {
5700 AssertIsOnIOThread();
5701 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5701); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseNameBase.IsEmpty()"
")"); do { *((volatile int*)__null) = 5701; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5702
5703 QM_TRY_INSPECT(auto tryResult860 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix
+ aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult860
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)"
, tryResult860.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5706, mozilla::dom::quota::Severity::Error); return tryResult860
.propagateErr(); } const auto& markerFile = tryResult860.
inspect();
5704 const auto& markerFile,auto tryResult860 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix
+ aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult860
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)"
, tryResult860.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5706, mozilla::dom::quota::Severity::Error); return tryResult860
.propagateErr(); } const auto& markerFile = tryResult860.
inspect();
5705 CloneFileAndAppend(aBaseDirectory,auto tryResult860 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix
+ aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult860
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)"
, tryResult860.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5706, mozilla::dom::quota::Severity::Error); return tryResult860
.propagateErr(); } const auto& markerFile = tryResult860.
inspect();
5706 kIdbDeletionMarkerFilePrefix + aDatabaseNameBase))auto tryResult860 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix
+ aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult860
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)"
, tryResult860.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5706, mozilla::dom::quota::Severity::Error); return tryResult860
.propagateErr(); } const auto& markerFile = tryResult860.
inspect();
;
5707
5708 // Callers call this function without checking if the file already exists
5709 // (idempotent usage). QM_OR_ELSE_WARN_IF is not used here since we just want
5710 // to log NS_ERROR_FILE_ALREADY_EXISTS result and not spam the reports.
5711 //
5712 // TODO: In theory if this file exists, then RemoveDatabaseFilesAndDirectory
5713 // should have cleaned it up, but obviously we can crash and not clean it up,
5714 // which is the whole point of the marker file. In that case, we'll realize
5715 // the marker file exists in OpenDatabaseOp::DoDatabaseWork or
5716 // GetUsageForOriginInternal and resume the removal by calling
5717 // RemoveDatabaseFilesAndDirectory again, but we will also try to create the
5718 // marker file again, so if we see this marker file, it is part
5719 // of our standard operating procedure to redundantly try and create the
5720 // marker here. We currently treat this as idempotent usage, but we could
5721 // add an additional argument to RemoveDatabaseFilesAndDirectory which would
5722 // indicate that we are resuming an unfinished removal, so the marker already
5723 // exists and doesn't have to be created, and change
5724 // QM_OR_ELSE_LOG_VERBOSE_IF to QM_OR_ELSE_WARN_IF in the end.
5725 QM_TRY(QM_OR_ELSE_LOG_VERBOSE_IF({auto tryResult861 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5731, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult861)::ok_type>); if ((__builtin_expect(!!(tryResult861
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5731, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult861.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5731, mozilla::dom::quota::Severity::Error); return tryResult861
.propagateErr(); }}
5726 // Expression.{auto tryResult861 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5731, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult861)::ok_type>); if ((__builtin_expect(!!(tryResult861
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5731, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult861.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5731, mozilla::dom::quota::Severity::Error); return tryResult861
.propagateErr(); }}
5727 MOZ_TO_RESULT(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644)),{auto tryResult861 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5731, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult861)::ok_type>); if ((__builtin_expect(!!(tryResult861
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5731, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult861.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5731, mozilla::dom::quota::Severity::Error); return tryResult861
.propagateErr(); }}
5728 // Predicate.{auto tryResult861 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5731, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult861)::ok_type>); if ((__builtin_expect(!!(tryResult861
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5731, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult861.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5731, mozilla::dom::quota::Severity::Error); return tryResult861
.propagateErr(); }}
5729 IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>,{auto tryResult861 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5731, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult861)::ok_type>); if ((__builtin_expect(!!(tryResult861
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5731, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult861.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5731, mozilla::dom::quota::Severity::Error); return tryResult861
.propagateErr(); }}
5730 // Fallback.{auto tryResult861 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5731, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult861)::ok_type>); if ((__builtin_expect(!!(tryResult861
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5731, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult861.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5731, mozilla::dom::quota::Severity::Error); return tryResult861
.propagateErr(); }}
5731 ErrToDefaultOk<>)){auto tryResult861 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5731, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult861)::ok_type>); if ((__builtin_expect(!!(tryResult861
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5731, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult861.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5731, mozilla::dom::quota::Severity::Error); return tryResult861
.propagateErr(); }}
;
5732
5733 return markerFile;
5734}
5735
5736nsresult RemoveMarkerFile(nsIFile* aMarkerFile) {
5737 AssertIsOnIOThread();
5738 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5738); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMarkerFile"
")"); do { *((volatile int*)__null) = 5738; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5739
5740 DebugOnly<bool> exists;
5741 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(aMarkerFile->Exists(&exists))), 1)))"
")"); do { *((volatile int*)__null) = 5741; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5742 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5742); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")"
); do { *((volatile int*)__null) = 5742; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5743
5744 QM_TRY(MOZ_TO_RESULT(aMarkerFile->Remove(false))){auto tryResult862 = (ToResult(aMarkerFile->Remove(false))
); static_assert(std::is_empty_v<typename decltype(tryResult862
)::ok_type>); if ((__builtin_expect(!!(tryResult862.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(aMarkerFile->Remove(false))"
, tryResult862.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5744, mozilla::dom::quota::Severity::Error); return tryResult862
.propagateErr(); }}
;
5745
5746 return NS_OK;
5747}
5748
5749Result<Ok, nsresult> DeleteFileManagerDirectory(
5750 nsIFile& aFileManagerDirectory, QuotaManager* aQuotaManager,
5751 const PersistenceType aPersistenceType,
5752 const OriginMetadata& aOriginMetadata) {
5753 // XXX In theory, deleting can continue for other files in case of a failure,
5754 // leaving only those files behind that cause the problem actually. However,
5755 // the current architecture doesn't allow having more databases (for the same
5756 // name) on disk, so trying to delete as much as possible won't help much
5757 // because we need to delete entire .files directory in the end anyway.
5758 QM_TRY(DatabaseFileManager::TraverseFiles({auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5759 aFileManagerDirectory,{auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5760 // KnownDirEntryOp{auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5761 [&aQuotaManager, aPersistenceType, &aOriginMetadata]({auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5762 nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5763 if (isDirectory) {{auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5764 // The journal directory doesn't count towards quota.{auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5765 QM_TRY_RETURN(MOZ_TO_RESULT(DeleteFilesNoQuota(file)));{auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5766 }{auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5767
5768 // Stored files do count towards quota.{auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5769 QM_TRY_RETURN({auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5770 MOZ_TO_RESULT(DeleteFile(file, aQuotaManager, aPersistenceType,{auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5771 aOriginMetadata, Idempotency::Yes)));{auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5772 },{auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5773 // UnknownDirEntryOp{auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5774 [aPersistenceType, &aOriginMetadata]({auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5775 nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5776 // Unknown files and directories don't count towards quota.{auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5777
5778 if (isDirectory) {{auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5779 QM_TRY_RETURN(MOZ_TO_RESULT(DeleteFilesNoQuota(file)));{auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5780 }{auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5781
5782 QM_TRY_RETURN(MOZ_TO_RESULT({auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5783 DeleteFile(file, /* doesn't count */ nullptr, aPersistenceType,{auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5784 aOriginMetadata, Idempotency::Yes)));{auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
5785 })){auto tryResult867 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5765, mozilla::dom::quota::Severity::Error); } return tryResult863
;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5771, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5779, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5784, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult867
)::ok_type>); if ((__builtin_expect(!!(tryResult867.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult863 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult863.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5765, mozilla::dom::quota::Severity::Error); } return tryResult863;}; } {auto tryResult864 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5771, mozilla::dom::quota::Severity::Error); } return tryResult864;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5779, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5784, mozilla::dom::quota::Severity::Error); } return tryResult866;}; })"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
;
5786
5787 QM_TRY_RETURN(MOZ_TO_RESULT(aFileManagerDirectory.Remove(false))){auto tryResult868 = (ToResult(aFileManagerDirectory.Remove(false
))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aFileManagerDirectory.Remove(false))"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5787, mozilla::dom::quota::Severity::Error); } return tryResult868
;}
;
5788}
5789
5790// Idempotently delete all the parts of an IndexedDB database including its
5791// SQLite database file, its WAL journal, it's shared-memory file, and its
5792// Blob/Files sub-directory. A marker file is created prior to performing the
5793// deletion so that in the event we crash or fail to successfully delete the
5794// database and its files, we will re-attempt the deletion the next time the
5795// origin is initialized using this method. Because this means the method may be
5796// called on a partially deleted database, this method uses DeleteFile which
5797// succeeds when the file we ask it to delete does not actually exist. The
5798// marker file is removed once deletion has successfully completed.
5799nsresult RemoveDatabaseFilesAndDirectory(nsIFile& aBaseDirectory,
5800 const nsAString& aDatabaseFilenameBase,
5801 QuotaManager* aQuotaManager,
5802 const PersistenceType aPersistenceType,
5803 const OriginMetadata& aOriginMetadata,
5804 const nsAString& aDatabaseName) {
5805 AssertIsOnIOThread();
5806 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5806); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseFilenameBase.IsEmpty()"
")"); do { *((volatile int*)__null) = 5806; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5807
5808 AUTO_PROFILER_LABEL("RemoveDatabaseFilesAndDirectory", DOM)mozilla::AutoProfilerLabel raiiObject5808( "RemoveDatabaseFilesAndDirectory"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
5809
5810 QM_TRY_UNWRAP(auto markerFile,auto tryResult869 = (CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase
)); if ((__builtin_expect(!!(tryResult869.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase)"
, tryResult869.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5811, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); } auto markerFile = tryResult869.unwrap();
5811 CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase))auto tryResult869 = (CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase
)); if ((__builtin_expect(!!(tryResult869.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase)"
, tryResult869.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5811, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); } auto markerFile = tryResult869.unwrap();
;
5812
5813 // The database file counts towards quota.
5814 QM_TRY(MOZ_TO_RESULT(DeleteFile({auto tryResult870 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult870)::ok_type>); if ((__builtin_expect(
!!(tryResult870.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult870.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5816, mozilla::dom::quota::Severity::Error); return tryResult870
.propagateErr(); }}
5815 aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager,{auto tryResult870 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult870)::ok_type>); if ((__builtin_expect(
!!(tryResult870.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult870.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5816, mozilla::dom::quota::Severity::Error); return tryResult870
.propagateErr(); }}
5816 aPersistenceType, aOriginMetadata, Idempotency::Yes))){auto tryResult870 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult870)::ok_type>); if ((__builtin_expect(
!!(tryResult870.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult870.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5816, mozilla::dom::quota::Severity::Error); return tryResult870
.propagateErr(); }}
;
5817
5818 // .sqlite-journal files don't count towards quota.
5819 QM_TRY(MOZ_TO_RESULT(DeleteFile(aBaseDirectory,{auto tryResult871 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult871)::ok_type>); if ((__builtin_expect(
!!(tryResult871.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult871.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5822, mozilla::dom::quota::Severity::Error); return tryResult871
.propagateErr(); }}
5820 aDatabaseFilenameBase + kSQLiteJournalSuffix,{auto tryResult871 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult871)::ok_type>); if ((__builtin_expect(
!!(tryResult871.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult871.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5822, mozilla::dom::quota::Severity::Error); return tryResult871
.propagateErr(); }}
5821 /* doesn't count */ nullptr, aPersistenceType,{auto tryResult871 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult871)::ok_type>); if ((__builtin_expect(
!!(tryResult871.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult871.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5822, mozilla::dom::quota::Severity::Error); return tryResult871
.propagateErr(); }}
5822 aOriginMetadata, Idempotency::Yes))){auto tryResult871 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult871)::ok_type>); if ((__builtin_expect(
!!(tryResult871.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult871.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5822, mozilla::dom::quota::Severity::Error); return tryResult871
.propagateErr(); }}
;
5823
5824 // .sqlite-shm files don't count towards quota.
5825 QM_TRY(MOZ_TO_RESULT(DeleteFile(aBaseDirectory,{auto tryResult872 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult872)::ok_type>); if ((__builtin_expect(
!!(tryResult872.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult872.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5828, mozilla::dom::quota::Severity::Error); return tryResult872
.propagateErr(); }}
5826 aDatabaseFilenameBase + kSQLiteSHMSuffix,{auto tryResult872 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult872)::ok_type>); if ((__builtin_expect(
!!(tryResult872.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult872.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5828, mozilla::dom::quota::Severity::Error); return tryResult872
.propagateErr(); }}
5827 /* doesn't count */ nullptr, aPersistenceType,{auto tryResult872 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult872)::ok_type>); if ((__builtin_expect(
!!(tryResult872.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult872.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5828, mozilla::dom::quota::Severity::Error); return tryResult872
.propagateErr(); }}
5828 aOriginMetadata, Idempotency::Yes))){auto tryResult872 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult872)::ok_type>); if ((__builtin_expect(
!!(tryResult872.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult872.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5828, mozilla::dom::quota::Severity::Error); return tryResult872
.propagateErr(); }}
;
5829
5830 // .sqlite-wal files do count towards quota.
5831 QM_TRY(MOZ_TO_RESULT(DeleteFile({auto tryResult873 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult873)::ok_type>); if ((__builtin_expect(
!!(tryResult873.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult873.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5833, mozilla::dom::quota::Severity::Error); return tryResult873
.propagateErr(); }}
5832 aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager,{auto tryResult873 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult873)::ok_type>); if ((__builtin_expect(
!!(tryResult873.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult873.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5833, mozilla::dom::quota::Severity::Error); return tryResult873
.propagateErr(); }}
5833 aPersistenceType, aOriginMetadata, Idempotency::Yes))){auto tryResult873 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult873)::ok_type>); if ((__builtin_expect(
!!(tryResult873.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult873.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5833, mozilla::dom::quota::Severity::Error); return tryResult873
.propagateErr(); }}
;
5834
5835 // The files directory counts towards quota.
5836 QM_TRY_INSPECT(auto tryResult874 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult874.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult874.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5839, mozilla::dom::quota::Severity::Error); return tryResult874
.propagateErr(); } const auto& fmDirectory = tryResult874
.inspect();
5837 const auto& fmDirectory,auto tryResult874 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult874.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult874.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5839, mozilla::dom::quota::Severity::Error); return tryResult874
.propagateErr(); } const auto& fmDirectory = tryResult874
.inspect();
5838 CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase +auto tryResult874 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult874.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult874.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5839, mozilla::dom::quota::Severity::Error); return tryResult874
.propagateErr(); } const auto& fmDirectory = tryResult874
.inspect();
5839 kFileManagerDirectoryNameSuffix))auto tryResult874 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult874.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult874.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5839, mozilla::dom::quota::Severity::Error); return tryResult874
.propagateErr(); } const auto& fmDirectory = tryResult874
.inspect();
;
5840
5841 QM_TRY_INSPECT(const bool& exists,auto tryResult875 = (::mozilla::ToResultInvokeMember( (fmDirectory
), &::mozilla::detail::DerefedType<decltype(fmDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult875.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::Exists)"
, tryResult875.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5842, mozilla::dom::quota::Severity::Error); return tryResult875
.propagateErr(); } const bool& exists = tryResult875.inspect
();
5842 MOZ_TO_RESULT_INVOKE_MEMBER(fmDirectory, Exists))auto tryResult875 = (::mozilla::ToResultInvokeMember( (fmDirectory
), &::mozilla::detail::DerefedType<decltype(fmDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult875.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::Exists)"
, tryResult875.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5842, mozilla::dom::quota::Severity::Error); return tryResult875
.propagateErr(); } const bool& exists = tryResult875.inspect
();
;
5843
5844 if (exists) {
5845 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult876 = (::mozilla::ToResultInvokeMember( (fmDirectory
), &::mozilla::detail::DerefedType<decltype(fmDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult876.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::IsDirectory)"
, tryResult876.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5846, mozilla::dom::quota::Severity::Error); return tryResult876
.propagateErr(); } const bool& isDirectory = tryResult876
.inspect();
5846 MOZ_TO_RESULT_INVOKE_MEMBER(fmDirectory, IsDirectory))auto tryResult876 = (::mozilla::ToResultInvokeMember( (fmDirectory
), &::mozilla::detail::DerefedType<decltype(fmDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult876.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::IsDirectory)"
, tryResult876.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5846, mozilla::dom::quota::Severity::Error); return tryResult876
.propagateErr(); } const bool& isDirectory = tryResult876
.inspect();
;
5847
5848 QM_TRY(OkIf(isDirectory), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR){auto tryResult877 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult877)::ok_type>); if
((__builtin_expect(!!(tryResult877.isErr()), 0))) { auto tryTempError
__attribute__((__unused__)) = tryResult877.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(isDirectory)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5848, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
5849
5850 QM_TRY(DeleteFileManagerDirectory(*fmDirectory, aQuotaManager,{auto tryResult878 = (DeleteFileManagerDirectory(*fmDirectory
, aQuotaManager, aPersistenceType, aOriginMetadata)); static_assert
(std::is_empty_v<typename decltype(tryResult878)::ok_type>
); if ((__builtin_expect(!!(tryResult878.isErr()), 0))) { mozilla
::dom::quota::HandleError("DeleteFileManagerDirectory(*fmDirectory, aQuotaManager, aPersistenceType, aOriginMetadata)"
, tryResult878.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5851, mozilla::dom::quota::Severity::Error); return tryResult878
.propagateErr(); }}
5851 aPersistenceType, aOriginMetadata)){auto tryResult878 = (DeleteFileManagerDirectory(*fmDirectory
, aQuotaManager, aPersistenceType, aOriginMetadata)); static_assert
(std::is_empty_v<typename decltype(tryResult878)::ok_type>
); if ((__builtin_expect(!!(tryResult878.isErr()), 0))) { mozilla
::dom::quota::HandleError("DeleteFileManagerDirectory(*fmDirectory, aQuotaManager, aPersistenceType, aOriginMetadata)"
, tryResult878.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5851, mozilla::dom::quota::Severity::Error); return tryResult878
.propagateErr(); }}
;
5852 }
5853
5854 IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get();
5855 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5855); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mgr" ")"); do
{ *((volatile int*)__null) = 5855; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } } while (false
)
;
5856
5857 if (mgr) {
5858 mgr->InvalidateFileManager(aPersistenceType, aOriginMetadata.mOrigin,
5859 aDatabaseName);
5860 }
5861
5862 QM_TRY(MOZ_TO_RESULT(RemoveMarkerFile(markerFile))){auto tryResult879 = (ToResult(RemoveMarkerFile(markerFile)))
; static_assert(std::is_empty_v<typename decltype(tryResult879
)::ok_type>); if ((__builtin_expect(!!(tryResult879.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveMarkerFile(markerFile))"
, tryResult879.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5862, mozilla::dom::quota::Severity::Error); return tryResult879
.propagateErr(); }}
;
5863
5864 return NS_OK;
5865}
5866
5867/*******************************************************************************
5868 * Globals
5869 ******************************************************************************/
5870
5871// Counts the number of "live" Factory, FactoryOp and Database instances.
5872uint64_t gBusyCount = 0;
5873
5874using FactoryOpArray = nsTArray<CheckedUnsafePtr<FactoryOp>>;
5875
5876StaticAutoPtr<FactoryOpArray> gFactoryOps;
5877
5878// Maps a database id to information about live database actors.
5879using DatabaseActorHashtable =
5880 nsClassHashtable<nsCStringHashKey, DatabaseActorInfo>;
5881
5882StaticAutoPtr<DatabaseActorHashtable> gLiveDatabaseHashtable;
5883
5884StaticRefPtr<ConnectionPool> gConnectionPool;
5885
5886using DatabaseLoggingInfoHashtable =
5887 nsTHashMap<nsIDHashKey, DatabaseLoggingInfo*>;
5888
5889StaticAutoPtr<DatabaseLoggingInfoHashtable> gLoggingInfoHashtable;
5890
5891using TelemetryIdHashtable = nsTHashMap<nsUint32HashKey, uint32_t>;
5892
5893StaticAutoPtr<TelemetryIdHashtable> gTelemetryIdHashtable;
5894
5895// Protects all reads and writes to gTelemetryIdHashtable.
5896StaticAutoPtr<Mutex> gTelemetryIdMutex;
5897
5898// For private browsing, maps the raw database names provided by content to a
5899// replacement UUID in order to avoid exposing the name of the database on
5900// disk or a directly derived value, such as the non-private-browsing
5901// representation. This mapping will be the same for all databases with the
5902// same name across all storage keys/origins for the lifetime of the IDB
5903// QuotaClient. In tests, the QuotaClient may be created and destroyed multiple
5904// times, but for normal browser use the QuotaClient will last until the
5905// browser shuts down. Bug 1831835 will improve this implementation to avoid
5906// using the same mapping across storage keys and to deal with the resulting
5907// lifecycle issues of the additional memory use.
5908using StorageDatabaseNameHashtable = nsTHashMap<nsString, nsString>;
5909
5910StaticAutoPtr<StorageDatabaseNameHashtable> gStorageDatabaseNameHashtable;
5911
5912// Protects all reads and writes to gStorageDatabaseNameHashtable.
5913StaticAutoPtr<Mutex> gStorageDatabaseNameMutex;
5914
5915#ifdef DEBUG1
5916
5917StaticRefPtr<DEBUGThreadSlower> gDEBUGThreadSlower;
5918
5919#endif // DEBUG
5920
5921void IncreaseBusyCount() {
5922 AssertIsOnBackgroundThread();
5923
5924 // If this is the first instance then we need to do some initialization.
5925 if (!gBusyCount) {
5926 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5926); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gFactoryOps"
")"); do { *((volatile int*)__null) = 5926; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5927 gFactoryOps = new FactoryOpArray();
5928
5929 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5929); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable"
")"); do { *((volatile int*)__null) = 5929; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5930 gLiveDatabaseHashtable = new DatabaseActorHashtable();
5931
5932 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5932); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLoggingInfoHashtable"
")"); do { *((volatile int*)__null) = 5932; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5933 gLoggingInfoHashtable = new DatabaseLoggingInfoHashtable();
5934
5935#ifdef DEBUG1
5936 if (kDEBUGThreadPriority != nsISupportsPriority::PRIORITY_NORMAL) {
5937 NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, priority has been "
"modified!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5939)
5938 "PBackground thread debugging enabled, priority has been "NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, priority has been "
"modified!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5939)
5939 "modified!")NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, priority has been "
"modified!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5939)
;
5940 nsCOMPtr<nsISupportsPriority> thread =
5941 do_QueryInterface(NS_GetCurrentThread());
5942 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5942); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")"
); do { *((volatile int*)__null) = 5942; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5943
5944 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5944); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->SetPriority(kDEBUGThreadPriority))"
")"); do { *((volatile int*)__null) = 5944; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
5945 }
5946
5947 if (kDEBUGThreadSleepMS) {
5948 NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, sleeping after every "
"event!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5950)
5949 "PBackground thread debugging enabled, sleeping after every "NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, sleeping after every "
"event!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5950)
5950 "event!")NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, sleeping after every "
"event!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5950)
;
5951 nsCOMPtr<nsIThreadInternal> thread =
5952 do_QueryInterface(NS_GetCurrentThread());
5953 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5953); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")"
); do { *((volatile int*)__null) = 5953; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5954
5955 gDEBUGThreadSlower = new DEBUGThreadSlower();
5956
5957 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5957); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->AddObserver(gDEBUGThreadSlower))"
")"); do { *((volatile int*)__null) = 5957; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
5958 }
5959#endif // DEBUG
5960 }
5961
5962 gBusyCount++;
5963}
5964
5965void DecreaseBusyCount() {
5966 AssertIsOnBackgroundThread();
5967 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5967); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gBusyCount"
")"); do { *((volatile int*)__null) = 5967; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5968
5969 // Clean up if there are no more instances.
5970 if (--gBusyCount == 0) {
5971 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5971); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable"
")"); do { *((volatile int*)__null) = 5971; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5972 gLoggingInfoHashtable = nullptr;
5973
5974 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5974); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLiveDatabaseHashtable"
")"); do { *((volatile int*)__null) = 5974; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5975 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5975); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable->Count()"
")"); do { *((volatile int*)__null) = 5975; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5976 gLiveDatabaseHashtable = nullptr;
5977
5978 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5978); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps"
")"); do { *((volatile int*)__null) = 5978; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5979 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5979); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps->IsEmpty()"
")"); do { *((volatile int*)__null) = 5979; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5980 gFactoryOps = nullptr;
5981
5982#ifdef DEBUG1
5983 if (kDEBUGThreadPriority != nsISupportsPriority::PRIORITY_NORMAL) {
5984 nsCOMPtr<nsISupportsPriority> thread =
5985 do_QueryInterface(NS_GetCurrentThread());
5986 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5986); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")"
); do { *((volatile int*)__null) = 5986; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5987
5988 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5989); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))"
")"); do { *((volatile int*)__null) = 5989; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
5989 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5989); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))"
")"); do { *((volatile int*)__null) = 5989; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
5990 }
5991
5992 if (kDEBUGThreadSleepMS) {
5993 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5993); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gDEBUGThreadSlower"
")"); do { *((volatile int*)__null) = 5993; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5994
5995 nsCOMPtr<nsIThreadInternal> thread =
5996 do_QueryInterface(NS_GetCurrentThread());
5997 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5997); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")"
); do { *((volatile int*)__null) = 5997; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5998
5999 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5999); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->RemoveObserver(gDEBUGThreadSlower))"
")"); do { *((volatile int*)__null) = 5999; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6000
6001 gDEBUGThreadSlower = nullptr;
6002 }
6003#endif // DEBUG
6004 }
6005}
6006
6007template <typename Condition>
6008void InvalidateLiveDatabasesMatching(const Condition& aCondition) {
6009 AssertIsOnBackgroundThread();
6010
6011 if (!gLiveDatabaseHashtable) {
6012 return;
6013 }
6014
6015 // Invalidating a Database will cause it to be removed from the
6016 // gLiveDatabaseHashtable entries' mLiveDatabases, and, if it was the last
6017 // element in mLiveDatabases, to remove the whole hashtable entry. Therefore,
6018 // we need to make a temporary list of the databases to invalidate to avoid
6019 // iterator invalidation.
6020
6021 nsTArray<SafeRefPtr<Database>> databases;
6022
6023 for (const auto& liveDatabasesEntry : gLiveDatabaseHashtable->Values()) {
6024 for (const auto& database : liveDatabasesEntry->mLiveDatabases) {
6025 if (aCondition(*database)) {
6026 databases.AppendElement(
6027 SafeRefPtr{database.get(), AcquireStrongRefFromRawPtr{}});
6028 }
6029 }
6030 }
6031
6032 for (const auto& database : databases) {
6033 database->Invalidate();
6034 }
6035}
6036
6037uint32_t TelemetryIdForFile(nsIFile* aFile) {
6038 // May be called on any thread!
6039
6040 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFile" ")")
; do { *((volatile int*)__null) = 6040; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6041 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gTelemetryIdMutex"
")"); do { *((volatile int*)__null) = 6041; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6042
6043 // The storage directory is structured like this:
6044 //
6045 // <profile>/storage/<persistence>/<origin>/idb/<filename>.sqlite
6046 //
6047 // For the purposes of this function we're only concerned with the
6048 // <persistence>, <origin>, and <filename> pieces.
6049
6050 nsString filename;
6051 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6051); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aFile->GetLeafName(filename))"
")"); do { *((volatile int*)__null) = 6051; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6052
6053 // Make sure we were given a database file.
6054 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6054); AnnotateMozCrashReason("MOZ_ASSERT" "(" "StringEndsWith(filename, kSQLiteSuffix)"
")"); do { *((volatile int*)__null) = 6054; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6055
6056 filename.Truncate(filename.Length() - kSQLiteSuffix.Length());
6057
6058 // Get the "idb" directory.
6059 nsCOMPtr<nsIFile> idbDirectory;
6060 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6060); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aFile->GetParent(getter_AddRefs(idbDirectory)))"
")"); do { *((volatile int*)__null) = 6060; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6061
6062 DebugOnly<nsString> idbLeafName;
6063 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6063); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(idbDirectory->GetLeafName(idbLeafName))), 1)))"
")"); do { *((volatile int*)__null) = 6063; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6064 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\")"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6064); AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<nsString&>(idbLeafName).EqualsLiteral(\"idb\")"
")"); do { *((volatile int*)__null) = 6064; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6065
6066 // Get the <origin> directory.
6067 nsCOMPtr<nsIFile> originDirectory;
6068 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6068); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(idbDirectory->GetParent(getter_AddRefs(originDirectory)))"
")"); do { *((volatile int*)__null) = 6068; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6069
6070 nsString origin;
6071 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6071); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(originDirectory->GetLeafName(origin))"
")"); do { *((volatile int*)__null) = 6071; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6072
6073 // Any databases in these directories are owned by the application and should
6074 // not have their filenames masked. Hopefully they also appear in the
6075 // Telemetry.cpp whitelist.
6076 if (origin.EqualsLiteral("chrome") ||
6077 origin.EqualsLiteral("moz-safe-about+home")) {
6078 return 0;
6079 }
6080
6081 // Get the <persistence> directory.
6082 nsCOMPtr<nsIFile> persistenceDirectory;
6083 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6084); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))"
")"); do { *((volatile int*)__null) = 6084; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
6084 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6084); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))"
")"); do { *((volatile int*)__null) = 6084; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6085
6086 nsString persistence;
6087 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6087); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(persistenceDirectory->GetLeafName(persistence))"
")"); do { *((volatile int*)__null) = 6087; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6088
6089 constexpr auto separator = u"*"_ns;
6090
6091 uint32_t hashValue =
6092 HashString(persistence + separator + origin + separator + filename);
6093
6094 MutexAutoLock lock(*gTelemetryIdMutex);
6095
6096 if (!gTelemetryIdHashtable) {
6097 gTelemetryIdHashtable = new TelemetryIdHashtable();
6098 }
6099
6100 return gTelemetryIdHashtable->LookupOrInsertWith(hashValue, [] {
6101 static uint32_t sNextId = 1;
6102
6103 // We're locked, no need for atomics.
6104 return sNextId++;
6105 });
6106}
6107
6108nsAutoString GetDatabaseFilenameBase(const nsAString& aDatabaseName,
6109 bool aIsPrivate) {
6110 nsAutoString databaseFilenameBase;
6111
6112 if (aIsPrivate) {
6113 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6113); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "gStorageDatabaseNameMutex"
")"); do { *((volatile int*)__null) = 6113; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6114
6115 MutexAutoLock lock(*gStorageDatabaseNameMutex);
6116
6117 if (!gStorageDatabaseNameHashtable) {
6118 gStorageDatabaseNameHashtable = new StorageDatabaseNameHashtable();
6119 }
6120
6121 databaseFilenameBase.Append(
6122 gStorageDatabaseNameHashtable->LookupOrInsertWith(aDatabaseName, []() {
6123 return NSID_TrimBracketsUTF16(nsID::GenerateUUID());
6124 }));
6125
6126 return databaseFilenameBase;
6127 }
6128
6129 // WARNING: do not change this hash function. See the comment in HashName()
6130 // for details.
6131 databaseFilenameBase.AppendInt(HashName(aDatabaseName));
6132
6133 nsAutoCString escapedName;
6134 if (!NS_Escape(NS_ConvertUTF16toUTF8(aDatabaseName), escapedName,
6135 url_XPAlphas)) {
6136 MOZ_CRASH("Can't escape database name!")do { do { } while (false); MOZ_ReportCrash("" "Can't escape database name!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6136); AnnotateMozCrashReason("MOZ_CRASH(" "Can't escape database name!"
")"); do { *((volatile int*)__null) = 6136; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
6137 }
6138
6139 const char* forwardIter = escapedName.BeginReading();
6140 const char* backwardIter = escapedName.EndReading() - 1;
6141
6142 nsAutoCString substring;
6143 while (forwardIter <= backwardIter && substring.Length() < 21) {
6144 if (substring.Length() % 2) {
6145 substring.Append(*backwardIter--);
6146 } else {
6147 substring.Append(*forwardIter++);
6148 }
6149 }
6150
6151 databaseFilenameBase.AppendASCII(substring.get(), substring.Length());
6152
6153 return databaseFilenameBase;
6154}
6155
6156const CommonIndexOpenCursorParams& GetCommonIndexOpenCursorParams(
6157 const OpenCursorParams& aParams) {
6158 switch (aParams.type()) {
6159 case OpenCursorParams::TIndexOpenCursorParams:
6160 return aParams.get_IndexOpenCursorParams().commonIndexParams();
6161 case OpenCursorParams::TIndexOpenKeyCursorParams:
6162 return aParams.get_IndexOpenKeyCursorParams().commonIndexParams();
6163 default:
6164 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6164); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 6164; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
6165 }
6166}
6167
6168const CommonOpenCursorParams& GetCommonOpenCursorParams(
6169 const OpenCursorParams& aParams) {
6170 switch (aParams.type()) {
6171 case OpenCursorParams::TObjectStoreOpenCursorParams:
6172 return aParams.get_ObjectStoreOpenCursorParams().commonParams();
6173 case OpenCursorParams::TObjectStoreOpenKeyCursorParams:
6174 return aParams.get_ObjectStoreOpenKeyCursorParams().commonParams();
6175 case OpenCursorParams::TIndexOpenCursorParams:
6176 case OpenCursorParams::TIndexOpenKeyCursorParams:
6177 return GetCommonIndexOpenCursorParams(aParams).commonParams();
6178 default:
6179 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6179); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 6179; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
6180 }
6181}
6182
6183// TODO: Using nsCString as a return type here seems to lead to a dependency on
6184// some temporaries, which I did not expect. Is it a good idea that the default
6185// operator+ behaviour constructs such strings? It is certainly useful as an
6186// optimization, but this should be better done via an appropriately named
6187// function rather than an operator.
6188nsAutoCString MakeColumnPairSelectionList(
6189 const nsLiteralCString& aPlainColumnName,
6190 const nsLiteralCString& aLocaleAwareColumnName,
6191 const nsLiteralCString& aSortColumnAlias, const bool aIsLocaleAware) {
6192 return aPlainColumnName +
6193 (aIsLocaleAware ? EmptyCString() : " as "_ns + aSortColumnAlias) +
6194 ", "_ns + aLocaleAwareColumnName +
6195 (aIsLocaleAware ? " as "_ns + aSortColumnAlias : EmptyCString());
6196}
6197
6198constexpr bool IsIncreasingOrder(const IDBCursorDirection aDirection) {
6199 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6202); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { *((volatile int*)__null) = 6202; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6200 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6202); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { *((volatile int*)__null) = 6202; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6201 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6202); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { *((volatile int*)__null) = 6202; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6202 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6202); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { *((volatile int*)__null) = 6202; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6203
6204 return aDirection == IDBCursorDirection::Next ||
6205 aDirection == IDBCursorDirection::Nextunique;
6206}
6207
6208constexpr bool IsUnique(const IDBCursorDirection aDirection) {
6209 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6212); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { *((volatile int*)__null) = 6212; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6210 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6212); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { *((volatile int*)__null) = 6212; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6211 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6212); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { *((volatile int*)__null) = 6212; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6212 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6212); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { *((volatile int*)__null) = 6212; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6213
6214 return aDirection == IDBCursorDirection::Nextunique ||
6215 aDirection == IDBCursorDirection::Prevunique;
6216}
6217
6218// TODO: In principle, this could be constexpr, if operator+(nsLiteralCString,
6219// nsLiteralCString) were constexpr and returned a literal type.
6220nsAutoCString MakeDirectionClause(const IDBCursorDirection aDirection) {
6221 return " ORDER BY "_ns + kColumnNameKey +
6222 (IsIncreasingOrder(aDirection) ? " ASC"_ns : " DESC"_ns);
6223}
6224
6225enum struct ComparisonOperator {
6226 LessThan,
6227 LessOrEquals,
6228 Equals,
6229 GreaterThan,
6230 GreaterOrEquals,
6231};
6232
6233constexpr nsLiteralCString GetComparisonOperatorString(
6234 const ComparisonOperator aComparisonOperator) {
6235 switch (aComparisonOperator) {
6236 case ComparisonOperator::LessThan:
6237 return "<"_ns;
6238 case ComparisonOperator::LessOrEquals:
6239 return "<="_ns;
6240 case ComparisonOperator::Equals:
6241 return "=="_ns;
6242 case ComparisonOperator::GreaterThan:
6243 return ">"_ns;
6244 case ComparisonOperator::GreaterOrEquals:
6245 return ">="_ns;
6246 }
6247
6248 // TODO: This is just to silence the "control reaches end of non-void
6249 // function" warning. Cannot use MOZ_CRASH in a constexpr function,
6250 // unfortunately.
6251 return ""_ns;
6252}
6253
6254nsAutoCString GetKeyClause(const nsACString& aColumnName,
6255 const ComparisonOperator aComparisonOperator,
6256 const nsLiteralCString& aStmtParamName) {
6257 return aColumnName + " "_ns +
6258 GetComparisonOperatorString(aComparisonOperator) + " :"_ns +
6259 aStmtParamName;
6260}
6261
6262nsAutoCString GetSortKeyClause(const ComparisonOperator aComparisonOperator,
6263 const nsLiteralCString& aStmtParamName) {
6264 return GetKeyClause(kColumnNameAliasSortKey, aComparisonOperator,
6265 aStmtParamName);
6266}
6267
6268template <IDBCursorType CursorType>
6269struct PopulateResponseHelper;
6270
6271struct CommonPopulateResponseHelper {
6272 explicit CommonPopulateResponseHelper(
6273 const TransactionDatabaseOperationBase& aOp)
6274 : mOp{aOp} {}
6275
6276 nsresult GetKeys(mozIStorageStatement* const aStmt,
6277 Key* const aOptOutSortKey) {
6278 QM_TRY(MOZ_TO_RESULT(GetCommonKeys(aStmt))){auto tryResult880 = (ToResult(GetCommonKeys(aStmt))); static_assert
(std::is_empty_v<typename decltype(tryResult880)::ok_type>
); if ((__builtin_expect(!!(tryResult880.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(GetCommonKeys(aStmt))", tryResult880
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6278, mozilla::dom::quota::Severity::Error); return tryResult880
.propagateErr(); }}
;
6279
6280 if (aOptOutSortKey) {
6281 *aOptOutSortKey = mPosition;
6282 }
6283
6284 return NS_OK;
6285 }
6286
6287 nsresult GetCommonKeys(mozIStorageStatement* const aStmt) {
6288 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6288); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPosition.IsUnset()"
")"); do { *((volatile int*)__null) = 6288; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6289
6290 QM_TRY(MOZ_TO_RESULT(mPosition.SetFromStatement(aStmt, 0))){auto tryResult881 = (ToResult(mPosition.SetFromStatement(aStmt
, 0))); static_assert(std::is_empty_v<typename decltype(tryResult881
)::ok_type>); if ((__builtin_expect(!!(tryResult881.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(mPosition.SetFromStatement(aStmt, 0))"
, tryResult881.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6290, mozilla::dom::quota::Severity::Error); return tryResult881
.propagateErr(); }}
;
6291
6292 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())
6293 "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())
6294 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())
6295 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())
6296 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())
;
6297
6298 return NS_OK;
6299 }
6300
6301 template <typename Response>
6302 void FillKeys(Response& aResponse) {
6303 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6303); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mPosition.IsUnset()"
")"); do { *((volatile int*)__null) = 6303; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6304 aResponse.key() = std::move(mPosition);
6305 }
6306
6307 template <typename Response>
6308 static size_t GetKeySize(const Response& aResponse) {
6309 return aResponse.key().GetBuffer().Length();
6310 }
6311
6312 protected:
6313 const Key& GetPosition() const { return mPosition; }
6314
6315 private:
6316 const TransactionDatabaseOperationBase& mOp;
6317 Key mPosition;
6318};
6319
6320struct IndexPopulateResponseHelper : CommonPopulateResponseHelper {
6321 using CommonPopulateResponseHelper::CommonPopulateResponseHelper;
6322
6323 nsresult GetKeys(mozIStorageStatement* const aStmt,
6324 Key* const aOptOutSortKey) {
6325 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6325); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLocaleAwarePosition.IsUnset()"
")"); do { *((volatile int*)__null) = 6325; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6326 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6326); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStorePosition.IsUnset()"
")"); do { *((volatile int*)__null) = 6326; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6327
6328 QM_TRY(MOZ_TO_RESULT(CommonPopulateResponseHelper::GetCommonKeys(aStmt))){auto tryResult882 = (ToResult(CommonPopulateResponseHelper::
GetCommonKeys(aStmt))); static_assert(std::is_empty_v<typename
decltype(tryResult882)::ok_type>); if ((__builtin_expect(
!!(tryResult882.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(CommonPopulateResponseHelper::GetCommonKeys(aStmt))"
, tryResult882.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6328, mozilla::dom::quota::Severity::Error); return tryResult882
.propagateErr(); }}
;
6329
6330 QM_TRY(MOZ_TO_RESULT(mLocaleAwarePosition.SetFromStatement(aStmt, 1))){auto tryResult883 = (ToResult(mLocaleAwarePosition.SetFromStatement
(aStmt, 1))); static_assert(std::is_empty_v<typename decltype
(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mLocaleAwarePosition.SetFromStatement(aStmt, 1))"
, tryResult883.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6330, mozilla::dom::quota::Severity::Error); return tryResult883
.propagateErr(); }}
;
6331
6332 QM_TRY(MOZ_TO_RESULT(mObjectStorePosition.SetFromStatement(aStmt, 2))){auto tryResult884 = (ToResult(mObjectStorePosition.SetFromStatement
(aStmt, 2))); static_assert(std::is_empty_v<typename decltype
(tryResult884)::ok_type>); if ((__builtin_expect(!!(tryResult884
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mObjectStorePosition.SetFromStatement(aStmt, 2))"
, tryResult884.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6332, mozilla::dom::quota::Severity::Error); return tryResult884
.propagateErr(); }}
;
6333
6334 if (aOptOutSortKey) {
6335 *aOptOutSortKey =
6336 mLocaleAwarePosition.IsUnset() ? GetPosition() : mLocaleAwarePosition;
6337 }
6338
6339 return NS_OK;
6340 }
6341
6342 template <typename Response>
6343 void FillKeys(Response& aResponse) {
6344 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6344); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mLocaleAwarePosition.IsUnset()"
")"); do { *((volatile int*)__null) = 6344; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6345 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6345); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStorePosition.IsUnset()"
")"); do { *((volatile int*)__null) = 6345; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6346
6347 CommonPopulateResponseHelper::FillKeys(aResponse);
6348 aResponse.sortKey() = std::move(mLocaleAwarePosition);
6349 aResponse.objectKey() = std::move(mObjectStorePosition);
6350 }
6351
6352 template <typename Response>
6353 static size_t GetKeySize(Response& aResponse) {
6354 return CommonPopulateResponseHelper::GetKeySize(aResponse) +
6355 aResponse.sortKey().GetBuffer().Length() +
6356 aResponse.objectKey().GetBuffer().Length();
6357 }
6358
6359 private:
6360 Key mLocaleAwarePosition, mObjectStorePosition;
6361};
6362
6363struct KeyPopulateResponseHelper {
6364 static constexpr nsresult MaybeGetCloneInfo(
6365 mozIStorageStatement* const /*aStmt*/, const CursorBase& /*aCursor*/) {
6366 return NS_OK;
6367 }
6368
6369 template <typename Response>
6370 static constexpr void MaybeFillCloneInfo(Response& /*aResponse*/,
6371 FilesArray* const /*aFiles*/) {}
6372
6373 template <typename Response>
6374 static constexpr size_t MaybeGetCloneInfoSize(const Response& /*aResponse*/) {
6375 return 0;
6376 }
6377};
6378
6379template <bool StatementHasIndexKeyBindings>
6380struct ValuePopulateResponseHelper {
6381 nsresult MaybeGetCloneInfo(mozIStorageStatement* const aStmt,
6382 const ValueCursorBase& aCursor) {
6383 constexpr auto offset = StatementHasIndexKeyBindings ? 2 : 0;
6384
6385 QM_TRY_UNWRAP(auto cloneInfo,auto tryResult885 = (GetStructuredCloneReadInfoFromStatement(
aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if (
(__builtin_expect(!!(tryResult885.isErr()), 0))) { mozilla::dom
::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)"
, tryResult885.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6387, mozilla::dom::quota::Severity::Error); return tryResult885
.propagateErr(); } auto cloneInfo = tryResult885.unwrap();
6386 GetStructuredCloneReadInfoFromStatement(auto tryResult885 = (GetStructuredCloneReadInfoFromStatement(
aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if (
(__builtin_expect(!!(tryResult885.isErr()), 0))) { mozilla::dom
::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)"
, tryResult885.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6387, mozilla::dom::quota::Severity::Error); return tryResult885
.propagateErr(); } auto cloneInfo = tryResult885.unwrap();
6387 aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager))auto tryResult885 = (GetStructuredCloneReadInfoFromStatement(
aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if (
(__builtin_expect(!!(tryResult885.isErr()), 0))) { mozilla::dom
::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)"
, tryResult885.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6387, mozilla::dom::quota::Severity::Error); return tryResult885
.propagateErr(); } auto cloneInfo = tryResult885.unwrap();
;
6388
6389 mCloneInfo.init(std::move(cloneInfo));
6390
6391 if (mCloneInfo->HasPreprocessInfo()) {
6392 IDB_WARNING("Preprocessing for cursors not yet implemented!")do { nsPrintfCString s("Preprocessing for cursors not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6392, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6392); } while (0)
;
6393 return NS_ERROR_NOT_IMPLEMENTED;
6394 }
6395
6396 return NS_OK;
6397 }
6398
6399 template <typename Response>
6400 void MaybeFillCloneInfo(Response& aResponse, FilesArray* const aFiles) {
6401 auto cloneInfo = mCloneInfo.release();
6402 aResponse.cloneInfo().data().data = cloneInfo.ReleaseData();
6403 aFiles->AppendElement(cloneInfo.ReleaseFiles());
6404 }
6405
6406 template <typename Response>
6407 static size_t MaybeGetCloneInfoSize(const Response& aResponse) {
6408 return aResponse.cloneInfo().data().data.Size();
6409 }
6410
6411 private:
6412 LazyInitializedOnceEarlyDestructible<const StructuredCloneReadInfoParent>
6413 mCloneInfo;
6414};
6415
6416template <>
6417struct PopulateResponseHelper<IDBCursorType::ObjectStore>
6418 : ValuePopulateResponseHelper<false>, CommonPopulateResponseHelper {
6419 using CommonPopulateResponseHelper::CommonPopulateResponseHelper;
6420
6421 static auto& GetTypedResponse(CursorResponse* const aResponse) {
6422 return aResponse->get_ArrayOfObjectStoreCursorResponse();
6423 }
6424};
6425
6426template <>
6427struct PopulateResponseHelper<IDBCursorType::ObjectStoreKey>
6428 : KeyPopulateResponseHelper, CommonPopulateResponseHelper {
6429 using CommonPopulateResponseHelper::CommonPopulateResponseHelper;
6430
6431 static auto& GetTypedResponse(CursorResponse* const aResponse) {
6432 return aResponse->get_ArrayOfObjectStoreKeyCursorResponse();
6433 }
6434};
6435
6436template <>
6437struct PopulateResponseHelper<IDBCursorType::Index>
6438 : ValuePopulateResponseHelper<true>, IndexPopulateResponseHelper {
6439 using IndexPopulateResponseHelper::IndexPopulateResponseHelper;
6440
6441 static auto& GetTypedResponse(CursorResponse* const aResponse) {
6442 return aResponse->get_ArrayOfIndexCursorResponse();
6443 }
6444};
6445
6446template <>
6447struct PopulateResponseHelper<IDBCursorType::IndexKey>
6448 : KeyPopulateResponseHelper, IndexPopulateResponseHelper {
6449 using IndexPopulateResponseHelper::IndexPopulateResponseHelper;
6450
6451 static auto& GetTypedResponse(CursorResponse* const aResponse) {
6452 return aResponse->get_ArrayOfIndexKeyCursorResponse();
6453 }
6454};
6455
6456nsresult DispatchAndReturnFileReferences(
6457 PersistenceType aPersistenceType, const nsACString& aOrigin,
6458 const nsAString& aDatabaseName, const int64_t aFileId,
6459 int32_t* const aMemRefCnt, int32_t* const aDBRefCnt, bool* const aResult) {
6460 AssertIsOnBackgroundThread();
6461 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6461); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMemRefCnt"
")"); do { *((volatile int*)__null) = 6461; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6462 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6462); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDBRefCnt" ")"
); do { *((volatile int*)__null) = 6462; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6463 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6463); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResult" ")"
); do { *((volatile int*)__null) = 6463; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6464
6465 *aResult = false;
6466 *aMemRefCnt = -1;
6467 *aDBRefCnt = -1;
6468
6469 mozilla::Monitor monitor MOZ_ANNOTATED(__func__);
6470 bool waiting = true;
6471
6472 auto lambda = [&] {
6473 AssertIsOnIOThread();
6474
6475 {
6476 IndexedDatabaseManager* const mgr = IndexedDatabaseManager::Get();
6477 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6477); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mgr" ")"); do
{ *((volatile int*)__null) = 6477; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
6478
6479 const SafeRefPtr<DatabaseFileManager> fileManager =
6480 mgr->GetFileManager(aPersistenceType, aOrigin, aDatabaseName);
6481
6482 if (fileManager) {
6483 const SafeRefPtr<DatabaseFileInfo> fileInfo =
6484 fileManager->GetFileInfo(aFileId);
6485
6486 if (fileInfo) {
6487 fileInfo->GetReferences(aMemRefCnt, aDBRefCnt);
6488
6489 if (*aMemRefCnt != -1) {
6490 // We added an extra temp ref, so account for that accordingly.
6491 (*aMemRefCnt)--;
6492 }
6493
6494 *aResult = true;
6495 }
6496 }
6497 }
6498
6499 mozilla::MonitorAutoLock lock(monitor);
6500 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6500); AnnotateMozCrashReason("MOZ_ASSERT" "(" "waiting" ")"
); do { *((volatile int*)__null) = 6500; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6501
6502 waiting = false;
6503 lock.Notify();
6504 };
6505
6506 QuotaManager* const quotaManager = QuotaManager::Get();
6507 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6507); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 6507; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6508
6509 // XXX can't we simply use NS_DispatchAndSpinEventLoopUntilComplete instead of
6510 // using a monitor?
6511 QM_TRY(MOZ_TO_RESULT(quotaManager->IOThread()->Dispatch({auto tryResult886 = (ToResult(quotaManager->IOThread()->
Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move
(lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert(
std::is_empty_v<typename decltype(tryResult886)::ok_type>
); if ((__builtin_expect(!!(tryResult886.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult886.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6513, mozilla::dom::quota::Severity::Error); return tryResult886
.propagateErr(); }}
6512 NS_NewRunnableFunction("GetFileReferences", std::move(lambda)),{auto tryResult886 = (ToResult(quotaManager->IOThread()->
Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move
(lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert(
std::is_empty_v<typename decltype(tryResult886)::ok_type>
); if ((__builtin_expect(!!(tryResult886.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult886.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6513, mozilla::dom::quota::Severity::Error); return tryResult886
.propagateErr(); }}
6513 NS_DISPATCH_NORMAL))){auto tryResult886 = (ToResult(quotaManager->IOThread()->
Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move
(lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert(
std::is_empty_v<typename decltype(tryResult886)::ok_type>
); if ((__builtin_expect(!!(tryResult886.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult886.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6513, mozilla::dom::quota::Severity::Error); return tryResult886
.propagateErr(); }}
;
6514
6515 mozilla::MonitorAutoLock autolock(monitor);
6516 while (waiting) {
6517 autolock.Wait();
6518 }
6519
6520 return NS_OK;
6521}
6522
6523class DeserializeIndexValueHelper final : public Runnable {
6524 public:
6525 DeserializeIndexValueHelper(int64_t aIndexID, const KeyPath& aKeyPath,
6526 bool aMultiEntry, const nsACString& aLocale,
6527 StructuredCloneReadInfoParent& aCloneReadInfo,
6528 nsTArray<IndexUpdateInfo>& aUpdateInfoArray)
6529 : Runnable("DeserializeIndexValueHelper"),
6530 mMonitor("DeserializeIndexValueHelper::mMonitor"),
6531 mIndexID(aIndexID),
6532 mKeyPath(aKeyPath),
6533 mMultiEntry(aMultiEntry),
6534 mLocale(aLocale),
6535 mCloneReadInfo(aCloneReadInfo),
6536 mUpdateInfoArray(aUpdateInfoArray),
6537 mStatus(NS_ERROR_FAILURE) {}
6538
6539 nsresult DispatchAndWait() {
6540 // FIXME(Bug 1637530) Re-enable optimization using a non-system-principaled
6541 // JS context
6542#if 0
6543 // We don't need to go to the main-thread and use the sandbox. Let's create
6544 // the updateInfo data here.
6545 if (!mCloneReadInfo.Data().Size()) {
6546 AutoJSAPI jsapi;
6547 jsapi.Init();
6548
6549 JS::Rooted<JS::Value> value(jsapi.cx());
6550 value.setUndefined();
6551
6552 ErrorResult rv;
6553 IDBObjectStore::AppendIndexUpdateInfo(
6554 mIndexID, mKeyPath, mMultiEntry, &mUpdateInfoArray,
6555 /* aAutoIncrementedObjectStoreKeyPath */ VoidString(), &rv);
6556 return rv.Failed() ? rv.StealNSResult() : NS_OK;
6557 }
6558#endif
6559
6560 // The operation will continue on the main-thread.
6561
6562 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6562); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(mCloneReadInfo.Data().Size() % sizeof(uint64_t))"
")"); do { *((volatile int*)__null) = 6562; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6563
6564 MonitorAutoLock lock(mMonitor);
6565
6566 RefPtr<Runnable> self = this;
6567 QM_TRY(MOZ_TO_RESULT(SchedulerGroup::Dispatch(self.forget()))){auto tryResult887 = (ToResult(SchedulerGroup::Dispatch(self.
forget()))); static_assert(std::is_empty_v<typename decltype
(tryResult887)::ok_type>); if ((__builtin_expect(!!(tryResult887
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SchedulerGroup::Dispatch(self.forget()))"
, tryResult887.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6567, mozilla::dom::quota::Severity::Error); return tryResult887
.propagateErr(); }}
;
6568
6569 lock.Wait();
6570 return mStatus;
6571 }
6572
6573 NS_IMETHODvirtual nsresult
6574 Run() override {
6575 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6575); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 6575; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6576
6577 AutoJSAPI jsapi;
6578 jsapi.Init();
6579 JSContext* const cx = jsapi.cx();
6580
6581 JS::Rooted<JSObject*> global(cx, GetSandbox(cx));
6582
6583 QM_TRY(OkIf(global), NS_OK,{auto tryResult888 = (OkIf(global)); 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(global)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6584, mozilla::dom::quota::Severity::Error); [this](const NotOk
) { OperationCompleted(NS_ERROR_FAILURE); }(tryTempError); constexpr
const auto& func __attribute__((__unused__)) = __func__;
return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(global)"
, tryTempError, NS_OK); }}
6584 [this](const NotOk) { OperationCompleted(NS_ERROR_FAILURE); }){auto tryResult888 = (OkIf(global)); 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(global)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6584, mozilla::dom::quota::Severity::Error); [this](const NotOk
) { OperationCompleted(NS_ERROR_FAILURE); }(tryTempError); constexpr
const auto& func __attribute__((__unused__)) = __func__;
return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(global)"
, tryTempError, NS_OK); }}
;
6585
6586 const JSAutoRealm ar(cx, global);
6587
6588 JS::Rooted<JS::Value> value(cx);
6589 QM_TRY(MOZ_TO_RESULT(DeserializeIndexValue(cx, &value)), NS_OK,{auto tryResult889 = (ToResult(DeserializeIndexValue(cx, &
value))); static_assert(std::is_empty_v<typename decltype(
tryResult889)::ok_type>); if ((__builtin_expect(!!(tryResult889
.isErr()), 0))) { auto tryTempError = tryResult889.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(DeserializeIndexValue(cx, &value))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6590, mozilla::dom::quota::Severity::Error); [this](const nsresult
rv) { OperationCompleted(rv); }(tryTempError); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeserializeIndexValue(cx, &value))"
, tryTempError, NS_OK); }}
6590 [this](const nsresult rv) { OperationCompleted(rv); }){auto tryResult889 = (ToResult(DeserializeIndexValue(cx, &
value))); static_assert(std::is_empty_v<typename decltype(
tryResult889)::ok_type>); if ((__builtin_expect(!!(tryResult889
.isErr()), 0))) { auto tryTempError = tryResult889.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(DeserializeIndexValue(cx, &value))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6590, mozilla::dom::quota::Severity::Error); [this](const nsresult
rv) { OperationCompleted(rv); }(tryTempError); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeserializeIndexValue(cx, &value))"
, tryTempError, NS_OK); }}
;
6591
6592 ErrorResult errorResult;
6593 IDBObjectStore::AppendIndexUpdateInfo(
6594 mIndexID, mKeyPath, mMultiEntry, mLocale, cx, value, &mUpdateInfoArray,
6595 /* aAutoIncrementedObjectStoreKeyPath */ VoidString(), &errorResult);
6596 QM_TRY(OkIf(!errorResult.Failed()), NS_OK,{auto tryResult890 = (OkIf(!errorResult.Failed())); static_assert
(std::is_empty_v<typename decltype(tryResult890)::ok_type>
); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { auto
tryTempError = tryResult890.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6599, mozilla::dom::quota::Severity::Error); ([this, &errorResult
](const NotOk) { OperationCompleted(errorResult.StealNSResult
()); })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); }
}
6597 ([this, &errorResult](const NotOk) {{auto tryResult890 = (OkIf(!errorResult.Failed())); static_assert
(std::is_empty_v<typename decltype(tryResult890)::ok_type>
); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { auto
tryTempError = tryResult890.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6599, mozilla::dom::quota::Severity::Error); ([this, &errorResult
](const NotOk) { OperationCompleted(errorResult.StealNSResult
()); })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); }
}
6598 OperationCompleted(errorResult.StealNSResult());{auto tryResult890 = (OkIf(!errorResult.Failed())); static_assert
(std::is_empty_v<typename decltype(tryResult890)::ok_type>
); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { auto
tryTempError = tryResult890.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6599, mozilla::dom::quota::Severity::Error); ([this, &errorResult
](const NotOk) { OperationCompleted(errorResult.StealNSResult
()); })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); }
}
6599 })){auto tryResult890 = (OkIf(!errorResult.Failed())); static_assert
(std::is_empty_v<typename decltype(tryResult890)::ok_type>
); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { auto
tryTempError = tryResult890.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6599, mozilla::dom::quota::Severity::Error); ([this, &errorResult
](const NotOk) { OperationCompleted(errorResult.StealNSResult
()); })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); }
}
;
6600
6601 OperationCompleted(NS_OK);
6602 return NS_OK;
6603 }
6604
6605 private:
6606 nsresult DeserializeIndexValue(JSContext* aCx,
6607 JS::MutableHandle<JS::Value> aValue) {
6608 static const JSStructuredCloneCallbacks callbacks = {
6609 StructuredCloneReadCallback<StructuredCloneReadInfoParent>,
6610 nullptr,
6611 nullptr,
6612 nullptr,
6613 nullptr,
6614 nullptr,
6615 nullptr,
6616 nullptr};
6617
6618 if (!JS_ReadStructuredClone(
6619 aCx, mCloneReadInfo.Data(), JS_STRUCTURED_CLONE_VERSION8,
6620 JS::StructuredCloneScope::DifferentProcessForIndexedDB, aValue,
6621 JS::CloneDataPolicy(), &callbacks, &mCloneReadInfo)) {
6622 return NS_ERROR_DOM_DATA_CLONE_ERR;
6623 }
6624
6625 return NS_OK;
6626 }
6627
6628 void OperationCompleted(nsresult aStatus) {
6629 mStatus = aStatus;
6630
6631 MonitorAutoLock lock(mMonitor);
6632 lock.Notify();
6633 }
6634
6635 Monitor mMonitor MOZ_UNANNOTATED;
6636
6637 const int64_t mIndexID;
6638 const KeyPath& mKeyPath;
6639 const bool mMultiEntry;
6640 const nsCString mLocale;
6641 StructuredCloneReadInfoParent& mCloneReadInfo;
6642 nsTArray<IndexUpdateInfo>& mUpdateInfoArray;
6643 nsresult mStatus;
6644};
6645
6646auto DeserializeIndexValueToUpdateInfos(
6647 int64_t aIndexID, const KeyPath& aKeyPath, bool aMultiEntry,
6648 const nsACString& aLocale, StructuredCloneReadInfoParent& aCloneReadInfo) {
6649 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6649); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 6649; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6650
6651 using ArrayType = AutoTArray<IndexUpdateInfo, 32>;
6652 using ResultType = Result<ArrayType, nsresult>;
6653
6654 ArrayType updateInfoArray;
6655 const auto helper = MakeRefPtr<DeserializeIndexValueHelper>(
6656 aIndexID, aKeyPath, aMultiEntry, aLocale, aCloneReadInfo,
6657 updateInfoArray);
6658 const nsresult rv = helper->DispatchAndWait();
6659 return NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0))) ? Err(rv) : ResultType{std::move(updateInfoArray)};
6660}
6661
6662bool IsSome(
6663 const Maybe<CachingDatabaseConnection::BorrowedStatement>& aMaybeStmt) {
6664 return aMaybeStmt.isSome();
6665}
6666
6667already_AddRefed<nsIThreadPool> MakeConnectionIOTarget() {
6668 nsCOMPtr<nsIThreadPool> threadPool = new nsThreadPool();
6669
6670 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6670); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetThreadLimit(kMaxConnectionThreadCount))"
")"); do { *((volatile int*)__null) = 6670; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6671
6672 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6673); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))"
")"); do { *((volatile int*)__null) = 6673; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
6673 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6673); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))"
")"); do { *((volatile int*)__null) = 6673; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6674
6675 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6676); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))"
")"); do { *((volatile int*)__null) = 6676; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
6676 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6676); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))"
")"); do { *((volatile int*)__null) = 6676; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6677
6678 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6679); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))"
")"); do { *((volatile int*)__null) = 6679; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
6679 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6679); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))"
")"); do { *((volatile int*)__null) = 6679; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6680
6681 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6681); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB IO\"_ns))"
")"); do { *((volatile int*)__null) = 6681; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6682
6683 return threadPool.forget();
6684}
6685
6686} // namespace
6687
6688/*******************************************************************************
6689 * Exported functions
6690 ******************************************************************************/
6691
6692already_AddRefed<PBackgroundIDBFactoryParent> AllocPBackgroundIDBFactoryParent(
6693 const LoggingInfo& aLoggingInfo, const nsACString& aSystemLocale) {
6694 AssertIsOnBackgroundThread();
6695
6696 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6696)
) {
6697 return nullptr;
6698 }
6699
6700 if (NS_AUUF_OR_WARN_IF(!aLoggingInfo.nextTransactionSerialNumber())[](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()" ")"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6700); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aLoggingInfo.nextTransactionSerialNumber()" ")"); do { *((
volatile int*)__null) = 6700; __attribute__((nomerge)) ::abort
(); } while (false); } } while (false); } return aCond; }((!aLoggingInfo
.nextTransactionSerialNumber()))
||
6701 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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6702); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aLoggingInfo.nextVersionChangeTransactionSerialNumber()" ")"
); do { *((volatile int*)__null) = 6702; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((!aLoggingInfo.nextVersionChangeTransactionSerialNumber()
))
6702 !aLoggingInfo.nextVersionChangeTransactionSerialNumber())[](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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6702); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aLoggingInfo.nextVersionChangeTransactionSerialNumber()" ")"
); do { *((volatile int*)__null) = 6702; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((!aLoggingInfo.nextVersionChangeTransactionSerialNumber()
))
||
6703 NS_AUUF_OR_WARN_IF(!aLoggingInfo.nextRequestSerialNumber())[](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.nextRequestSerialNumber()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aLoggingInfo.nextRequestSerialNumber()" ")"); do { *((volatile
int*)__null) = 6703; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((!aLoggingInfo
.nextRequestSerialNumber()))
) {
6704 return nullptr;
6705 }
6706
6707 SafeRefPtr<Factory> actor = Factory::Create(aLoggingInfo, aSystemLocale);
6708 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6708); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")")
; do { *((volatile int*)__null) = 6708; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6709
6710 return actor.forget();
6711}
6712
6713bool RecvPBackgroundIDBFactoryConstructor(
6714 PBackgroundIDBFactoryParent* aActor, const LoggingInfo& /* aLoggingInfo */,
6715 const nsACString& /* aSystemLocale */) {
6716 AssertIsOnBackgroundThread();
6717 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6717); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 6717; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6718 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6718); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 6718; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6719
6720 return true;
6721}
6722
6723PBackgroundIndexedDBUtilsParent* AllocPBackgroundIndexedDBUtilsParent() {
6724 AssertIsOnBackgroundThread();
6725
6726 RefPtr<Utils> actor = new Utils();
6727
6728 return actor.forget().take();
6729}
6730
6731bool DeallocPBackgroundIndexedDBUtilsParent(
6732 PBackgroundIndexedDBUtilsParent* aActor) {
6733 AssertIsOnBackgroundThread();
6734 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6734); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 6734; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6735
6736 RefPtr<Utils> actor = dont_AddRef(static_cast<Utils*>(aActor));
6737 return true;
6738}
6739
6740bool RecvFlushPendingFileDeletions() {
6741 AssertIsOnBackgroundThread();
6742
6743 if (QuotaClient* quotaClient = QuotaClient::GetInstance()) {
6744 QM_WARNONLY_TRY(QM_TO_RESULT(quotaClient->FlushPendingFileDeletions())){auto tryResult891 = (ToResult<QMResult>(quotaClient->
FlushPendingFileDeletions())); static_assert(std::is_empty_v<
typename decltype(tryResult891)::ok_type>); if ((__builtin_expect
(!!(tryResult891.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(quotaClient->FlushPendingFileDeletions())"
, tryResult891.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6744, mozilla::dom::quota::Severity::Warning); }}
;
6745 }
6746
6747 return true;
6748}
6749
6750RefPtr<mozilla::dom::quota::Client> CreateQuotaClient() {
6751 AssertIsOnBackgroundThread();
6752
6753 return MakeRefPtr<QuotaClient>();
6754}
6755
6756nsresult DatabaseFileManager::AsyncDeleteFile(int64_t aFileId) {
6757 AssertIsOnBackgroundThread();
6758 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6758); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!ContainsFileInfo(aFileId)"
")"); do { *((volatile int*)__null) = 6758; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6759
6760 QuotaClient* quotaClient = QuotaClient::GetInstance();
6761 if (quotaClient) {
6762 QM_TRY(MOZ_TO_RESULT(quotaClient->AsyncDeleteFile(this, aFileId))){auto tryResult892 = (ToResult(quotaClient->AsyncDeleteFile
(this, aFileId))); static_assert(std::is_empty_v<typename decltype
(tryResult892)::ok_type>); if ((__builtin_expect(!!(tryResult892
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaClient->AsyncDeleteFile(this, aFileId))"
, tryResult892.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6762, mozilla::dom::quota::Severity::Error); return tryResult892
.propagateErr(); }}
;
6763 }
6764
6765 return NS_OK;
6766}
6767
6768/*******************************************************************************
6769 * DatabaseConnection implementation
6770 ******************************************************************************/
6771
6772DatabaseConnection::DatabaseConnection(
6773 MovingNotNull<nsCOMPtr<mozIStorageConnection>> aStorageConnection,
6774 MovingNotNull<SafeRefPtr<DatabaseFileManager>> aFileManager)
6775 : CachingDatabaseConnection(std::move(aStorageConnection)),
6776 mFileManager(std::move(aFileManager)),
6777 mLastDurability(IDBTransaction::Durability::Default),
6778 mInReadTransaction(false),
6779 mInWriteTransaction(false)
6780#ifdef DEBUG1
6781 ,
6782 mDEBUGSavepointCount(0)
6783#endif
6784{
6785 AssertIsOnConnectionThread();
6786 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6786); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { *((volatile int*)__null) = 6786; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6787}
6788
6789DatabaseConnection::~DatabaseConnection() {
6790 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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6790); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileManager"
")"); do { *((volatile int*)__null) = 6790; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6791 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6791); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUpdateRefcountFunction"
")"); do { *((volatile int*)__null) = 6791; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6792 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6792); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!mInWriteTransaction"
")"); do { *((volatile int*)__null) = 6792; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6793 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6793); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGSavepointCount"
")"); do { *((volatile int*)__null) = 6793; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6794}
6795
6796nsresult DatabaseConnection::Init() {
6797 AssertIsOnConnectionThread();
6798 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { *((volatile int*)__null) = 6798; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6799 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6799); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { *((volatile int*)__null) = 6799; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6800
6801 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("BEGIN;"_ns))){auto tryResult893 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult893
)::ok_type>); if ((__builtin_expect(!!(tryResult893.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns))"
, tryResult893.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6801, mozilla::dom::quota::Severity::Error); return tryResult893
.propagateErr(); }}
;
6802
6803 mInReadTransaction = true;
6804
6805 return NS_OK;
6806}
6807
6808nsresult DatabaseConnection::BeginWriteTransaction(
6809 const IDBTransaction::Durability aDurability) {
6810 AssertIsOnConnectionThread();
6811 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6811); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { *((volatile int*)__null) = 6811; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6812 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInReadTransaction"
")"); do { *((volatile int*)__null) = 6812; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6813 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6813); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { *((volatile int*)__null) = 6813; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6814
6815 AUTO_PROFILER_LABEL("DatabaseConnection::BeginWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6815( "DatabaseConnection::BeginWriteTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6816
6817 // Release our read locks.
6818 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("ROLLBACK;"_ns))){auto tryResult894 = (ToResult(ExecuteCachedStatement("ROLLBACK;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult894
)::ok_type>); if ((__builtin_expect(!!(tryResult894.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"ROLLBACK;\"_ns))"
, tryResult894.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6818, mozilla::dom::quota::Severity::Error); return tryResult894
.propagateErr(); }}
;
6819
6820 mInReadTransaction = false;
6821
6822 if (mLastDurability != aDurability) {
6823 auto synchronousMode = [aDurability]() -> nsLiteralCString {
6824 switch (aDurability) {
6825 case IDBTransaction::Durability::Default:
6826 return GetDefaultSynchronousMode();
6827
6828 case IDBTransaction::Durability::Strict:
6829 return "EXTRA"_ns;
6830
6831 case IDBTransaction::Durability::Relaxed:
6832 return "OFF"_ns;
6833
6834 default:
6835 MOZ_CRASH("Unknown CheckpointMode!")do { do { } while (false); MOZ_ReportCrash("" "Unknown CheckpointMode!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6835); AnnotateMozCrashReason("MOZ_CRASH(" "Unknown CheckpointMode!"
")"); do { *((volatile int*)__null) = 6835; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
6836 }
6837 }();
6838
6839 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("PRAGMA synchronous = "_ns +{auto tryResult895 = (ToResult(ExecuteCachedStatement("PRAGMA synchronous = "_ns
+ synchronousMode + ";"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult895)::ok_type>); if ((__builtin_expect
(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ExecuteCachedStatement(\"PRAGMA synchronous = \"_ns + synchronousMode + \";\"_ns))"
, tryResult895.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6840, mozilla::dom::quota::Severity::Error); return tryResult895
.propagateErr(); }}
6840 synchronousMode + ";"_ns))){auto tryResult895 = (ToResult(ExecuteCachedStatement("PRAGMA synchronous = "_ns
+ synchronousMode + ";"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult895)::ok_type>); if ((__builtin_expect
(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ExecuteCachedStatement(\"PRAGMA synchronous = \"_ns + synchronousMode + \";\"_ns))"
, tryResult895.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6840, mozilla::dom::quota::Severity::Error); return tryResult895
.propagateErr(); }}
;
6841
6842 mLastDurability = aDurability;
6843 }
6844
6845 if (!mUpdateRefcountFunction) {
6846 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6846); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { *((volatile int*)__null) = 6846; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6847
6848 RefPtr<UpdateRefcountFunction> function =
6849 new UpdateRefcountFunction(this, **mFileManager);
6850
6851 QM_TRY(MOZ_TO_RESULT(MutableStorageConnection().CreateFunction({auto tryResult896 = (ToResult(MutableStorageConnection().CreateFunction
( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v
<typename decltype(tryResult896)::ok_type>); if ((__builtin_expect
(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))"
, tryResult896.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6853, mozilla::dom::quota::Severity::Error); return tryResult896
.propagateErr(); }}
6852 "update_refcount"_ns,{auto tryResult896 = (ToResult(MutableStorageConnection().CreateFunction
( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v
<typename decltype(tryResult896)::ok_type>); if ((__builtin_expect
(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))"
, tryResult896.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6853, mozilla::dom::quota::Severity::Error); return tryResult896
.propagateErr(); }}
6853 /* aNumArguments */ 2, function))){auto tryResult896 = (ToResult(MutableStorageConnection().CreateFunction
( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v
<typename decltype(tryResult896)::ok_type>); if ((__builtin_expect
(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))"
, tryResult896.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6853, mozilla::dom::quota::Severity::Error); return tryResult896
.propagateErr(); }}
;
6854
6855 mUpdateRefcountFunction = std::move(function);
6856 }
6857
6858 // This one cannot obviously use ExecuteCachedStatement because of the custom
6859 // error handling for Execute only. If only Execute can produce
6860 // NS_ERROR_STORAGE_BUSY, we could actually use ExecuteCachedStatement and
6861 // simplify this.
6862 QM_TRY_INSPECT(const auto& beginStmt,auto tryResult897 = (BorrowCachedStatement("BEGIN IMMEDIATE;"_ns
)); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"BEGIN IMMEDIATE;\"_ns)"
, tryResult897.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6863, mozilla::dom::quota::Severity::Error); return tryResult897
.propagateErr(); } const auto& beginStmt = tryResult897.inspect
();
6863 BorrowCachedStatement("BEGIN IMMEDIATE;"_ns))auto tryResult897 = (BorrowCachedStatement("BEGIN IMMEDIATE;"_ns
)); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"BEGIN IMMEDIATE;\"_ns)"
, tryResult897.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6863, mozilla::dom::quota::Severity::Error); return tryResult897
.propagateErr(); } const auto& beginStmt = tryResult897.inspect
();
;
6864
6865 QM_TRY(QM_OR_ELSE_WARN_IF({auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6866 // Expression.{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6867 MOZ_TO_RESULT(beginStmt->Execute()),{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6868 // Predicate.{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6869 IsSpecificError<NS_ERROR_STORAGE_BUSY>,{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6870 // Fallback.{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6871 ([&beginStmt](nsresult rv) {{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6872 NS_WARNING({auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6873 "Received NS_ERROR_STORAGE_BUSY when attempting to start write "{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6874 "transaction, retrying for up to 10 seconds");{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6875
6876 // Another thread must be using the database. Wait up to 10 seconds{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6877 // for that to complete.{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6878 const TimeStamp start = TimeStamp::NowLoRes();{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6879
6880 while (true) {{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6881 PR_Sleep(PR_MillisecondsToInterval(100));{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6882
6883 rv = beginStmt->Execute();{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6884 if (rv != NS_ERROR_STORAGE_BUSY ||{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6885 TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) {{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6886 break;{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6887 }{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6888 }{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6889
6890 return MOZ_TO_RESULT(rv);{auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6891 }))){auto tryResult898 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, 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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6874); 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(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6891, 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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6874); 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); }))"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6891, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
;
6892
6893 mInWriteTransaction = true;
6894
6895 return NS_OK;
6896}
6897
6898nsresult DatabaseConnection::CommitWriteTransaction() {
6899 AssertIsOnConnectionThread();
6900 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6900); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { *((volatile int*)__null) = 6900; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6901 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6901); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { *((volatile int*)__null) = 6901; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6902 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6902); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { *((volatile int*)__null) = 6902; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6903
6904 AUTO_PROFILER_LABEL("DatabaseConnection::CommitWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6904( "DatabaseConnection::CommitWriteTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6905
6906 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("COMMIT;"_ns))){auto tryResult899 = (ToResult(ExecuteCachedStatement("COMMIT;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult899
)::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"COMMIT;\"_ns))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6906, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
;
6907
6908 mInWriteTransaction = false;
6909 return NS_OK;
6910}
6911
6912void DatabaseConnection::RollbackWriteTransaction() {
6913 AssertIsOnConnectionThread();
6914 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6914); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { *((volatile int*)__null) = 6914; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6915 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6915); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "HasStorageConnection()"
")"); do { *((volatile int*)__null) = 6915; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6916
6917 AUTO_PROFILER_LABEL("DatabaseConnection::RollbackWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6917( "DatabaseConnection::RollbackWriteTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6918
6919 if (!mInWriteTransaction) {
6920 return;
6921 }
6922
6923 QM_WARNONLY_TRY({auto tryResult900 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult900)::ok_type>
); if ((__builtin_expect(!!(tryResult900.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult900.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6937, mozilla::dom::quota::Severity::Warning); }}
6924 BorrowCachedStatement("ROLLBACK;"_ns){auto tryResult900 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult900)::ok_type>
); if ((__builtin_expect(!!(tryResult900.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult900.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6937, mozilla::dom::quota::Severity::Warning); }}
6925 .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> {{auto tryResult900 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult900)::ok_type>
); if ((__builtin_expect(!!(tryResult900.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult900.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6937, mozilla::dom::quota::Severity::Warning); }}
6926 // This may fail if SQLite already rolled back the transaction{auto tryResult900 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult900)::ok_type>
); if ((__builtin_expect(!!(tryResult900.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult900.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6937, mozilla::dom::quota::Severity::Warning); }}
6927 // so ignore any errors.{auto tryResult900 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult900)::ok_type>
); if ((__builtin_expect(!!(tryResult900.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult900.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6937, mozilla::dom::quota::Severity::Warning); }}
6928
6929 // XXX ROLLBACK can fail quite normmally if a previous statement{auto tryResult900 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult900)::ok_type>
); if ((__builtin_expect(!!(tryResult900.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult900.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6937, mozilla::dom::quota::Severity::Warning); }}
6930 // failed to execute successfully so SQLite rolled back the{auto tryResult900 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult900)::ok_type>
); if ((__builtin_expect(!!(tryResult900.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult900.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6937, mozilla::dom::quota::Severity::Warning); }}
6931 // transaction already. However, if it failed because of some other{auto tryResult900 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult900)::ok_type>
); if ((__builtin_expect(!!(tryResult900.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult900.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6937, mozilla::dom::quota::Severity::Warning); }}
6932 // reason, we could try to close the connection.{auto tryResult900 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult900)::ok_type>
); if ((__builtin_expect(!!(tryResult900.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult900.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6937, mozilla::dom::quota::Severity::Warning); }}
6933 Unused << stmt->Execute();{auto tryResult900 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult900)::ok_type>
); if ((__builtin_expect(!!(tryResult900.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult900.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6937, mozilla::dom::quota::Severity::Warning); }}
6934
6935 self.mInWriteTransaction = false;{auto tryResult900 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult900)::ok_type>
); if ((__builtin_expect(!!(tryResult900.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult900.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6937, mozilla::dom::quota::Severity::Warning); }}
6936 return Ok{};{auto tryResult900 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult900)::ok_type>
); if ((__builtin_expect(!!(tryResult900.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult900.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6937, mozilla::dom::quota::Severity::Warning); }}
6937 })){auto tryResult900 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult900)::ok_type>
); if ((__builtin_expect(!!(tryResult900.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult900.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6937, mozilla::dom::quota::Severity::Warning); }}
;
6938}
6939
6940void DatabaseConnection::FinishWriteTransaction() {
6941 AssertIsOnConnectionThread();
6942 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6942); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { *((volatile int*)__null) = 6942; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6943 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6943); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { *((volatile int*)__null) = 6943; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6944 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6944); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { *((volatile int*)__null) = 6944; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6945
6946 AUTO_PROFILER_LABEL("DatabaseConnection::FinishWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6946( "DatabaseConnection::FinishWriteTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6947
6948 if (mUpdateRefcountFunction) {
6949 mUpdateRefcountFunction->Reset();
6950 }
6951
6952 QM_WARNONLY_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("BEGIN;"_ns)){auto tryResult901 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult901)::ok_type>
); if ((__builtin_expect(!!(tryResult901.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult901.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6956, mozilla::dom::quota::Severity::Warning); }}
6953 .andThen([&](const auto) -> Result<Ok, nsresult> {{auto tryResult901 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult901)::ok_type>
); if ((__builtin_expect(!!(tryResult901.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult901.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6956, mozilla::dom::quota::Severity::Warning); }}
6954 mInReadTransaction = true;{auto tryResult901 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult901)::ok_type>
); if ((__builtin_expect(!!(tryResult901.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult901.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6956, mozilla::dom::quota::Severity::Warning); }}
6955 return Ok{};{auto tryResult901 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult901)::ok_type>
); if ((__builtin_expect(!!(tryResult901.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult901.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6956, mozilla::dom::quota::Severity::Warning); }}
6956 })){auto tryResult901 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult901)::ok_type>
); if ((__builtin_expect(!!(tryResult901.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult901.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6956, mozilla::dom::quota::Severity::Warning); }}
;
6957}
6958
6959nsresult DatabaseConnection::StartSavepoint() {
6960 AssertIsOnConnectionThread();
6961 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { *((volatile int*)__null) = 6961; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6962 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6962); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction"
")"); do { *((volatile int*)__null) = 6962; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6963 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6963); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { *((volatile int*)__null) = 6963; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6964
6965 AUTO_PROFILER_LABEL("DatabaseConnection::StartSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject6965( "DatabaseConnection::StartSavepoint"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6966
6967 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement(SAVEPOINT_CLAUSE))){auto tryResult902 = (ToResult(ExecuteCachedStatement("SAVEPOINT sp;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult902
)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"SAVEPOINT sp;\"_ns))"
, tryResult902.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6967, mozilla::dom::quota::Severity::Error); return tryResult902
.propagateErr(); }}
;
6968
6969 mUpdateRefcountFunction->StartSavepoint();
6970
6971#ifdef DEBUG1
6972 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6972); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount < (4294967295U)"
")"); do { *((volatile int*)__null) = 6972; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6973 mDEBUGSavepointCount++;
6974#endif
6975
6976 return NS_OK;
6977}
6978
6979nsresult DatabaseConnection::ReleaseSavepoint() {
6980 AssertIsOnConnectionThread();
6981 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6981); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { *((volatile int*)__null) = 6981; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6982 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6982); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction"
")"); do { *((volatile int*)__null) = 6982; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6983 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6983); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { *((volatile int*)__null) = 6983; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6984
6985 AUTO_PROFILER_LABEL("DatabaseConnection::ReleaseSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject6985( "DatabaseConnection::ReleaseSavepoint"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6986
6987 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("RELEASE "_ns SAVEPOINT_CLAUSE))){auto tryResult903 = (ToResult(ExecuteCachedStatement("RELEASE "_ns
"SAVEPOINT sp;"_ns))); static_assert(std::is_empty_v<typename
decltype(tryResult903)::ok_type>); if ((__builtin_expect(
!!(tryResult903.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ExecuteCachedStatement(\"RELEASE \"_ns \"SAVEPOINT sp;\"_ns))"
, tryResult903.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6987, mozilla::dom::quota::Severity::Error); return tryResult903
.propagateErr(); }}
;
6988
6989 mUpdateRefcountFunction->ReleaseSavepoint();
6990
6991#ifdef DEBUG1
6992 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount"
")"); do { *((volatile int*)__null) = 6992; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6993 mDEBUGSavepointCount--;
6994#endif
6995
6996 return NS_OK;
6997}
6998
6999nsresult DatabaseConnection::RollbackSavepoint() {
7000 AssertIsOnConnectionThread();
7001 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7001); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { *((volatile int*)__null) = 7001; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7002 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction"
")"); do { *((volatile int*)__null) = 7002; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7003 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7003); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { *((volatile int*)__null) = 7003; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7004
7005 AUTO_PROFILER_LABEL("DatabaseConnection::RollbackSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject7005( "DatabaseConnection::RollbackSavepoint"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7006
7007#ifdef DEBUG1
7008 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7008); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount"
")"); do { *((volatile int*)__null) = 7008; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7009 mDEBUGSavepointCount--;
7010#endif
7011
7012 mUpdateRefcountFunction->RollbackSavepoint();
7013
7014 QM_TRY_INSPECT(const auto& stmt,auto tryResult904 = (BorrowCachedStatement("ROLLBACK TO "_ns "SAVEPOINT sp;"_ns
)); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK TO \"_ns \"SAVEPOINT sp;\"_ns)"
, tryResult904.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7015, mozilla::dom::quota::Severity::Error); return tryResult904
.propagateErr(); } const auto& stmt = tryResult904.inspect
();
7015 BorrowCachedStatement("ROLLBACK TO "_ns SAVEPOINT_CLAUSE))auto tryResult904 = (BorrowCachedStatement("ROLLBACK TO "_ns "SAVEPOINT sp;"_ns
)); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK TO \"_ns \"SAVEPOINT sp;\"_ns)"
, tryResult904.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7015, mozilla::dom::quota::Severity::Error); return tryResult904
.propagateErr(); } const auto& stmt = tryResult904.inspect
();
;
7016
7017 // This may fail if SQLite already rolled back the savepoint so ignore any
7018 // errors.
7019 Unused << stmt->Execute();
7020
7021 return NS_OK;
7022}
7023
7024nsresult DatabaseConnection::CheckpointInternal(CheckpointMode aMode) {
7025 AssertIsOnConnectionThread();
7026 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7026); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { *((volatile int*)__null) = 7026; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7027 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7027); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { *((volatile int*)__null) = 7027; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7028
7029 AUTO_PROFILER_LABEL("DatabaseConnection::CheckpointInternal", DOM)mozilla::AutoProfilerLabel raiiObject7029( "DatabaseConnection::CheckpointInternal"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7030
7031 nsAutoCString stmtString;
7032 stmtString.AssignLiteral("PRAGMA wal_checkpoint(");
7033
7034 switch (aMode) {
7035 case CheckpointMode::Full:
7036 // Ensures that the database is completely checkpointed and flushed to
7037 // disk.
7038 stmtString.AppendLiteral("FULL");
7039 break;
7040
7041 case CheckpointMode::Restart:
7042 // Like Full, but also ensures that the next write will start overwriting
7043 // the existing WAL file rather than letting the WAL file grow.
7044 stmtString.AppendLiteral("RESTART");
7045 break;
7046
7047 case CheckpointMode::Truncate:
7048 // Like Restart but also truncates the existing WAL file.
7049 stmtString.AppendLiteral("TRUNCATE");
7050 break;
7051
7052 default:
7053 MOZ_CRASH("Unknown CheckpointMode!")do { do { } while (false); MOZ_ReportCrash("" "Unknown CheckpointMode!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7053); AnnotateMozCrashReason("MOZ_CRASH(" "Unknown CheckpointMode!"
")"); do { *((volatile int*)__null) = 7053; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
7054 }
7055
7056 stmtString.AppendLiteral(");");
7057
7058 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement(stmtString))){auto tryResult905 = (ToResult(ExecuteCachedStatement(stmtString
))); static_assert(std::is_empty_v<typename decltype(tryResult905
)::ok_type>); if ((__builtin_expect(!!(tryResult905.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(stmtString))"
, tryResult905.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7058, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
;
7059
7060 return NS_OK;
7061}
7062
7063void DatabaseConnection::DoIdleProcessing(bool aNeedsCheckpoint,
7064 const Atomic<bool>& aInterrupted) {
7065 AssertIsOnConnectionThread();
7066 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7066); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInReadTransaction"
")"); do { *((volatile int*)__null) = 7066; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7067 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7067); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { *((volatile int*)__null) = 7067; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7068
7069 AUTO_PROFILER_LABEL("DatabaseConnection::DoIdleProcessing", DOM)mozilla::AutoProfilerLabel raiiObject7069( "DatabaseConnection::DoIdleProcessing"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7070
7071 CachingDatabaseConnection::CachedStatement freelistStmt;
7072 const uint32_t freelistCount = [this, &freelistStmt] {
7073 QM_TRY_RETURN(GetFreelistCount(freelistStmt), 0u){auto tryResult906 = (GetFreelistCount(freelistStmt)); if ((__builtin_expect
(!!(tryResult906.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult906.unwrapErr(); mozilla::dom::quota
::HandleError("GetFreelistCount(freelistStmt)", tryResult906.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7073, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "GetFreelistCount(freelistStmt)"
, tryTempError, 0u); } return tryResult906.unwrap();}
;
7074 }();
7075
7076 CachedStatement rollbackStmt;
7077 CachedStatement beginStmt;
7078 if (aNeedsCheckpoint || freelistCount) {
7079 QM_TRY_UNWRAP(rollbackStmt, GetCachedStatement("ROLLBACK;"_ns), QM_VOID)auto tryResult907 = (GetCachedStatement("ROLLBACK;"_ns)); if (
(__builtin_expect(!!(tryResult907.isErr()), 0))) { auto tryTempError
__attribute__((__unused__)) = tryResult907.unwrapErr(); mozilla
::dom::quota::HandleError("GetCachedStatement(\"ROLLBACK;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7079, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } rollbackStmt = tryResult907.unwrap();
;
7080 QM_TRY_UNWRAP(beginStmt, GetCachedStatement("BEGIN;"_ns), QM_VOID)auto tryResult908 = (GetCachedStatement("BEGIN;"_ns)); if ((__builtin_expect
(!!(tryResult908.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult908.unwrapErr(); mozilla::dom::quota
::HandleError("GetCachedStatement(\"BEGIN;\"_ns)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7080, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } beginStmt = tryResult908.unwrap();
;
7081
7082 // Release the connection's normal transaction. It's possible that it could
7083 // fail, but that isn't a problem here.
7084 Unused << rollbackStmt.Borrow()->Execute();
7085
7086 mInReadTransaction = false;
7087 }
7088
7089 const bool freedSomePages =
7090 freelistCount && [this, &freelistStmt, &rollbackStmt, freelistCount,
7091 aNeedsCheckpoint, &aInterrupted] {
7092 // Warn in case of an error, but do not propagate it. Just indicate we
7093 // didn't free any pages.
7094 QM_TRY_INSPECT(auto tryResult909 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult909.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult909.unwrapErr(); mozilla::dom::quota
::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7098, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, false); } const bool& res = tryResult909.
inspect();
7095 const bool& res,auto tryResult909 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult909.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult909.unwrapErr(); mozilla::dom::quota
::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7098, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, false); } const bool& res = tryResult909.
inspect();
7096 ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount,auto tryResult909 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult909.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult909.unwrapErr(); mozilla::dom::quota
::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7098, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, false); } const bool& res = tryResult909.
inspect();
7097 aNeedsCheckpoint, aInterrupted),auto tryResult909 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult909.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult909.unwrapErr(); mozilla::dom::quota
::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7098, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, false); } const bool& res = tryResult909.
inspect();
7098 false)auto tryResult909 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult909.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult909.unwrapErr(); mozilla::dom::quota
::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7098, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, false); } const bool& res = tryResult909.
inspect();
;
7099
7100 // Make sure we didn't leave a transaction running.
7101 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7101); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { *((volatile int*)__null) = 7101; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7102 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7102); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { *((volatile int*)__null) = 7102; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7103
7104 return res;
7105 }();
7106
7107 // Truncate the WAL if we were asked to or if we managed to free some space.
7108 if (aNeedsCheckpoint || freedSomePages) {
7109 QM_WARNONLY_TRY(QM_TO_RESULT(CheckpointInternal(CheckpointMode::Truncate))){auto tryResult910 = (ToResult<QMResult>(CheckpointInternal
(CheckpointMode::Truncate))); static_assert(std::is_empty_v<
typename decltype(tryResult910)::ok_type>); if ((__builtin_expect
(!!(tryResult910.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(CheckpointInternal(CheckpointMode::Truncate))"
, tryResult910.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7109, mozilla::dom::quota::Severity::Warning); }}
;
7110 }
7111
7112 // Finally try to restart the read transaction if we rolled it back earlier.
7113 if (beginStmt) {
7114 QM_WARNONLY_TRY({auto tryResult911 = (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(tryResult911
)::ok_type>); if ((__builtin_expect(!!(tryResult911.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult911.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7119, mozilla::dom::quota::Severity::Warning); }}
7115 MOZ_TO_RESULT(beginStmt.Borrow()->Execute()){auto tryResult911 = (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(tryResult911
)::ok_type>); if ((__builtin_expect(!!(tryResult911.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult911.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7119, mozilla::dom::quota::Severity::Warning); }}
7116 .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> {{auto tryResult911 = (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(tryResult911
)::ok_type>); if ((__builtin_expect(!!(tryResult911.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult911.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7119, mozilla::dom::quota::Severity::Warning); }}
7117 self.mInReadTransaction = true;{auto tryResult911 = (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(tryResult911
)::ok_type>); if ((__builtin_expect(!!(tryResult911.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult911.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7119, mozilla::dom::quota::Severity::Warning); }}
7118 return Ok{};{auto tryResult911 = (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(tryResult911
)::ok_type>); if ((__builtin_expect(!!(tryResult911.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult911.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7119, mozilla::dom::quota::Severity::Warning); }}
7119 })){auto tryResult911 = (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(tryResult911
)::ok_type>); if ((__builtin_expect(!!(tryResult911.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult911.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7119, mozilla::dom::quota::Severity::Warning); }}
;
7120 }
7121}
7122
7123Result<bool, nsresult> DatabaseConnection::ReclaimFreePagesWhileIdle(
7124 CachedStatement& aFreelistStatement, CachedStatement& aRollbackStatement,
7125 uint32_t aFreelistCount, bool aNeedsCheckpoint,
7126 const Atomic<bool>& aInterrupted) {
7127 AssertIsOnConnectionThread();
7128 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7128); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFreelistStatement"
")"); do { *((volatile int*)__null) = 7128; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7129 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7129); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRollbackStatement"
")"); do { *((volatile int*)__null) = 7129; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7130 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7130); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFreelistCount"
")"); do { *((volatile int*)__null) = 7130; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7131 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7131); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { *((volatile int*)__null) = 7131; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7132 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7132); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { *((volatile int*)__null) = 7132; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7133
7134 AUTO_PROFILER_LABEL("DatabaseConnection::ReclaimFreePagesWhileIdle", DOM)mozilla::AutoProfilerLabel raiiObject7134( "DatabaseConnection::ReclaimFreePagesWhileIdle"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7135
7136 uint32_t pauseOnConnectionThreadMs = StaticPrefs::
7137 dom_indexedDB_connectionIdleMaintenance_pauseOnConnectionThreadMs();
7138 if (pauseOnConnectionThreadMs > 0) {
7139 PR_Sleep(PR_MillisecondsToInterval(pauseOnConnectionThreadMs));
7140 }
7141
7142 // Make sure we don't keep working if anything else needs this thread.
7143 if (aInterrupted) {
7144 return false;
7145 }
7146
7147 // Make all the statements we'll need up front.
7148
7149 // Only try to free 10% at a time so that we can bail out if this connection
7150 // suddenly becomes active or if the thread is needed otherwise.
7151 QM_TRY_INSPECT(auto tryResult912 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult912.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult912.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7156, mozilla::dom::quota::Severity::Error); return tryResult912
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult912
.inspect();
7152 const auto& incrementalVacuumStmt,auto tryResult912 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult912.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult912.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7156, mozilla::dom::quota::Severity::Error); return tryResult912
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult912
.inspect();
7153 GetCachedStatement(auto tryResult912 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult912.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult912.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7156, mozilla::dom::quota::Severity::Error); return tryResult912
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult912
.inspect();
7154 "PRAGMA incremental_vacuum("_ns +auto tryResult912 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult912.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult912.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7156, mozilla::dom::quota::Severity::Error); return tryResult912
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult912
.inspect();
7155 IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) +auto tryResult912 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult912.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult912.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7156, mozilla::dom::quota::Severity::Error); return tryResult912
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult912
.inspect();
7156 ");"_ns))auto tryResult912 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult912.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult912.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7156, mozilla::dom::quota::Severity::Error); return tryResult912
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult912
.inspect();
;
7157
7158 QM_TRY_INSPECT(const auto& beginImmediateStmt,auto tryResult913 = (GetCachedStatement("BEGIN IMMEDIATE;"_ns
)); if ((__builtin_expect(!!(tryResult913.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetCachedStatement(\"BEGIN IMMEDIATE;\"_ns)"
, tryResult913.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7159, mozilla::dom::quota::Severity::Error); return tryResult913
.propagateErr(); } const auto& beginImmediateStmt = tryResult913
.inspect();
7159 GetCachedStatement("BEGIN IMMEDIATE;"_ns))auto tryResult913 = (GetCachedStatement("BEGIN IMMEDIATE;"_ns
)); if ((__builtin_expect(!!(tryResult913.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetCachedStatement(\"BEGIN IMMEDIATE;\"_ns)"
, tryResult913.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7159, mozilla::dom::quota::Severity::Error); return tryResult913
.propagateErr(); } const auto& beginImmediateStmt = tryResult913
.inspect();
;
7160
7161 QM_TRY_INSPECT(const auto& commitStmt, GetCachedStatement("COMMIT;"_ns))auto tryResult914 = (GetCachedStatement("COMMIT;"_ns)); if ((
__builtin_expect(!!(tryResult914.isErr()), 0))) { mozilla::dom
::quota::HandleError("GetCachedStatement(\"COMMIT;\"_ns)", tryResult914
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7161, mozilla::dom::quota::Severity::Error); return tryResult914
.propagateErr(); } const auto& commitStmt = tryResult914.
inspect();
;
7162
7163 if (aNeedsCheckpoint) {
7164 // Freeing pages is a journaled operation, so it will require additional WAL
7165 // space. However, we're idle and are about to checkpoint anyway, so doing a
7166 // RESTART checkpoint here should allow us to reuse any existing space.
7167 QM_TRY(MOZ_TO_RESULT(CheckpointInternal(CheckpointMode::Restart))){auto tryResult915 = (ToResult(CheckpointInternal(CheckpointMode
::Restart))); static_assert(std::is_empty_v<typename decltype
(tryResult915)::ok_type>); if ((__builtin_expect(!!(tryResult915
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(CheckpointInternal(CheckpointMode::Restart))"
, tryResult915.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7167, mozilla::dom::quota::Severity::Error); return tryResult915
.propagateErr(); }}
;
7168 }
7169
7170 // Start the write transaction.
7171 QM_TRY(MOZ_TO_RESULT(beginImmediateStmt.Borrow()->Execute())){auto tryResult916 = (ToResult(beginImmediateStmt.Borrow()->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult916)::ok_type>); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(beginImmediateStmt.Borrow()->Execute())"
, tryResult916.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7171, mozilla::dom::quota::Severity::Error); return tryResult916
.propagateErr(); }}
;
7172
7173 mInWriteTransaction = true;
7174
7175 bool freedSomePages = false;
7176
7177 const auto rollback = [&aRollbackStatement, this](const auto&) {
7178 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7178); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { *((volatile int*)__null) = 7178; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7179
7180 // Something failed, make sure we roll everything back.
7181 Unused << aRollbackStatement.Borrow()->Execute();
7182
7183 // XXX Is rollback infallible? Shouldn't we check the result?
7184
7185 mInWriteTransaction = false;
7186 };
7187
7188 uint64_t previousFreelistCount = (uint64_t)aFreelistCount + 1;
7189
7190 QM_TRY(CollectWhile({auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7191 [&aFreelistCount, &previousFreelistCount,{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7192 &aInterrupted]() -> Result<bool, nsresult> {{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7193 if (aInterrupted) {{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7194 // On interrupt, abort and roll back this transaction. It's ok{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7195 // if we never make progress here because the idle service{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7196 // should eventually reclaim this space.{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7197 return false;{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7198 }{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7199 // If we were not able to free anything, we might either see{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7200 // a DB that has no auto-vacuum support at all or some other{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7201 // (hopefully temporary) condition that prevents vacuum from{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7202 // working. Just carry on in non-DEBUG.{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7203 bool madeProgress = previousFreelistCount != aFreelistCount;{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7204 previousFreelistCount = aFreelistCount;{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7205 MOZ_ASSERT(madeProgress);{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7206 QM_WARNONLY_TRY(MOZ_TO_RESULT(madeProgress));{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7207 return madeProgress && (aFreelistCount != 0);{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7208 },{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7209 [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt,{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7210 &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> {{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7211 QM_TRY(MOZ_TO_RESULT(incrementalVacuumStmt.Borrow()->Execute()));{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7212
7213 freedSomePages = true;{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7214
7215 QM_TRY_UNWRAP(aFreelistCount,{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7216 GetFreelistCount(aFreelistStatement));{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7217
7218 return Ok{};{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7219 }){auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7220 .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback,{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7221 this](Ok) -> Result<Ok, nsresult> {{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7222 if (aInterrupted) {{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7223 rollback(Ok{});{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7224 freedSomePages = false;{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7225 }{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7226
7227 if (freedSomePages) {{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7228 // Commit the write transaction.{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7229 QM_TRY(MOZ_TO_RESULT(commitStmt.Borrow()->Execute()),{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7230 QM_PROPAGATE,{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7231 [](const auto&) { NS_WARNING("Failed to commit!"); });{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7232
7233 mInWriteTransaction = false;{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7234 }{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7235
7236 return Ok{};{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7237 }),{auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7238 QM_PROPAGATE, rollback){auto tryResult921 = (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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult917
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult917)::ok_type>); if ((__builtin_expect
(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult917.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult918)::ok_type>
); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7211, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}; freedSomePages = true; auto tryResult919
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult919.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7216, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult920)::ok_type>); if ((__builtin_expect(
!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7231); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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
(tryResult921)::ok_type>); if ((__builtin_expect(!!(tryResult921
.isErr()), 0))) { auto tryTempError = tryResult921.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7238, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7205); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7205; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult917 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult917.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7206, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult918 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult918.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7211, mozilla::dom::quota::Severity::Error); return tryResult918.propagateErr(); }}; freedSomePages = true; auto tryResult919 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7216, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); } aFreelistCount = tryResult919.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult920 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { auto tryTempError = tryResult920.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7231); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
;
7239
7240 return freedSomePages;
7241}
7242
7243Result<uint32_t, nsresult> DatabaseConnection::GetFreelistCount(
7244 CachedStatement& aCachedStatement) {
7245 AssertIsOnConnectionThread();
7246
7247 AUTO_PROFILER_LABEL("DatabaseConnection::GetFreelistCount", DOM)mozilla::AutoProfilerLabel raiiObject7247( "DatabaseConnection::GetFreelistCount"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7248
7249 if (!aCachedStatement) {
7250 QM_TRY_UNWRAP(aCachedStatement,auto tryResult922 = (GetCachedStatement("PRAGMA freelist_count;"_ns
)); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetCachedStatement(\"PRAGMA freelist_count;\"_ns)"
, tryResult922.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7251, mozilla::dom::quota::Severity::Error); return tryResult922
.propagateErr(); } aCachedStatement = tryResult922.unwrap();
7251 GetCachedStatement("PRAGMA freelist_count;"_ns))auto tryResult922 = (GetCachedStatement("PRAGMA freelist_count;"_ns
)); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetCachedStatement(\"PRAGMA freelist_count;\"_ns)"
, tryResult922.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7251, mozilla::dom::quota::Severity::Error); return tryResult922
.propagateErr(); } aCachedStatement = tryResult922.unwrap();
;
7252 }
7253
7254 const auto borrowedStatement = aCachedStatement.Borrow();
7255
7256 QM_TRY_UNWRAP(const DebugOnly<bool> hasResult,auto tryResult923 = (::mozilla::ToResultInvokeMember( (&*
borrowedStatement), &::mozilla::detail::DerefedType<decltype
(&*borrowedStatement)>::ExecuteStep)); if ((__builtin_expect
(!!(tryResult923.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (&*borrowedStatement), &::mozilla::detail::DerefedType<decltype(&*borrowedStatement)>::ExecuteStep)"
, tryResult923.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7257, mozilla::dom::quota::Severity::Error); return tryResult923
.propagateErr(); } const DebugOnly<bool> hasResult = tryResult923
.unwrap();
7257 MOZ_TO_RESULT_INVOKE_MEMBER(&*borrowedStatement, ExecuteStep))auto tryResult923 = (::mozilla::ToResultInvokeMember( (&*
borrowedStatement), &::mozilla::detail::DerefedType<decltype
(&*borrowedStatement)>::ExecuteStep)); if ((__builtin_expect
(!!(tryResult923.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (&*borrowedStatement), &::mozilla::detail::DerefedType<decltype(&*borrowedStatement)>::ExecuteStep)"
, tryResult923.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7257, mozilla::dom::quota::Severity::Error); return tryResult923
.propagateErr(); } const DebugOnly<bool> hasResult = tryResult923
.unwrap();
;
7258
7259 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7259); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasResult" ")"
); do { *((volatile int*)__null) = 7259; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7260
7261 QM_TRY_INSPECT(const int32_t& freelistCount,auto tryResult924 = (::mozilla::ToResultInvokeMember( (*borrowedStatement
), &::mozilla::detail::DerefedType<decltype(*borrowedStatement
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult924.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*borrowedStatement), &::mozilla::detail::DerefedType<decltype(*borrowedStatement)>::GetInt32, 0)"
, tryResult924.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7262, mozilla::dom::quota::Severity::Error); return tryResult924
.propagateErr(); } const int32_t& freelistCount = tryResult924
.inspect();
7262 MOZ_TO_RESULT_INVOKE_MEMBER(*borrowedStatement, GetInt32, 0))auto tryResult924 = (::mozilla::ToResultInvokeMember( (*borrowedStatement
), &::mozilla::detail::DerefedType<decltype(*borrowedStatement
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult924.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*borrowedStatement), &::mozilla::detail::DerefedType<decltype(*borrowedStatement)>::GetInt32, 0)"
, tryResult924.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7262, mozilla::dom::quota::Severity::Error); return tryResult924
.propagateErr(); } const int32_t& freelistCount = tryResult924
.inspect();
;
7263
7264 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7264); AnnotateMozCrashReason("MOZ_ASSERT" "(" "freelistCount >= 0"
")"); do { *((volatile int*)__null) = 7264; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7265
7266 return uint32_t(freelistCount);
7267}
7268
7269void DatabaseConnection::Close() {
7270 AssertIsOnConnectionThread();
7271 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGSavepointCount"
")"); do { *((volatile int*)__null) = 7271; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7272 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7272); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!mInWriteTransaction"
")"); do { *((volatile int*)__null) = 7272; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7273
7274 AUTO_PROFILER_LABEL("DatabaseConnection::Close", DOM)mozilla::AutoProfilerLabel raiiObject7274( "DatabaseConnection::Close"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7275
7276 if (mUpdateRefcountFunction) {
7277 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7278); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))"
")"); do { *((volatile int*)__null) = 7278; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
7278 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7278); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))"
")"); do { *((volatile int*)__null) = 7278; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
7279 mUpdateRefcountFunction = nullptr;
7280 }
7281
7282 CachingDatabaseConnection::Close();
7283
7284 mFileManager.destroy();
7285}
7286
7287nsresult DatabaseConnection::DisableQuotaChecks() {
7288 AssertIsOnConnectionThread();
7289 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7289); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { *((volatile int*)__null) = 7289; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7290
7291 if (!mQuotaObject) {
7292 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7292); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mJournalQuotaObject"
")"); do { *((volatile int*)__null) = 7292; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7293
7294 QM_TRY(MOZ_TO_RESULT(MutableStorageConnection().GetQuotaObjects({auto tryResult925 = (ToResult(MutableStorageConnection().GetQuotaObjects
( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject
)))); static_assert(std::is_empty_v<typename decltype(tryResult925
)::ok_type>); if ((__builtin_expect(!!(tryResult925.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(MutableStorageConnection().GetQuotaObjects( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))"
, tryResult925.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7295, mozilla::dom::quota::Severity::Error); return tryResult925
.propagateErr(); }}
7295 getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))){auto tryResult925 = (ToResult(MutableStorageConnection().GetQuotaObjects
( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject
)))); static_assert(std::is_empty_v<typename decltype(tryResult925
)::ok_type>); if ((__builtin_expect(!!(tryResult925.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(MutableStorageConnection().GetQuotaObjects( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))"
, tryResult925.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7295, mozilla::dom::quota::Severity::Error); return tryResult925
.propagateErr(); }}
;
7296
7297 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7297); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQuotaObject"
")"); do { *((volatile int*)__null) = 7297; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7298 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7298); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mJournalQuotaObject"
")"); do { *((volatile int*)__null) = 7298; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7299 }
7300
7301 mQuotaObject->DisableQuotaCheck();
7302 mJournalQuotaObject->DisableQuotaCheck();
7303
7304 return NS_OK;
7305}
7306
7307void DatabaseConnection::EnableQuotaChecks() {
7308 AssertIsOnConnectionThread();
7309 if (!mQuotaObject) {
7310 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7310); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mJournalQuotaObject"
")"); do { *((volatile int*)__null) = 7310; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7311
7312 // DisableQuotaChecks failed earlier, so we don't need to enable quota
7313 // checks again.
7314 return;
7315 }
7316
7317 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7317); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mJournalQuotaObject"
")"); do { *((volatile int*)__null) = 7317; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7318
7319 const RefPtr<QuotaObject> quotaObject = std::move(mQuotaObject);
7320 const RefPtr<QuotaObject> journalQuotaObject = std::move(mJournalQuotaObject);
7321
7322 quotaObject->EnableQuotaCheck();
7323 journalQuotaObject->EnableQuotaCheck();
7324
7325 QM_TRY_INSPECT(const int64_t& fileSize, GetFileSize(quotaObject->Path()),auto tryResult926 = (GetFileSize(quotaObject->Path())); if
((__builtin_expect(!!(tryResult926.isErr()), 0))) { auto tryTempError
__attribute__((__unused__)) = tryResult926.unwrapErr(); mozilla
::dom::quota::HandleError("GetFileSize(quotaObject->Path())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7326, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const int64_t& fileSize = tryResult926.inspect();
7326 QM_VOID)auto tryResult926 = (GetFileSize(quotaObject->Path())); if
((__builtin_expect(!!(tryResult926.isErr()), 0))) { auto tryTempError
__attribute__((__unused__)) = tryResult926.unwrapErr(); mozilla
::dom::quota::HandleError("GetFileSize(quotaObject->Path())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7326, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const int64_t& fileSize = tryResult926.inspect();
;
7327 QM_TRY_INSPECT(const int64_t& journalFileSize,auto tryResult927 = (GetFileSize(journalQuotaObject->Path(
))); if ((__builtin_expect(!!(tryResult927.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult927.unwrapErr
(); mozilla::dom::quota::HandleError("GetFileSize(journalQuotaObject->Path())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7328, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const int64_t& journalFileSize = tryResult927.inspect
();
7328 GetFileSize(journalQuotaObject->Path()), QM_VOID)auto tryResult927 = (GetFileSize(journalQuotaObject->Path(
))); if ((__builtin_expect(!!(tryResult927.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult927.unwrapErr
(); mozilla::dom::quota::HandleError("GetFileSize(journalQuotaObject->Path())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7328, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const int64_t& journalFileSize = tryResult927.inspect
();
;
7329
7330 DebugOnly<bool> result = journalQuotaObject->MaybeUpdateSize(
7331 journalFileSize, /* aTruncate */ true);
7332 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7332); AnnotateMozCrashReason("MOZ_ASSERT" "(" "result" ")"
); do { *((volatile int*)__null) = 7332; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7333
7334 result = quotaObject->MaybeUpdateSize(fileSize, /* aTruncate */ true);
7335 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7335); AnnotateMozCrashReason("MOZ_ASSERT" "(" "result" ")"
); do { *((volatile int*)__null) = 7335; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7336}
7337
7338Result<int64_t, nsresult> DatabaseConnection::GetFileSize(
7339 const nsAString& aPath) {
7340 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7340); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aPath.IsEmpty()"
")"); do { *((volatile int*)__null) = 7340; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7341
7342 QM_TRY_INSPECT(const auto& file, QM_NewLocalFile(aPath))auto tryResult928 = (QM_NewLocalFile(aPath)); if ((__builtin_expect
(!!(tryResult928.isErr()), 0))) { mozilla::dom::quota::HandleError
("QM_NewLocalFile(aPath)", tryResult928.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7342, mozilla::dom::quota::Severity::Error); return tryResult928
.propagateErr(); } const auto& file = tryResult928.inspect
();
;
7343 QM_TRY_INSPECT(const bool& exists, MOZ_TO_RESULT_INVOKE_MEMBER(file, Exists))auto tryResult929 = (::mozilla::ToResultInvokeMember( (file),
&::mozilla::detail::DerefedType<decltype(file)>::Exists
)); if ((__builtin_expect(!!(tryResult929.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::Exists)"
, tryResult929.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7343, mozilla::dom::quota::Severity::Error); return tryResult929
.propagateErr(); } const bool& exists = tryResult929.inspect
();
;
7344
7345 if (exists) {
7346 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(file, GetFileSize)){auto tryResult930 = (::mozilla::ToResultInvokeMember( (file)
, &::mozilla::detail::DerefedType<decltype(file)>::
GetFileSize)); if ((__builtin_expect(!!(tryResult930.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize)"
, tryResult930.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7346, mozilla::dom::quota::Severity::Error); } return tryResult930
;}
;
7347 }
7348
7349 return 0;
7350}
7351
7352DatabaseConnection::AutoSavepoint::AutoSavepoint()
7353 : mConnection(nullptr)
7354#ifdef DEBUG1
7355 ,
7356 mDEBUGTransaction(nullptr)
7357#endif
7358{
7359 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<nsISupports, DatabaseConnection
::AutoSavepoint>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "DatabaseConnection::AutoSavepoint"
, sizeof(*this)); } while (0)
;
7360}
7361
7362DatabaseConnection::AutoSavepoint::~AutoSavepoint() {
7363 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<nsISupports, DatabaseConnection
::AutoSavepoint>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "DatabaseConnection::AutoSavepoint"
, sizeof(*this)); } while (0)
;
7364
7365 if (mConnection) {
7366 mConnection->AssertIsOnConnectionThread();
7367 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7367); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction"
")"); do { *((volatile int*)__null) = 7367; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7368 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7372); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 7372; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7369 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7372); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 7372; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7370 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7372); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 7372; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7371 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7372); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 7372; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7372 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7372); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 7372; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7373
7374 QM_WARNONLY_TRY(QM_TO_RESULT(mConnection->RollbackSavepoint())){auto tryResult931 = (ToResult<QMResult>(mConnection->
RollbackSavepoint())); static_assert(std::is_empty_v<typename
decltype(tryResult931)::ok_type>); if ((__builtin_expect(
!!(tryResult931.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(mConnection->RollbackSavepoint())"
, tryResult931.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7374, mozilla::dom::quota::Severity::Warning); }}
;
7375 }
7376}
7377
7378nsresult DatabaseConnection::AutoSavepoint::Start(
7379 const TransactionBase& aTransaction) {
7380 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7383); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 7383; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7381 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7383); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 7383; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7382 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7383); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 7383; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7383 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7383); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 7383; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7384
7385 DatabaseConnection* connection = aTransaction.GetDatabase().GetConnection();
7386 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7386); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection"
")"); do { *((volatile int*)__null) = 7386; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7387 connection->AssertIsOnConnectionThread();
7388
7389 // The previous operation failed to begin a write transaction and the
7390 // following opertion jumped to the connection thread before the previous
7391 // operation has updated its failure to the transaction.
7392 if (!connection->GetUpdateRefcountFunction()) {
7393 NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "The connection was closed because the previous operation "
"failed!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7395)
7394 "The connection was closed because the previous operation "NS_DebugBreak(NS_DEBUG_WARNING, "The connection was closed because the previous operation "
"failed!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7395)
7395 "failed!")NS_DebugBreak(NS_DEBUG_WARNING, "The connection was closed because the previous operation "
"failed!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7395)
;
7396 return NS_ERROR_DOM_INDEXEDDB_ABORT_ERR;
7397 }
7398
7399 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7399); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection"
")"); do { *((volatile int*)__null) = 7399; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7400 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7400); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGTransaction"
")"); do { *((volatile int*)__null) = 7400; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7401
7402 QM_TRY(MOZ_TO_RESULT(connection->StartSavepoint())){auto tryResult932 = (ToResult(connection->StartSavepoint(
))); static_assert(std::is_empty_v<typename decltype(tryResult932
)::ok_type>); if ((__builtin_expect(!!(tryResult932.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->StartSavepoint())"
, tryResult932.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7402, mozilla::dom::quota::Severity::Error); return tryResult932
.propagateErr(); }}
;
7403
7404 mConnection = connection;
7405#ifdef DEBUG1
7406 mDEBUGTransaction = &aTransaction;
7407#endif
7408
7409 return NS_OK;
7410}
7411
7412nsresult DatabaseConnection::AutoSavepoint::Commit() {
7413 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7413); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7413; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7414 mConnection->AssertIsOnConnectionThread();
7415 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7415); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction"
")"); do { *((volatile int*)__null) = 7415; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7416
7417 QM_TRY(MOZ_TO_RESULT(mConnection->ReleaseSavepoint())){auto tryResult933 = (ToResult(mConnection->ReleaseSavepoint
())); static_assert(std::is_empty_v<typename decltype(tryResult933
)::ok_type>); if ((__builtin_expect(!!(tryResult933.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(mConnection->ReleaseSavepoint())"
, tryResult933.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7417, mozilla::dom::quota::Severity::Error); return tryResult933
.propagateErr(); }}
;
7418
7419 mConnection = nullptr;
7420#ifdef DEBUG1
7421 mDEBUGTransaction = nullptr;
7422#endif
7423
7424 return NS_OK;
7425}
7426
7427DatabaseConnection::UpdateRefcountFunction::UpdateRefcountFunction(
7428 DatabaseConnection* const aConnection, DatabaseFileManager& aFileManager)
7429 : mConnection(aConnection),
7430 mFileManager(aFileManager),
7431 mInSavepoint(false) {
7432 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7432); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 7432; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7433 aConnection->AssertIsOnConnectionThread();
7434}
7435
7436nsresult DatabaseConnection::UpdateRefcountFunction::WillCommit() {
7437 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7437); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7437; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7438 mConnection->AssertIsOnConnectionThread();
7439 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7439); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection->HasStorageConnection()"
")"); do { *((volatile int*)__null) = 7439; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7440
7441 AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::WillCommit",mozilla::AutoProfilerLabel raiiObject7442( "DatabaseConnection::UpdateRefcountFunction::WillCommit"
, nullptr, JS::ProfilingCategoryPair::DOM)
7442 DOM)mozilla::AutoProfilerLabel raiiObject7442( "DatabaseConnection::UpdateRefcountFunction::WillCommit"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7443
7444 // The parameter names are not used, parameters are bound by index
7445 // only locally in the same function.
7446 auto update =
7447 [updateStatement = LazyStatement{*mConnection,
7448 "UPDATE file "
7449 "SET refcount = refcount + :delta "
7450 "WHERE id = :id"_ns},
7451 selectStatement = LazyStatement{*mConnection,
7452 "SELECT id "
7453 "FROM file "
7454 "WHERE id = :id"_ns},
7455 insertStatement =
7456 LazyStatement{
7457 *mConnection,
7458 "INSERT INTO file (id, refcount) VALUES(:id, :delta)"_ns},
7459 this](int64_t aId, int32_t aDelta) mutable -> Result<Ok, nsresult> {
7460 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7461( "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update"
, nullptr, JS::ProfilingCategoryPair::DOM)
7461 "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update", DOM)mozilla::AutoProfilerLabel raiiObject7461( "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7462 {
7463 QM_TRY_INSPECT(const auto& borrowedUpdateStatement,auto tryResult934 = (updateStatement.Borrow()); if ((__builtin_expect
(!!(tryResult934.isErr()), 0))) { mozilla::dom::quota::HandleError
("updateStatement.Borrow()", tryResult934.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7464, mozilla::dom::quota::Severity::Error); return tryResult934
.propagateErr(); } const auto& borrowedUpdateStatement = tryResult934
.inspect();
7464 updateStatement.Borrow())auto tryResult934 = (updateStatement.Borrow()); if ((__builtin_expect
(!!(tryResult934.isErr()), 0))) { mozilla::dom::quota::HandleError
("updateStatement.Borrow()", tryResult934.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7464, mozilla::dom::quota::Severity::Error); return tryResult934
.propagateErr(); } const auto& borrowedUpdateStatement = tryResult934
.inspect();
;
7465
7466 QM_TRY({auto tryResult935 = (ToResult(borrowedUpdateStatement->BindInt32ByIndex
(0, aDelta))); static_assert(std::is_empty_v<typename decltype
(tryResult935)::ok_type>); if ((__builtin_expect(!!(tryResult935
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))"
, tryResult935.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7467, mozilla::dom::quota::Severity::Error); return tryResult935
.propagateErr(); }}
7467 MOZ_TO_RESULT(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))){auto tryResult935 = (ToResult(borrowedUpdateStatement->BindInt32ByIndex
(0, aDelta))); static_assert(std::is_empty_v<typename decltype
(tryResult935)::ok_type>); if ((__builtin_expect(!!(tryResult935
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))"
, tryResult935.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7467, mozilla::dom::quota::Severity::Error); return tryResult935
.propagateErr(); }}
;
7468 QM_TRY(MOZ_TO_RESULT(borrowedUpdateStatement->BindInt64ByIndex(1, aId))){auto tryResult936 = (ToResult(borrowedUpdateStatement->BindInt64ByIndex
(1, aId))); static_assert(std::is_empty_v<typename decltype
(tryResult936)::ok_type>); if ((__builtin_expect(!!(tryResult936
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt64ByIndex(1, aId))"
, tryResult936.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7468, mozilla::dom::quota::Severity::Error); return tryResult936
.propagateErr(); }}
;
7469 QM_TRY(MOZ_TO_RESULT(borrowedUpdateStatement->Execute())){auto tryResult937 = (ToResult(borrowedUpdateStatement->Execute
())); static_assert(std::is_empty_v<typename decltype(tryResult937
)::ok_type>); if ((__builtin_expect(!!(tryResult937.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->Execute())"
, tryResult937.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7469, mozilla::dom::quota::Severity::Error); return tryResult937
.propagateErr(); }}
;
7470 }
7471
7472 QM_TRY_INSPECT(auto tryResult938 = (::mozilla::ToResultInvokeMember( (mConnection
->MutableStorageConnection()), &::mozilla::detail::DerefedType
<decltype(mConnection->MutableStorageConnection())>::
GetAffectedRows)); if ((__builtin_expect(!!(tryResult938.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows)"
, tryResult938.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7475, mozilla::dom::quota::Severity::Error); return tryResult938
.propagateErr(); } const int32_t& rows = tryResult938.inspect
();
7473 const int32_t& rows,auto tryResult938 = (::mozilla::ToResultInvokeMember( (mConnection
->MutableStorageConnection()), &::mozilla::detail::DerefedType
<decltype(mConnection->MutableStorageConnection())>::
GetAffectedRows)); if ((__builtin_expect(!!(tryResult938.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows)"
, tryResult938.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7475, mozilla::dom::quota::Severity::Error); return tryResult938
.propagateErr(); } const int32_t& rows = tryResult938.inspect
();
7474 MOZ_TO_RESULT_INVOKE_MEMBER(mConnection->MutableStorageConnection(),auto tryResult938 = (::mozilla::ToResultInvokeMember( (mConnection
->MutableStorageConnection()), &::mozilla::detail::DerefedType
<decltype(mConnection->MutableStorageConnection())>::
GetAffectedRows)); if ((__builtin_expect(!!(tryResult938.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows)"
, tryResult938.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7475, mozilla::dom::quota::Severity::Error); return tryResult938
.propagateErr(); } const int32_t& rows = tryResult938.inspect
();
7475 GetAffectedRows))auto tryResult938 = (::mozilla::ToResultInvokeMember( (mConnection
->MutableStorageConnection()), &::mozilla::detail::DerefedType
<decltype(mConnection->MutableStorageConnection())>::
GetAffectedRows)); if ((__builtin_expect(!!(tryResult938.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows)"
, tryResult938.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7475, mozilla::dom::quota::Severity::Error); return tryResult938
.propagateErr(); } const int32_t& rows = tryResult938.inspect
();
;
7476
7477 if (rows > 0) {
7478 QM_TRY_INSPECT(auto tryResult940 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult939 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult939)::ok_type>
); if ((__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult939.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7483, mozilla::dom::quota::Severity::Error); return tryResult939
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult940.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult939 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult939)::ok_type>); if ((__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult939.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7483, mozilla::dom::quota::Severity::Error); return tryResult939.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult940.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7486, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); } const bool& hasResult = tryResult940.inspect
();
7479 const bool& hasResult,auto tryResult940 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult939 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult939)::ok_type>
); if ((__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult939.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7483, mozilla::dom::quota::Severity::Error); return tryResult939
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult940.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult939 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult939)::ok_type>); if ((__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult939.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7483, mozilla::dom::quota::Severity::Error); return tryResult939.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult940.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7486, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); } const bool& hasResult = tryResult940.inspect
();
7480 selectStatementauto tryResult940 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult939 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult939)::ok_type>
); if ((__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult939.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7483, mozilla::dom::quota::Severity::Error); return tryResult939
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult940.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult939 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult939)::ok_type>); if ((__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult939.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7483, mozilla::dom::quota::Severity::Error); return tryResult939.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult940.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7486, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); } const bool& hasResult = tryResult940.inspect
();
7481 .BorrowAndExecuteSingleStep(auto tryResult940 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult939 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult939)::ok_type>
); if ((__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult939.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7483, mozilla::dom::quota::Severity::Error); return tryResult939
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult940.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult939 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult939)::ok_type>); if ((__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult939.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7483, mozilla::dom::quota::Severity::Error); return tryResult939.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult940.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7486, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); } const bool& hasResult = tryResult940.inspect
();
7482 [aId](auto& stmt) -> Result<Ok, nsresult> {auto tryResult940 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult939 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult939)::ok_type>
); if ((__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult939.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7483, mozilla::dom::quota::Severity::Error); return tryResult939
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult940.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult939 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult939)::ok_type>); if ((__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult939.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7483, mozilla::dom::quota::Severity::Error); return tryResult939.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult940.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7486, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); } const bool& hasResult = tryResult940.inspect
();
7483 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, aId)));auto tryResult940 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult939 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult939)::ok_type>
); if ((__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult939.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7483, mozilla::dom::quota::Severity::Error); return tryResult939
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult940.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult939 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult939)::ok_type>); if ((__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult939.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7483, mozilla::dom::quota::Severity::Error); return tryResult939.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult940.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7486, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); } const bool& hasResult = tryResult940.inspect
();
7484 return Ok{};auto tryResult940 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult939 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult939)::ok_type>
); if ((__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult939.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7483, mozilla::dom::quota::Severity::Error); return tryResult939
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult940.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult939 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult939)::ok_type>); if ((__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult939.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7483, mozilla::dom::quota::Severity::Error); return tryResult939.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult940.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7486, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); } const bool& hasResult = tryResult940.inspect
();
7485 })auto tryResult940 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult939 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult939)::ok_type>
); if ((__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult939.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7483, mozilla::dom::quota::Severity::Error); return tryResult939
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult940.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult939 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult939)::ok_type>); if ((__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult939.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7483, mozilla::dom::quota::Severity::Error); return tryResult939.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult940.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7486, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); } const bool& hasResult = tryResult940.inspect
();
7486 .map(IsSome))auto tryResult940 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult939 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult939)::ok_type>
); if ((__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult939.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7483, mozilla::dom::quota::Severity::Error); return tryResult939
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult940.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult939 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult939)::ok_type>); if ((__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult939.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7483, mozilla::dom::quota::Severity::Error); return tryResult939.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult940.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7486, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); } const bool& hasResult = tryResult940.inspect
();
;
7487
7488 if (!hasResult) {
7489 // Don't have to create the journal here, we can create all at once,
7490 // just before commit
7491 mJournalsToCreateBeforeCommit.AppendElement(aId);
7492 }
7493
7494 return Ok{};
7495 }
7496
7497 QM_TRY_INSPECT(const auto& borrowedInsertStatement,auto tryResult941 = (insertStatement.Borrow()); if ((__builtin_expect
(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError
("insertStatement.Borrow()", tryResult941.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7498, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); } const auto& borrowedInsertStatement = tryResult941
.inspect();
7498 insertStatement.Borrow())auto tryResult941 = (insertStatement.Borrow()); if ((__builtin_expect
(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError
("insertStatement.Borrow()", tryResult941.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7498, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); } const auto& borrowedInsertStatement = tryResult941
.inspect();
;
7499
7500 QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->BindInt64ByIndex(0, aId))){auto tryResult942 = (ToResult(borrowedInsertStatement->BindInt64ByIndex
(0, aId))); static_assert(std::is_empty_v<typename decltype
(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->BindInt64ByIndex(0, aId))"
, tryResult942.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7500, mozilla::dom::quota::Severity::Error); return tryResult942
.propagateErr(); }}
;
7501 QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->BindInt32ByIndex(1, aDelta))){auto tryResult943 = (ToResult(borrowedInsertStatement->BindInt32ByIndex
(1, aDelta))); static_assert(std::is_empty_v<typename decltype
(tryResult943)::ok_type>); if ((__builtin_expect(!!(tryResult943
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->BindInt32ByIndex(1, aDelta))"
, tryResult943.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7501, mozilla::dom::quota::Severity::Error); return tryResult943
.propagateErr(); }}
;
7502 QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->Execute())){auto tryResult944 = (ToResult(borrowedInsertStatement->Execute
())); static_assert(std::is_empty_v<typename decltype(tryResult944
)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->Execute())"
, tryResult944.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7502, mozilla::dom::quota::Severity::Error); return tryResult944
.propagateErr(); }}
;
7503
7504 mJournalsToRemoveAfterCommit.AppendElement(aId);
7505
7506 return Ok{};
7507 };
7508
7509 QM_TRY(CollectEachInRange({auto tryResult946 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult945 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult945)::ok_type>
); if ((__builtin_expect(!!(tryResult945.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult945
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7513, mozilla::dom::quota::Severity::Error); return tryResult945
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult946)::ok_type>); if ((__builtin_expect
(!!(tryResult946.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult945 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult945.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7513, mozilla::dom::quota::Severity::Error); return tryResult945.propagateErr(); }}; } return Ok{}; })"
, tryResult946.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7517, mozilla::dom::quota::Severity::Error); return tryResult946
.propagateErr(); }}
7510 mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> {{auto tryResult946 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult945 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult945)::ok_type>
); if ((__builtin_expect(!!(tryResult945.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult945
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7513, mozilla::dom::quota::Severity::Error); return tryResult945
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult946)::ok_type>); if ((__builtin_expect
(!!(tryResult946.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult945 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult945.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7513, mozilla::dom::quota::Severity::Error); return tryResult945.propagateErr(); }}; } return Ok{}; })"
, tryResult946.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7517, mozilla::dom::quota::Severity::Error); return tryResult946
.propagateErr(); }}
7511 const auto delta = entry.GetData()->Delta();{auto tryResult946 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult945 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult945)::ok_type>
); if ((__builtin_expect(!!(tryResult945.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult945
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7513, mozilla::dom::quota::Severity::Error); return tryResult945
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult946)::ok_type>); if ((__builtin_expect
(!!(tryResult946.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult945 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult945.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7513, mozilla::dom::quota::Severity::Error); return tryResult945.propagateErr(); }}; } return Ok{}; })"
, tryResult946.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7517, mozilla::dom::quota::Severity::Error); return tryResult946
.propagateErr(); }}
7512 if (delta) {{auto tryResult946 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult945 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult945)::ok_type>
); if ((__builtin_expect(!!(tryResult945.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult945
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7513, mozilla::dom::quota::Severity::Error); return tryResult945
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult946)::ok_type>); if ((__builtin_expect
(!!(tryResult946.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult945 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult945.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7513, mozilla::dom::quota::Severity::Error); return tryResult945.propagateErr(); }}; } return Ok{}; })"
, tryResult946.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7517, mozilla::dom::quota::Severity::Error); return tryResult946
.propagateErr(); }}
7513 QM_TRY(update(entry.GetKey(), delta));{auto tryResult946 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult945 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult945)::ok_type>
); if ((__builtin_expect(!!(tryResult945.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult945
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7513, mozilla::dom::quota::Severity::Error); return tryResult945
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult946)::ok_type>); if ((__builtin_expect
(!!(tryResult946.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult945 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult945.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7513, mozilla::dom::quota::Severity::Error); return tryResult945.propagateErr(); }}; } return Ok{}; })"
, tryResult946.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7517, mozilla::dom::quota::Severity::Error); return tryResult946
.propagateErr(); }}
7514 }{auto tryResult946 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult945 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult945)::ok_type>
); if ((__builtin_expect(!!(tryResult945.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult945
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7513, mozilla::dom::quota::Severity::Error); return tryResult945
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult946)::ok_type>); if ((__builtin_expect
(!!(tryResult946.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult945 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult945.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7513, mozilla::dom::quota::Severity::Error); return tryResult945.propagateErr(); }}; } return Ok{}; })"
, tryResult946.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7517, mozilla::dom::quota::Severity::Error); return tryResult946
.propagateErr(); }}
7515
7516 return Ok{};{auto tryResult946 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult945 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult945)::ok_type>
); if ((__builtin_expect(!!(tryResult945.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult945
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7513, mozilla::dom::quota::Severity::Error); return tryResult945
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult946)::ok_type>); if ((__builtin_expect
(!!(tryResult946.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult945 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult945.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7513, mozilla::dom::quota::Severity::Error); return tryResult945.propagateErr(); }}; } return Ok{}; })"
, tryResult946.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7517, mozilla::dom::quota::Severity::Error); return tryResult946
.propagateErr(); }}
7517 })){auto tryResult946 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult945 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult945)::ok_type>
); if ((__builtin_expect(!!(tryResult945.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult945
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7513, mozilla::dom::quota::Severity::Error); return tryResult945
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult946)::ok_type>); if ((__builtin_expect
(!!(tryResult946.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult945 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult945.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7513, mozilla::dom::quota::Severity::Error); return tryResult945.propagateErr(); }}; } return Ok{}; })"
, tryResult946.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7517, mozilla::dom::quota::Severity::Error); return tryResult946
.propagateErr(); }}
;
7518
7519 QM_TRY(MOZ_TO_RESULT(CreateJournals())){auto tryResult947 = (ToResult(CreateJournals())); static_assert
(std::is_empty_v<typename decltype(tryResult947)::ok_type>
); if ((__builtin_expect(!!(tryResult947.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(CreateJournals())", tryResult947
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7519, mozilla::dom::quota::Severity::Error); return tryResult947
.propagateErr(); }}
;
7520
7521 return NS_OK;
7522}
7523
7524void DatabaseConnection::UpdateRefcountFunction::DidCommit() {
7525 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7525); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7525; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7526 mConnection->AssertIsOnConnectionThread();
7527
7528 AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::DidCommit",mozilla::AutoProfilerLabel raiiObject7529( "DatabaseConnection::UpdateRefcountFunction::DidCommit"
, nullptr, JS::ProfilingCategoryPair::DOM)
7529 DOM)mozilla::AutoProfilerLabel raiiObject7529( "DatabaseConnection::UpdateRefcountFunction::DidCommit"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7530
7531 for (const auto& entry : mFileInfoEntries.Values()) {
7532 entry->MaybeUpdateDBRefs();
7533 }
7534
7535 QM_WARNONLY_TRY(QM_TO_RESULT(RemoveJournals(mJournalsToRemoveAfterCommit))){auto tryResult948 = (ToResult<QMResult>(RemoveJournals
(mJournalsToRemoveAfterCommit))); static_assert(std::is_empty_v
<typename decltype(tryResult948)::ok_type>); if ((__builtin_expect
(!!(tryResult948.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(RemoveJournals(mJournalsToRemoveAfterCommit))"
, tryResult948.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7535, mozilla::dom::quota::Severity::Warning); }}
;
7536}
7537
7538void DatabaseConnection::UpdateRefcountFunction::DidAbort() {
7539 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7539); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7539; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7540 mConnection->AssertIsOnConnectionThread();
7541
7542 AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::DidAbort",mozilla::AutoProfilerLabel raiiObject7543( "DatabaseConnection::UpdateRefcountFunction::DidAbort"
, nullptr, JS::ProfilingCategoryPair::DOM)
7543 DOM)mozilla::AutoProfilerLabel raiiObject7543( "DatabaseConnection::UpdateRefcountFunction::DidAbort"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7544
7545 QM_WARNONLY_TRY(QM_TO_RESULT(RemoveJournals(mJournalsToRemoveAfterAbort))){auto tryResult949 = (ToResult<QMResult>(RemoveJournals
(mJournalsToRemoveAfterAbort))); static_assert(std::is_empty_v
<typename decltype(tryResult949)::ok_type>); if ((__builtin_expect
(!!(tryResult949.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(RemoveJournals(mJournalsToRemoveAfterAbort))"
, tryResult949.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7545, mozilla::dom::quota::Severity::Warning); }}
;
7546}
7547
7548void DatabaseConnection::UpdateRefcountFunction::StartSavepoint() {
7549 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7549); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7549; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7550 mConnection->AssertIsOnConnectionThread();
7551 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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7551); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInSavepoint"
")"); do { *((volatile int*)__null) = 7551; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7552 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mSavepointEntriesIndex.Count()"
")"); do { *((volatile int*)__null) = 7552; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7553
7554 mInSavepoint = true;
7555}
7556
7557void DatabaseConnection::UpdateRefcountFunction::ReleaseSavepoint() {
7558 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7558); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7558; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7559 mConnection->AssertIsOnConnectionThread();
7560 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7560); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInSavepoint"
")"); do { *((volatile int*)__null) = 7560; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7561
7562 mSavepointEntriesIndex.Clear();
7563 mInSavepoint = false;
7564}
7565
7566void DatabaseConnection::UpdateRefcountFunction::RollbackSavepoint() {
7567 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7567); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7567; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7568 mConnection->AssertIsOnConnectionThread();
7569 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7569); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 7569; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7570 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7570); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInSavepoint"
")"); do { *((volatile int*)__null) = 7570; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7571
7572 for (const auto& entry : mSavepointEntriesIndex.Values()) {
7573 entry->DecBySavepointDelta();
7574 }
7575
7576 mInSavepoint = false;
7577 mSavepointEntriesIndex.Clear();
7578}
7579
7580void DatabaseConnection::UpdateRefcountFunction::Reset() {
7581 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7581; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7582 mConnection->AssertIsOnConnectionThread();
7583 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7583); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mSavepointEntriesIndex.Count()"
")"); do { *((volatile int*)__null) = 7583; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7584 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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7584); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInSavepoint"
")"); do { *((volatile int*)__null) = 7584; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7585
7586 mJournalsToCreateBeforeCommit.Clear();
7587 mJournalsToRemoveAfterCommit.Clear();
7588 mJournalsToRemoveAfterAbort.Clear();
7589
7590 // DatabaseFileInfo implementation automatically removes unreferenced files,
7591 // but it's done asynchronously and with a delay. We want to remove them (and
7592 // decrease quota usage) before we fire the commit event.
7593 for (const auto& entry : mFileInfoEntries.Values()) {
7594 // We need to move mFileInfo into a raw pointer in order to release it
7595 // explicitly with aSyncDeleteFile == true.
7596 DatabaseFileInfo* const fileInfo = entry->ReleaseFileInfo().forget().take();
7597 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7597); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileInfo" ")"
); do { *((volatile int*)__null) = 7597; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7598
7599 fileInfo->Release(/* aSyncDeleteFile */ true);
7600 }
7601
7602 mFileInfoEntries.Clear();
7603}
7604
7605nsresult DatabaseConnection::UpdateRefcountFunction::ProcessValue(
7606 mozIStorageValueArray* aValues, int32_t aIndex, UpdateType aUpdateType) {
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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7607); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7607; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7608 mConnection->AssertIsOnConnectionThread();
7609 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7609); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")"
); do { *((volatile int*)__null) = 7609; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7610
7611 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7612( "DatabaseConnection::UpdateRefcountFunction::ProcessValue"
, nullptr, JS::ProfilingCategoryPair::DOM)
7612 "DatabaseConnection::UpdateRefcountFunction::ProcessValue", DOM)mozilla::AutoProfilerLabel raiiObject7612( "DatabaseConnection::UpdateRefcountFunction::ProcessValue"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7613
7614 QM_TRY_INSPECT(const int32_t& type,auto tryResult950 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, aIndex)); if ((__builtin_expect(!!(tryResult950
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, aIndex)"
, tryResult950.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7615, mozilla::dom::quota::Severity::Error); return tryResult950
.propagateErr(); } const int32_t& type = tryResult950.inspect
();
7615 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, aIndex))auto tryResult950 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, aIndex)); if ((__builtin_expect(!!(tryResult950
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, aIndex)"
, tryResult950.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7615, mozilla::dom::quota::Severity::Error); return tryResult950
.propagateErr(); } const int32_t& type = tryResult950.inspect
();
;
7616
7617 if (type == mozIStorageValueArray::VALUE_TYPE_NULL) {
7618 return NS_OK;
7619 }
7620
7621 QM_TRY_INSPECT(const auto& ids, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult951 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(aValues)>::GetString), (aValues), aIndex)); if ((__builtin_expect
(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aValues)>::GetString), (aValues), aIndex)"
, tryResult951.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7622, mozilla::dom::quota::Severity::Error); return tryResult951
.propagateErr(); } const auto& ids = tryResult951.inspect
();
7622 nsString, aValues, GetString, aIndex))auto tryResult951 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(aValues)>::GetString), (aValues), aIndex)); if ((__builtin_expect
(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aValues)>::GetString), (aValues), aIndex)"
, tryResult951.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7622, mozilla::dom::quota::Severity::Error); return tryResult951
.propagateErr(); } const auto& ids = tryResult951.inspect
();
;
7623
7624 QM_TRY_INSPECT(const auto& files,auto tryResult952 = (DeserializeStructuredCloneFiles(mFileManager
, ids)); if ((__builtin_expect(!!(tryResult952.isErr()), 0)))
{ mozilla::dom::quota::HandleError("DeserializeStructuredCloneFiles(mFileManager, ids)"
, tryResult952.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7625, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); } const auto& files = tryResult952.inspect
();
7625 DeserializeStructuredCloneFiles(mFileManager, ids))auto tryResult952 = (DeserializeStructuredCloneFiles(mFileManager
, ids)); if ((__builtin_expect(!!(tryResult952.isErr()), 0)))
{ mozilla::dom::quota::HandleError("DeserializeStructuredCloneFiles(mFileManager, ids)"
, tryResult952.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7625, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); } const auto& files = tryResult952.inspect
();
;
7626
7627 for (const StructuredCloneFileParent& file : files) {
7628 const int64_t id = file.FileInfo().Id();
7629 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7629); AnnotateMozCrashReason("MOZ_ASSERT" "(" "id > 0" ")"
); do { *((volatile int*)__null) = 7629; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7630
7631 const auto entry =
7632 WrapNotNull(mFileInfoEntries.GetOrInsertNew(id, file.FileInfoPtr()));
7633
7634 if (mInSavepoint) {
7635 mSavepointEntriesIndex.InsertOrUpdate(id, entry);
7636 }
7637
7638 switch (aUpdateType) {
7639 case UpdateType::Increment:
7640 entry->IncDeltas(mInSavepoint);
7641 break;
7642 case UpdateType::Decrement:
7643 entry->DecDeltas(mInSavepoint);
7644 break;
7645 default:
7646 MOZ_CRASH("Unknown update type!")do { do { } while (false); MOZ_ReportCrash("" "Unknown update type!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7646); AnnotateMozCrashReason("MOZ_CRASH(" "Unknown update type!"
")"); do { *((volatile int*)__null) = 7646; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
7647 }
7648 }
7649
7650 return NS_OK;
7651}
7652
7653nsresult DatabaseConnection::UpdateRefcountFunction::CreateJournals() {
7654 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7654); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7654; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7655 mConnection->AssertIsOnConnectionThread();
7656
7657 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7658( "DatabaseConnection::UpdateRefcountFunction::CreateJournals"
, nullptr, JS::ProfilingCategoryPair::DOM)
7658 "DatabaseConnection::UpdateRefcountFunction::CreateJournals", DOM)mozilla::AutoProfilerLabel raiiObject7658( "DatabaseConnection::UpdateRefcountFunction::CreateJournals"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7659
7660 const nsCOMPtr<nsIFile> journalDirectory = mFileManager.GetJournalDirectory();
7661 QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult953 = (OkIf(journalDirectory)); static_assert(
std::is_empty_v<typename decltype(tryResult953)::ok_type>
); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult953.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(journalDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7661, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
7662
7663 for (const int64_t id : mJournalsToCreateBeforeCommit) {
7664 const nsCOMPtr<nsIFile> file =
7665 DatabaseFileManager::GetFileForId(journalDirectory, id);
7666 QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult954 = (OkIf(file)); static_assert(std::is_empty_v
<typename decltype(tryResult954)::ok_type>); if ((__builtin_expect
(!!(tryResult954.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult954.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(file)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7666, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError
, NS_ERROR_FAILURE); }}
;
7667
7668 QM_TRY(MOZ_TO_RESULT(file->Create(nsIFile::NORMAL_FILE_TYPE, 0644))){auto tryResult955 = (ToResult(file->Create(nsIFile::NORMAL_FILE_TYPE
, 0644))); static_assert(std::is_empty_v<typename decltype
(tryResult955)::ok_type>); if ((__builtin_expect(!!(tryResult955
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Create(nsIFile::NORMAL_FILE_TYPE, 0644))"
, tryResult955.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7668, mozilla::dom::quota::Severity::Error); return tryResult955
.propagateErr(); }}
;
7669
7670 mJournalsToRemoveAfterAbort.AppendElement(id);
7671 }
7672
7673 return NS_OK;
7674}
7675
7676nsresult DatabaseConnection::UpdateRefcountFunction::RemoveJournals(
7677 const nsTArray<int64_t>& aJournals) {
7678 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7678); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7678; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7679 mConnection->AssertIsOnConnectionThread();
7680
7681 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7682( "DatabaseConnection::UpdateRefcountFunction::RemoveJournals"
, nullptr, JS::ProfilingCategoryPair::DOM)
7682 "DatabaseConnection::UpdateRefcountFunction::RemoveJournals", DOM)mozilla::AutoProfilerLabel raiiObject7682( "DatabaseConnection::UpdateRefcountFunction::RemoveJournals"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7683
7684 nsCOMPtr<nsIFile> journalDirectory = mFileManager.GetJournalDirectory();
7685 QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult956 = (OkIf(journalDirectory)); static_assert(
std::is_empty_v<typename decltype(tryResult956)::ok_type>
); if ((__builtin_expect(!!(tryResult956.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult956.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(journalDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7685, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
7686
7687 for (const auto& journal : aJournals) {
7688 nsCOMPtr<nsIFile> file =
7689 DatabaseFileManager::GetFileForId(journalDirectory, journal);
7690 QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult957 = (OkIf(file)); static_assert(std::is_empty_v
<typename decltype(tryResult957)::ok_type>); if ((__builtin_expect
(!!(tryResult957.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult957.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(file)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7690, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError
, NS_ERROR_FAILURE); }}
;
7691
7692 QM_WARNONLY_TRY(QM_TO_RESULT(file->Remove(false))){auto tryResult958 = (ToResult<QMResult>(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult958)::ok_type>); if ((__builtin_expect(!!(tryResult958
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult<QMResult>(file->Remove(false))"
, tryResult958.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7692, mozilla::dom::quota::Severity::Warning); }}
;
7693 }
7694
7695 return NS_OK;
7696}
7697
7698NS_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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7699); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
7699; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7699); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 7699; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7699); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 7699
; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7699); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 7699; __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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7699); 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; }
7699 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7699); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
7699; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7699); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 7699; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7699); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 7699
; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7699); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 7699; __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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7699); 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; }
7700
7701NS_IMETHODIMPnsresult
7702DatabaseConnection::UpdateRefcountFunction::OnFunctionCall(
7703 mozIStorageValueArray* aValues, nsIVariant** _retval) {
7704 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")"
); do { *((volatile int*)__null) = 7704; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7705 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")"
); do { *((volatile int*)__null) = 7705; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7706
7707 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7708( "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall"
, nullptr, JS::ProfilingCategoryPair::DOM)
7708 "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall", DOM)mozilla::AutoProfilerLabel raiiObject7708( "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7709
7710#ifdef DEBUG1
7711 {
7712 QM_TRY_INSPECT(const uint32_t& numEntries,auto tryResult959 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetNumEntries)); if ((__builtin_expect(!!(tryResult959.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult959
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7714, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7714); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 7714; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const uint32_t
& numEntries = tryResult959.inspect();
7713 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetNumEntries),auto tryResult959 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetNumEntries)); if ((__builtin_expect(!!(tryResult959.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult959
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7714, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7714); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 7714; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const uint32_t
& numEntries = tryResult959.inspect();
7714 QM_ASSERT_UNREACHABLE)auto tryResult959 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetNumEntries)); if ((__builtin_expect(!!(tryResult959.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult959
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7714, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7714); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 7714; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const uint32_t
& numEntries = tryResult959.inspect();
;
7715
7716 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7716); AnnotateMozCrashReason("MOZ_ASSERT" "(" "numEntries == 2"
")"); do { *((volatile int*)__null) = 7716; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7717
7718 QM_TRY_INSPECT(const int32_t& type1,auto tryResult960 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 0)); if ((__builtin_expect(!!(tryResult960.
isErr()), 0))) { auto tryTempError __attribute__((__unused__)
) = tryResult960.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 7720; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type1 = tryResult960.inspect();
7719 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 0),auto tryResult960 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 0)); if ((__builtin_expect(!!(tryResult960.
isErr()), 0))) { auto tryTempError __attribute__((__unused__)
) = tryResult960.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 7720; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type1 = tryResult960.inspect();
7720 QM_ASSERT_UNREACHABLE)auto tryResult960 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 0)); if ((__builtin_expect(!!(tryResult960.
isErr()), 0))) { auto tryTempError __attribute__((__unused__)
) = tryResult960.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 7720; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type1 = tryResult960.inspect();
;
7721
7722 QM_TRY_INSPECT(const int32_t& type2,auto tryResult961 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult961.
isErr()), 0))) { auto tryTempError __attribute__((__unused__)
) = tryResult961.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7724, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7724); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 7724; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type2 = tryResult961.inspect();
7723 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 1),auto tryResult961 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult961.
isErr()), 0))) { auto tryTempError __attribute__((__unused__)
) = tryResult961.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7724, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7724); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 7724; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type2 = tryResult961.inspect();
7724 QM_ASSERT_UNREACHABLE)auto tryResult961 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult961.
isErr()), 0))) { auto tryTempError __attribute__((__unused__)
) = tryResult961.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7724, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7724); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 7724; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type2 = tryResult961.inspect();
;
7725
7726 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7727); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)"
")"); do { *((volatile int*)__null) = 7727; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7727 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7727); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)"
")"); do { *((volatile int*)__null) = 7727; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7728 }
7729#endif
7730
7731 QM_TRY(MOZ_TO_RESULT(ProcessValue(aValues, 0, UpdateType::Decrement))){auto tryResult962 = (ToResult(ProcessValue(aValues, 0, UpdateType
::Decrement))); static_assert(std::is_empty_v<typename decltype
(tryResult962)::ok_type>); if ((__builtin_expect(!!(tryResult962
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(ProcessValue(aValues, 0, UpdateType::Decrement))"
, tryResult962.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7731, mozilla::dom::quota::Severity::Error); return tryResult962
.propagateErr(); }}
;
7732
7733 QM_TRY(MOZ_TO_RESULT(ProcessValue(aValues, 1, UpdateType::Increment))){auto tryResult963 = (ToResult(ProcessValue(aValues, 1, UpdateType
::Increment))); static_assert(std::is_empty_v<typename decltype
(tryResult963)::ok_type>); if ((__builtin_expect(!!(tryResult963
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(ProcessValue(aValues, 1, UpdateType::Increment))"
, tryResult963.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7733, mozilla::dom::quota::Severity::Error); return tryResult963
.propagateErr(); }}
;
7734
7735 return NS_OK;
7736}
7737
7738/*******************************************************************************
7739 * ConnectionPool implementation
7740 ******************************************************************************/
7741
7742ConnectionPool::ConnectionPool()
7743 : mDatabasesMutex("ConnectionPool::mDatabasesMutex"),
7744 mIOTarget(MakeConnectionIOTarget()),
7745 mIdleTimer(NS_NewTimer()),
7746 mNextTransactionId(0) {
7747 AssertIsOnOwningThread();
7748 AssertIsOnBackgroundThread();
7749 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7749); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer"
")"); do { *((volatile int*)__null) = 7749; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7750}
7751
7752ConnectionPool::~ConnectionPool() {
7753 AssertIsOnOwningThread();
7754 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7754); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 7754; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7755 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7755); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleTimer"
")"); do { *((volatile int*)__null) = 7755; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7756 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7756); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()"
")"); do { *((volatile int*)__null) = 7756; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7757 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7757); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabases.Count()"
")"); do { *((volatile int*)__null) = 7757; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7758 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7758); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { *((volatile int*)__null) = 7758; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7759 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7759); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQueuedTransactions.IsEmpty()"
")"); do { *((volatile int*)__null) = 7759; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7760 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7760); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCompleteCallbacks.IsEmpty()"
")"); do { *((volatile int*)__null) = 7760; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7761 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7761); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested"
")"); do { *((volatile int*)__null) = 7761; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7762 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7762); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownComplete"
")"); do { *((volatile int*)__null) = 7762; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7763}
7764
7765// static
7766void ConnectionPool::IdleTimerCallback(nsITimer* aTimer, void* aClosure) {
7767 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTimer" ")"
); do { *((volatile int*)__null) = 7767; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7768 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7768); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aClosure" ")"
); do { *((volatile int*)__null) = 7768; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7769
7770 AUTO_PROFILER_LABEL("ConnectionPool::IdleTimerCallback", DOM)mozilla::AutoProfilerLabel raiiObject7770( "ConnectionPool::IdleTimerCallback"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7771
7772 auto& self = *static_cast<ConnectionPool*>(aClosure);
7773 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7773); AnnotateMozCrashReason("MOZ_ASSERT" "(" "self.mIdleTimer"
")"); do { *((volatile int*)__null) = 7773; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7774 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7774); AnnotateMozCrashReason("MOZ_ASSERT" "(" "SameCOMIdentity(self.mIdleTimer, aTimer)"
")"); do { *((volatile int*)__null) = 7774; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7775 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7775); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!self.mTargetIdleTime.IsNull()"
")"); do { *((volatile int*)__null) = 7775; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7776
7777 self.mTargetIdleTime = TimeStamp();
7778
7779 // Cheat a little.
7780 const TimeStamp now =
7781 TimeStamp::NowLoRes() + TimeDuration::FromMilliseconds(500);
7782
7783 // XXX Move this to ArrayAlgorithm.h?
7784 const auto removeUntil = [](auto& array, auto&& cond) {
7785 const auto begin = array.begin(), end = array.end();
7786 array.RemoveElementsRange(
7787 begin, std::find_if(begin, end, std::forward<decltype(cond)>(cond)));
7788 };
7789
7790 removeUntil(self.mIdleDatabases, [now, &self](const auto& info) {
7791 if (now >= info.mIdleTime) {
7792 if ((*info.mDatabaseInfo)->mIdle) {
7793 self.PerformIdleDatabaseMaintenance(*info.mDatabaseInfo.ref());
7794 } else {
7795 self.CloseDatabase(*info.mDatabaseInfo.ref());
7796 }
7797
7798 return false;
7799 }
7800
7801 return true;
7802 });
7803
7804 self.AdjustIdleTimer();
7805}
7806
7807Result<RefPtr<DatabaseConnection>, nsresult>
7808ConnectionPool::GetOrCreateConnection(const Database& aDatabase) {
7809 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7809); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 7809; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7810 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7810); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 7810; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7811
7812 AUTO_PROFILER_LABEL("ConnectionPool::GetOrCreateConnection", DOM)mozilla::AutoProfilerLabel raiiObject7812( "ConnectionPool::GetOrCreateConnection"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7813
7814 DatabaseInfo* dbInfo;
7815 {
7816 MutexAutoLock lock(mDatabasesMutex);
7817
7818 dbInfo = mDatabases.Get(aDatabase.Id());
7819 }
7820
7821 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7821); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo" ")"
); do { *((volatile int*)__null) = 7821; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7822
7823 if (dbInfo->mConnection) {
7824 dbInfo->AssertIsOnConnectionThread();
7825
7826 return dbInfo->mConnection;
7827 }
7828
7829 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo->mDEBUGConnectionEventTarget"
")"); do { *((volatile int*)__null) = 7829; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7830
7831 QM_TRY_UNWRAP(auto tryResult964 = (GetStorageConnection(aDatabase.FilePath(
), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase
.MaybeKeyRef())); if ((__builtin_expect(!!(tryResult964.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())"
, tryResult964.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7834, mozilla::dom::quota::Severity::Error); return tryResult964
.propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection
>> storageConnection = tryResult964.unwrap();
7832 MovingNotNull<nsCOMPtr<mozIStorageConnection>> storageConnection,auto tryResult964 = (GetStorageConnection(aDatabase.FilePath(
), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase
.MaybeKeyRef())); if ((__builtin_expect(!!(tryResult964.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())"
, tryResult964.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7834, mozilla::dom::quota::Severity::Error); return tryResult964
.propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection
>> storageConnection = tryResult964.unwrap();
7833 GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(),auto tryResult964 = (GetStorageConnection(aDatabase.FilePath(
), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase
.MaybeKeyRef())); if ((__builtin_expect(!!(tryResult964.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())"
, tryResult964.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7834, mozilla::dom::quota::Severity::Error); return tryResult964
.propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection
>> storageConnection = tryResult964.unwrap();
7834 aDatabase.TelemetryId(), aDatabase.MaybeKeyRef()))auto tryResult964 = (GetStorageConnection(aDatabase.FilePath(
), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase
.MaybeKeyRef())); if ((__builtin_expect(!!(tryResult964.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())"
, tryResult964.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7834, mozilla::dom::quota::Severity::Error); return tryResult964
.propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection
>> storageConnection = tryResult964.unwrap();
;
7835
7836 RefPtr<DatabaseConnection> connection = new DatabaseConnection(
7837 std::move(storageConnection), aDatabase.GetFileManagerPtr());
7838
7839 QM_TRY(MOZ_TO_RESULT(connection->Init())){auto tryResult965 = (ToResult(connection->Init())); static_assert
(std::is_empty_v<typename decltype(tryResult965)::ok_type>
); if ((__builtin_expect(!!(tryResult965.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(connection->Init())", tryResult965
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7839, mozilla::dom::quota::Severity::Error); return tryResult965
.propagateErr(); }}
;
7840
7841 dbInfo->mConnection = connection;
7842
7843 IDB_DEBUG_LOG(("ConnectionPool created connection 0x%p for '%s'",
7844 dbInfo->mConnection.get(),
7845 NS_ConvertUTF16toUTF8(aDatabase.FilePath()).get()));
7846
7847#ifdef DEBUG1
7848 dbInfo->mDEBUGConnectionEventTarget = GetCurrentSerialEventTarget();
7849#endif
7850
7851 return connection;
7852}
7853
7854uint64_t ConnectionPool::Start(
7855 const nsID& aBackgroundChildLoggingId, const nsACString& aDatabaseId,
7856 int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames,
7857 bool aIsWriteTransaction,
7858 TransactionDatabaseOperationBase* aTransactionOp) {
7859 AssertIsOnOwningThread();
7860 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7860); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { *((volatile int*)__null) = 7860; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7861 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7861); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mNextTransactionId < (18446744073709551615UL)"
")"); do { *((volatile int*)__null) = 7861; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7862 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7862); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownRequested"
")"); do { *((volatile int*)__null) = 7862; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7863
7864 AUTO_PROFILER_LABEL("ConnectionPool::Start", DOM)mozilla::AutoProfilerLabel raiiObject7864( "ConnectionPool::Start"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7865
7866 const uint64_t transactionId = ++mNextTransactionId;
7867
7868 // To avoid always acquiring a lock, we don't use WithEntryHandle here, which
7869 // would require a lock in any case.
7870 DatabaseInfo* dbInfo = mDatabases.Get(aDatabaseId);
7871
7872 const bool databaseInfoIsNew = !dbInfo;
7873
7874 if (databaseInfoIsNew) {
7875 MutexAutoLock lock(mDatabasesMutex);
7876
7877 dbInfo = mDatabases
7878 .InsertOrUpdate(aDatabaseId,
7879 MakeUnique<DatabaseInfo>(this, aDatabaseId))
7880 .get();
7881 }
7882
7883 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7883); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Contains(transactionId)"
")"); do { *((volatile int*)__null) = 7883; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7884 auto& transactionInfo = *mTransactions.InsertOrUpdate(
7885 transactionId, MakeUnique<TransactionInfo>(
7886 *dbInfo, aBackgroundChildLoggingId, aDatabaseId,
7887 transactionId, aLoggingSerialNumber, aObjectStoreNames,
7888 aIsWriteTransaction, aTransactionOp));
7889
7890 if (aIsWriteTransaction) {
7891 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)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7891); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo->mWriteTransactionCount < (4294967295U)"
")"); do { *((volatile int*)__null) = 7891; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7892 dbInfo->mWriteTransactionCount++;
7893 } else {
7894 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7894); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo->mReadTransactionCount < (4294967295U)"
")"); do { *((volatile int*)__null) = 7894; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7895 dbInfo->mReadTransactionCount++;
7896 }
7897
7898 auto& blockingTransactions = dbInfo->mBlockingTransactions;
7899
7900 for (const nsAString& objectStoreName : aObjectStoreNames) {
7901 TransactionInfoPair* blockInfo =
7902 blockingTransactions.GetOrInsertNew(objectStoreName);
7903
7904 // Mark what we are blocking on.
7905 if (const auto maybeBlockingRead = blockInfo->mLastBlockingReads) {
7906 transactionInfo.mBlockedOn.Insert(&maybeBlockingRead.ref());
7907 maybeBlockingRead->AddBlockingTransaction(transactionInfo);
7908 }
7909
7910 if (aIsWriteTransaction) {
7911 for (const auto blockingWrite : blockInfo->mLastBlockingWrites) {
7912 transactionInfo.mBlockedOn.Insert(blockingWrite);
7913 blockingWrite->AddBlockingTransaction(transactionInfo);
7914 }
7915
7916 blockInfo->mLastBlockingReads = SomeRef(transactionInfo);
7917 blockInfo->mLastBlockingWrites.Clear();
7918 } else {
7919 blockInfo->mLastBlockingWrites.AppendElement(
7920 WrapNotNullUnchecked(&transactionInfo));
7921 }
7922 }
7923
7924 if (!transactionInfo.mBlockedOn.Count()) {
7925 Unused << ScheduleTransaction(transactionInfo,
7926 /* aFromQueuedTransactions */ false);
7927 }
7928
7929 if (!databaseInfoIsNew &&
7930 (mIdleDatabases.RemoveElement(dbInfo) ||
7931 mDatabasesPerformingIdleMaintenance.RemoveElement(dbInfo))) {
7932 AdjustIdleTimer();
7933 }
7934
7935 return transactionId;
7936}
7937
7938void ConnectionPool::Dispatch(uint64_t aTransactionId, nsIRunnable* aRunnable) {
7939 AssertIsOnOwningThread();
7940 MOZ_ASSERT(aRunnable)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aRunnable)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aRunnable))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aRunnable", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7940); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRunnable" ")"
); do { *((volatile int*)__null) = 7940; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7941
7942 AUTO_PROFILER_LABEL("ConnectionPool::Dispatch", DOM)mozilla::AutoProfilerLabel raiiObject7942( "ConnectionPool::Dispatch"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7943
7944 auto* const transactionInfo = mTransactions.Get(aTransactionId);
7945 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7945); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo"
")"); do { *((volatile int*)__null) = 7945; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7946 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7946); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!transactionInfo->mFinished"
")"); do { *((volatile int*)__null) = 7946; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7947
7948 if (transactionInfo->mRunning) {
7949 DatabaseInfo& dbInfo = transactionInfo->mDatabaseInfo;
7950 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7950); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mEventTarget"
")"); do { *((volatile int*)__null) = 7950; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7951 MOZ_ASSERT(!dbInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!dbInfo.mClosing)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!dbInfo.mClosing))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!dbInfo.mClosing"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mClosing"
")"); do { *((volatile int*)__null) = 7951; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7952 MOZ_ASSERT_IF(do { if (transactionInfo->mIsWriteTransaction) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(dbInfo.
mRunningWriteTransaction && dbInfo.mRunningWriteTransaction
.refEquals(*transactionInfo))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbInfo.mRunningWriteTransaction
&& dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7955); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)"
")"); do { *((volatile int*)__null) = 7955; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
7953 transactionInfo->mIsWriteTransaction,do { if (transactionInfo->mIsWriteTransaction) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(dbInfo.
mRunningWriteTransaction && dbInfo.mRunningWriteTransaction
.refEquals(*transactionInfo))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbInfo.mRunningWriteTransaction
&& dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7955); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)"
")"); do { *((volatile int*)__null) = 7955; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
7954 dbInfo.mRunningWriteTransaction &&do { if (transactionInfo->mIsWriteTransaction) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(dbInfo.
mRunningWriteTransaction && dbInfo.mRunningWriteTransaction
.refEquals(*transactionInfo))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbInfo.mRunningWriteTransaction
&& dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7955); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)"
")"); do { *((volatile int*)__null) = 7955; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
7955 dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo))do { if (transactionInfo->mIsWriteTransaction) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(dbInfo.
mRunningWriteTransaction && dbInfo.mRunningWriteTransaction
.refEquals(*transactionInfo))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbInfo.mRunningWriteTransaction
&& dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7955); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)"
")"); do { *((volatile int*)__null) = 7955; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
7956
7957 MOZ_ALWAYS_SUCCEEDS(dbInfo.Dispatch(do_AddRef(aRunnable)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(dbInfo.Dispatch(do_AddRef(aRunnable)))), 1)))), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(dbInfo.Dispatch(do_AddRef(aRunnable)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7957); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(dbInfo.Dispatch(do_AddRef(aRunnable)))"
")"); do { *((volatile int*)__null) = 7957; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
7958 } else {
7959 transactionInfo->mQueuedRunnables.AppendElement(aRunnable);
7960 }
7961}
7962
7963void ConnectionPool::Finish(uint64_t aTransactionId,
7964 FinishCallback* aCallback) {
7965 AssertIsOnOwningThread();
7966
7967#ifdef DEBUG1
7968 auto* const transactionInfo = mTransactions.Get(aTransactionId);
7969 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7969); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo"
")"); do { *((volatile int*)__null) = 7969; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7970 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!transactionInfo->mFinished"
")"); do { *((volatile int*)__null) = 7970; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7971#endif
7972
7973 AUTO_PROFILER_LABEL("ConnectionPool::Finish", DOM)mozilla::AutoProfilerLabel raiiObject7973( "ConnectionPool::Finish"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7974
7975 RefPtr<FinishCallbackWrapper> wrapper =
7976 new FinishCallbackWrapper(this, aTransactionId, aCallback);
7977
7978 Dispatch(aTransactionId, wrapper);
7979
7980#ifdef DEBUG1
7981 transactionInfo->mFinished.Flip();
7982#endif
7983}
7984
7985void ConnectionPool::WaitForDatabaseToComplete(const nsCString& aDatabaseId,
7986 nsIRunnable* aCallback) {
7987 AssertIsOnOwningThread();
7988 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7988); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { *((volatile int*)__null) = 7988; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7989 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7989); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { *((volatile int*)__null) = 7989; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7990
7991 AUTO_PROFILER_LABEL("ConnectionPool::WaitForDatabaseToComplete", DOM)mozilla::AutoProfilerLabel raiiObject7991( "ConnectionPool::WaitForDatabaseToComplete"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7992
7993 if (!CloseDatabaseWhenIdleInternal(aDatabaseId)) {
7994 Unused << aCallback->Run();
7995 return;
7996 }
7997
7998 mCompleteCallbacks.EmplaceBack(
7999 MakeUnique<DatabaseCompleteCallback>(aDatabaseId, aCallback));
8000}
8001
8002void ConnectionPool::Shutdown() {
8003 AssertIsOnOwningThread();
8004 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8004); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownComplete"
")"); do { *((volatile int*)__null) = 8004; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8005
8006 AUTO_PROFILER_LABEL("ConnectionPool::Shutdown", DOM)mozilla::AutoProfilerLabel raiiObject8006( "ConnectionPool::Shutdown"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8007
8008 mShutdownRequested.Flip();
8009
8010 CancelIdleTimer();
8011 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8011); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()"
")"); do { *((volatile int*)__null) = 8011; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8012
8013 mIdleTimer = nullptr;
8014
8015 CloseIdleDatabases();
8016
8017 if (!mDatabases.Count()) {
8018 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8018); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { *((volatile int*)__null) = 8018; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8019
8020 Cleanup();
8021
8022 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8022); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownComplete"
")"); do { *((volatile int*)__null) = 8022; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8023
8024 mIOTarget->Shutdown();
8025
8026 return;
8027 }
8028
8029 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); })"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8031); AnnotateMozCrashReason("MOZ_CRASH(" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
")"); do { *((volatile int*)__null) = 8031; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8030 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); })"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8031); AnnotateMozCrashReason("MOZ_CRASH(" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
")"); do { *((volatile int*)__null) = 8031; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8031 }))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); })"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8031); AnnotateMozCrashReason("MOZ_CRASH(" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
")"); do { *((volatile int*)__null) = 8031; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8032
8033 mIOTarget->Shutdown();
8034}
8035
8036void ConnectionPool::Cleanup() {
8037 AssertIsOnOwningThread();
8038 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8038); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested"
")"); do { *((volatile int*)__null) = 8038; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8039 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8039); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownComplete"
")"); do { *((volatile int*)__null) = 8039; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8040 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabases.Count()"
")"); do { *((volatile int*)__null) = 8040; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8041 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { *((volatile int*)__null) = 8041; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8042
8043 AUTO_PROFILER_LABEL("ConnectionPool::Cleanup", DOM)mozilla::AutoProfilerLabel raiiObject8043( "ConnectionPool::Cleanup"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8044
8045 if (!mCompleteCallbacks.IsEmpty()) {
8046 // Run all callbacks manually now.
8047
8048 {
8049 auto completeCallbacks = std::move(mCompleteCallbacks);
8050 for (const auto& completeCallback : completeCallbacks) {
8051 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8051); AnnotateMozCrashReason("MOZ_ASSERT" "(" "completeCallback"
")"); do { *((volatile int*)__null) = 8051; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8052 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8052); AnnotateMozCrashReason("MOZ_ASSERT" "(" "completeCallback->mCallback"
")"); do { *((volatile int*)__null) = 8052; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8053
8054 Unused << completeCallback->mCallback->Run();
8055 }
8056
8057 // We expect no new callbacks being completed by running the existing
8058 // ones.
8059 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8059); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCompleteCallbacks.IsEmpty()"
")"); do { *((volatile int*)__null) = 8059; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8060 }
8061
8062 // And make sure they get processed.
8063 nsIThread* currentThread = NS_GetCurrentThread();
8064 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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8064); AnnotateMozCrashReason("MOZ_ASSERT" "(" "currentThread"
")"); do { *((volatile int*)__null) = 8064; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8065
8066 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8066); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_ProcessPendingEvents(currentThread))"
")"); do { *((volatile int*)__null) = 8066; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8067 }
8068
8069 mShutdownComplete.Flip();
8070}
8071
8072void ConnectionPool::AdjustIdleTimer() {
8073 AssertIsOnOwningThread();
8074 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8074); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer"
")"); do { *((volatile int*)__null) = 8074; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8075
8076 AUTO_PROFILER_LABEL("ConnectionPool::AdjustIdleTimer", DOM)mozilla::AutoProfilerLabel raiiObject8076( "ConnectionPool::AdjustIdleTimer"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8077
8078 // Figure out the next time at which we should release idle resources. This
8079 // includes both databases and threads.
8080 TimeStamp newTargetIdleTime;
8081 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8081); AnnotateMozCrashReason("MOZ_ASSERT" "(" "newTargetIdleTime.IsNull()"
")"); do { *((volatile int*)__null) = 8081; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8082
8083 if (!mIdleDatabases.IsEmpty()) {
8084 newTargetIdleTime = mIdleDatabases[0].mIdleTime;
8085 }
8086
8087 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8087); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 8087; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
8088
8089 // Cancel the timer if it was running and the new target time is different.
8090 if (!mTargetIdleTime.IsNull() &&
8091 (newTargetIdleTime.IsNull() || mTargetIdleTime != newTargetIdleTime)) {
8092 CancelIdleTimer();
8093
8094 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8094); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()"
")"); do { *((volatile int*)__null) = 8094; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8095 }
8096
8097 // Schedule the timer if we have a target time different than before.
8098 if (!newTargetIdleTime.IsNull() &&
8099 (mTargetIdleTime.IsNull() || mTargetIdleTime != newTargetIdleTime)) {
8100 double delta = (newTargetIdleTime - TimeStamp::NowLoRes()).ToMilliseconds();
8101
8102 uint32_t delay;
8103 if (delta > 0) {
8104 delay = uint32_t(std::min(delta, double(UINT32_MAX(4294967295U))));
8105 } else {
8106 delay = 0;
8107 }
8108
8109 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"
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8111); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))"
")"); do { *((volatile int*)__null) = 8111; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8110 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"
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8111); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))"
")"); do { *((volatile int*)__null) = 8111; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8111 "ConnectionPool::IdleTimerCallback"))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback,
this, delay, nsITimer::TYPE_ONE_SHOT, "ConnectionPool::IdleTimerCallback"
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8111); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))"
")"); do { *((volatile int*)__null) = 8111; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8112
8113 mTargetIdleTime = newTargetIdleTime;
8114 }
8115}
8116
8117void ConnectionPool::CancelIdleTimer() {
8118 AssertIsOnOwningThread();
8119 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8119); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer"
")"); do { *((volatile int*)__null) = 8119; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8120
8121 if (!mTargetIdleTime.IsNull()) {
8122 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())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8122); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->Cancel())"
")"); do { *((volatile int*)__null) = 8122; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8123
8124 mTargetIdleTime = TimeStamp();
8125 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8125); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()"
")"); do { *((volatile int*)__null) = 8125; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8126 }
8127}
8128
8129void ConnectionPool::CloseIdleDatabases() {
8130 AssertIsOnOwningThread();
8131 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8131); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested"
")"); do { *((volatile int*)__null) = 8131; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8132
8133 AUTO_PROFILER_LABEL("ConnectionPool::CloseIdleDatabases", DOM)mozilla::AutoProfilerLabel raiiObject8133( "ConnectionPool::CloseIdleDatabases"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8134
8135 if (!mIdleDatabases.IsEmpty()) {
8136 for (IdleDatabaseInfo& idleInfo : mIdleDatabases) {
8137 CloseDatabase(*idleInfo.mDatabaseInfo.ref());
8138 }
8139 mIdleDatabases.Clear();
8140 }
8141
8142 if (!mDatabasesPerformingIdleMaintenance.IsEmpty()) {
8143 for (PerformingIdleMaintenanceDatabaseInfo& performingIdleMaintenanceInfo :
8144 mDatabasesPerformingIdleMaintenance) {
8145 CloseDatabase(*performingIdleMaintenanceInfo.mDatabaseInfo);
8146 }
8147 mDatabasesPerformingIdleMaintenance.Clear();
8148 }
8149}
8150
8151bool ConnectionPool::ScheduleTransaction(TransactionInfo& aTransactionInfo,
8152 bool aFromQueuedTransactions) {
8153 AssertIsOnOwningThread();
8154
8155 AUTO_PROFILER_LABEL("ConnectionPool::ScheduleTransaction", DOM)mozilla::AutoProfilerLabel raiiObject8155( "ConnectionPool::ScheduleTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8156
8157 DatabaseInfo& dbInfo = aTransactionInfo.mDatabaseInfo;
8158
8159 dbInfo.mIdle = false;
8160
8161 if (dbInfo.mClosing) {
8162 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8162); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&dbInfo)"
")"); do { *((volatile int*)__null) = 8162; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8163 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8164); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)"
")"); do { *((volatile int*)__null) = 8164; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
8164 !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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8164); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)"
")"); do { *((volatile int*)__null) = 8164; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8165
8166 dbInfo.mTransactionsScheduledDuringClose.AppendElement(
8167 WrapNotNullUnchecked(&aTransactionInfo));
8168 return true;
8169 }
8170
8171 if (!dbInfo.mEventTarget) {
8172 const uint32_t serialNumber = SerialNumber();
8173 const nsCString serialName =
8174 nsPrintfCString("IndexedDB #%" PRIu32"u", serialNumber);
8175
8176 dbInfo.mEventTarget =
8177 TaskQueue::Create(do_AddRef(mIOTarget), serialName.get());
8178 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8178); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mEventTarget"
")"); do { *((volatile int*)__null) = 8178; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8179 IDB_DEBUG_LOG(("ConnectionPool created task queue %" PRIu32"u", serialNumber));
8180 }
8181
8182 // The number of active operations equals the number of databases minus idle
8183 // databases. The maximum number of database operations which can make
8184 // progress at the same time is kMaxConnectionThreadCount. If we are at this
8185 // limit, all idle processing is interrupted to make room for user
8186 // transactions.
8187 if (mDatabases.Count() >=
8188 (mIdleDatabases.Length() + kMaxConnectionThreadCount) &&
8189 !mDatabasesPerformingIdleMaintenance.IsEmpty()) {
8190 const auto& busyDbs = mDatabasesPerformingIdleMaintenance;
8191 for (auto dbInfo = busyDbs.rbegin(); dbInfo != busyDbs.rend(); ++dbInfo) {
8192 (*dbInfo).mIdleConnectionRunnable->Interrupt();
8193 }
8194 }
8195
8196 if (aTransactionInfo.mIsWriteTransaction) {
8197 if (dbInfo.mRunningWriteTransaction) {
8198 // SQLite only allows one write transaction at a time so queue this
8199 // transaction for later.
8200 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8201); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)"
")"); do { *((volatile int*)__null) = 8201; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
8201 !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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8201); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)"
")"); do { *((volatile int*)__null) = 8201; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8202
8203 dbInfo.mScheduledWriteTransactions.AppendElement(
8204 WrapNotNullUnchecked(&aTransactionInfo));
8205 return true;
8206 }
8207
8208 dbInfo.mRunningWriteTransaction = SomeRef(aTransactionInfo);
8209 dbInfo.mNeedsCheckpoint = true;
8210 }
8211
8212 MOZ_ASSERT(!aTransactionInfo.mRunning)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aTransactionInfo.mRunning)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aTransactionInfo.mRunning))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aTransactionInfo.mRunning"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8212); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aTransactionInfo.mRunning"
")"); do { *((volatile int*)__null) = 8212; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8213 aTransactionInfo.mRunning = true;
8214
8215 nsTArray<nsCOMPtr<nsIRunnable>>& queuedRunnables =
8216 aTransactionInfo.mQueuedRunnables;
8217
8218 if (!queuedRunnables.IsEmpty()) {
8219 for (auto& queuedRunnable : queuedRunnables) {
8220 MOZ_ALWAYS_SUCCEEDS(dbInfo.Dispatch(queuedRunnable.forget()))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(dbInfo.Dispatch(queuedRunnable.forget()))), 1)))), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(dbInfo.Dispatch(queuedRunnable.forget()))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8220); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(dbInfo.Dispatch(queuedRunnable.forget()))"
")"); do { *((volatile int*)__null) = 8220; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8221 }
8222
8223 queuedRunnables.Clear();
8224 }
8225
8226 return true;
8227}
8228
8229void ConnectionPool::NoteFinishedTransaction(uint64_t aTransactionId) {
8230 AssertIsOnOwningThread();
8231
8232 AUTO_PROFILER_LABEL("ConnectionPool::NoteFinishedTransaction", DOM)mozilla::AutoProfilerLabel raiiObject8232( "ConnectionPool::NoteFinishedTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8233
8234 auto* const transactionInfo = mTransactions.Get(aTransactionId);
8235 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8235); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo"
")"); do { *((volatile int*)__null) = 8235; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8236 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8236); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mRunning"
")"); do { *((volatile int*)__null) = 8236; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8237 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8237); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mFinished"
")"); do { *((volatile int*)__null) = 8237; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8238
8239 transactionInfo->mRunning = false;
8240
8241 DatabaseInfo& dbInfo = transactionInfo->mDatabaseInfo;
8242 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8242); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabases.Get(transactionInfo->mDatabaseId) == &dbInfo"
")"); do { *((volatile int*)__null) = 8242; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8243 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8243); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mEventTarget"
")"); do { *((volatile int*)__null) = 8243; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8244
8245 // Schedule the next write transaction if there are any queued.
8246 if (dbInfo.mRunningWriteTransaction &&
8247 dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)) {
8248 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8248); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mIsWriteTransaction"
")"); do { *((volatile int*)__null) = 8248; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8249 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8249); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mNeedsCheckpoint"
")"); do { *((volatile int*)__null) = 8249; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8250
8251 dbInfo.mRunningWriteTransaction = Nothing();
8252
8253 if (!dbInfo.mScheduledWriteTransactions.IsEmpty()) {
8254 const auto nextWriteTransaction = dbInfo.mScheduledWriteTransactions[0];
8255
8256 dbInfo.mScheduledWriteTransactions.RemoveElementAt(0);
8257
8258 MOZ_ALWAYS_TRUE(ScheduleTransaction(*nextWriteTransaction,do { if ((__builtin_expect(!!(ScheduleTransaction(*nextWriteTransaction
, false)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "ScheduleTransaction(*nextWriteTransaction, false)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8259); AnnotateMozCrashReason("MOZ_CRASH(" "ScheduleTransaction(*nextWriteTransaction, false)"
")"); do { *((volatile int*)__null) = 8259; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8259 /* aFromQueuedTransactions */ false))do { if ((__builtin_expect(!!(ScheduleTransaction(*nextWriteTransaction
, false)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "ScheduleTransaction(*nextWriteTransaction, false)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8259); AnnotateMozCrashReason("MOZ_CRASH(" "ScheduleTransaction(*nextWriteTransaction, false)"
")"); do { *((volatile int*)__null) = 8259; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8260 }
8261 }
8262
8263 for (const auto& objectStoreName : transactionInfo->mObjectStoreNames) {
8264 TransactionInfoPair* blockInfo =
8265 dbInfo.mBlockingTransactions.Get(objectStoreName);
8266 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8266); AnnotateMozCrashReason("MOZ_ASSERT" "(" "blockInfo" ")"
); do { *((volatile int*)__null) = 8266; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8267
8268 if (transactionInfo->mIsWriteTransaction && blockInfo->mLastBlockingReads &&
8269 blockInfo->mLastBlockingReads.refEquals(*transactionInfo)) {
8270 blockInfo->mLastBlockingReads = Nothing();
8271 }
8272
8273 blockInfo->mLastBlockingWrites.RemoveElement(transactionInfo);
8274 }
8275
8276 transactionInfo->RemoveBlockingTransactions();
8277
8278 if (transactionInfo->mIsWriteTransaction) {
8279 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8279); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mWriteTransactionCount"
")"); do { *((volatile int*)__null) = 8279; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8280 dbInfo.mWriteTransactionCount--;
8281 } else {
8282 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8282); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mReadTransactionCount"
")"); do { *((volatile int*)__null) = 8282; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8283 dbInfo.mReadTransactionCount--;
8284 }
8285
8286 mTransactions.Remove(aTransactionId);
8287
8288 if (!dbInfo.TotalTransactionCount()) {
8289 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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8289); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mIdle"
")"); do { *((volatile int*)__null) = 8289; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8290 dbInfo.mIdle = true;
8291
8292 NoteIdleDatabase(dbInfo);
8293 }
8294}
8295
8296void ConnectionPool::ScheduleQueuedTransactions() {
8297 AssertIsOnOwningThread();
8298 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8298); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mQueuedTransactions.IsEmpty()"
")"); do { *((volatile int*)__null) = 8298; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8299
8300 AUTO_PROFILER_LABEL("ConnectionPool::ScheduleQueuedTransactions", DOM)mozilla::AutoProfilerLabel raiiObject8300( "ConnectionPool::ScheduleQueuedTransactions"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8301
8302 const auto foundIt = std::find_if(
8303 mQueuedTransactions.begin(), mQueuedTransactions.end(),
8304 [&me = *this](const auto& queuedTransaction) {
8305 return !me.ScheduleTransaction(*queuedTransaction,
8306 /* aFromQueuedTransactions */ true);
8307 });
8308
8309 mQueuedTransactions.RemoveElementsRange(mQueuedTransactions.begin(), foundIt);
8310
8311 AdjustIdleTimer();
8312}
8313
8314void ConnectionPool::NoteIdleDatabase(DatabaseInfo& aDatabaseInfo) {
8315 AssertIsOnOwningThread();
8316 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8316); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()"
")"); do { *((volatile int*)__null) = 8316; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8317 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8317); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget"
")"); do { *((volatile int*)__null) = 8317; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8318 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8318); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&aDatabaseInfo)"
")"); do { *((volatile int*)__null) = 8318; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8319
8320 AUTO_PROFILER_LABEL("ConnectionPool::NoteIdleDatabase", DOM)mozilla::AutoProfilerLabel raiiObject8320( "ConnectionPool::NoteIdleDatabase"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8321
8322 const bool otherDatabasesWaiting = !mQueuedTransactions.IsEmpty();
8323
8324 // We check mShutdownRequested because when it is true, mIdleTimer is null.
8325 if (mShutdownRequested || otherDatabasesWaiting ||
8326 aDatabaseInfo.mCloseOnIdle) {
8327 // Make sure we close the connection if we're shutting down or giving the
8328 // thread to another database.
8329 CloseDatabase(aDatabaseInfo);
8330
8331 if (otherDatabasesWaiting) {
8332 ScheduleQueuedTransactions();
8333 }
8334
8335 return;
8336 }
8337
8338 mIdleDatabases.InsertElementSorted(IdleDatabaseInfo{aDatabaseInfo});
8339
8340 AdjustIdleTimer();
8341}
8342
8343void ConnectionPool::NoteClosedDatabase(DatabaseInfo& aDatabaseInfo) {
8344 AssertIsOnOwningThread();
8345 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8345); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mClosing"
")"); do { *((volatile int*)__null) = 8345; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8346 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8346); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&aDatabaseInfo)"
")"); do { *((volatile int*)__null) = 8346; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8347
8348 AUTO_PROFILER_LABEL("ConnectionPool::NoteClosedDatabase", DOM)mozilla::AutoProfilerLabel raiiObject8348( "ConnectionPool::NoteClosedDatabase"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8349
8350 aDatabaseInfo.mClosing = false;
8351
8352 // Schedule any transactions that were started while we were closing the
8353 // connection.
8354 if (!mQueuedTransactions.IsEmpty()) {
8355 ScheduleQueuedTransactions();
8356 } else if (!aDatabaseInfo.TotalTransactionCount() && !mShutdownRequested) {
8357 AdjustIdleTimer();
8358 }
8359
8360 // Schedule any transactions that were started while we were closing the
8361 // connection.
8362 if (aDatabaseInfo.TotalTransactionCount()) {
8363 auto& scheduledTransactions =
8364 aDatabaseInfo.mTransactionsScheduledDuringClose;
8365
8366 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8366); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!scheduledTransactions.IsEmpty()"
")"); do { *((volatile int*)__null) = 8366; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8367
8368 for (const auto& scheduledTransaction : scheduledTransactions) {
8369 Unused << ScheduleTransaction(*scheduledTransaction,
8370 /* aFromQueuedTransactions */ false);
8371 }
8372
8373 scheduledTransactions.Clear();
8374
8375 return;
8376 }
8377
8378 // There are no more transactions and the connection has been closed. We're
8379 // done with this database.
8380 {
8381 MutexAutoLock lock(mDatabasesMutex);
8382
8383 mDatabases.Remove(aDatabaseInfo.mDatabaseId);
8384 }
8385
8386 // That just deleted |aDatabaseInfo|, we must not access that below.
8387
8388 // See if we need to fire any complete callbacks now that the database is
8389 // finished.
8390 mCompleteCallbacks.RemoveLastElements(
8391 mCompleteCallbacks.end() -
8392 std::remove_if(mCompleteCallbacks.begin(), mCompleteCallbacks.end(),
8393 [&me = *this](const auto& completeCallback) {
8394 return me.MaybeFireCallback(completeCallback.get());
8395 }));
8396
8397 // If that was the last database and we're supposed to be shutting down then
8398 // we are finished.
8399 if (mShutdownRequested && !mDatabases.Count()) {
8400 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8400); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { *((volatile int*)__null) = 8400; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8401 Cleanup();
8402 }
8403}
8404
8405bool ConnectionPool::MaybeFireCallback(DatabaseCompleteCallback* aCallback) {
8406 AssertIsOnOwningThread();
8407 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8407); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { *((volatile int*)__null) = 8407; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8408 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8408); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aCallback->mDatabaseId.IsEmpty()"
")"); do { *((volatile int*)__null) = 8408; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8409 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8409); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback->mCallback"
")"); do { *((volatile int*)__null) = 8409; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8410
8411 AUTO_PROFILER_LABEL("ConnectionPool::MaybeFireCallback", DOM)mozilla::AutoProfilerLabel raiiObject8411( "ConnectionPool::MaybeFireCallback"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8412
8413 if (mDatabases.Get(aCallback->mDatabaseId)) {
8414 return false;
8415 }
8416
8417 Unused << aCallback->mCallback->Run();
8418 return true;
8419}
8420
8421void ConnectionPool::PerformIdleDatabaseMaintenance(
8422 DatabaseInfo& aDatabaseInfo) {
8423 AssertIsOnOwningThread();
8424 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8424); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()"
")"); do { *((volatile int*)__null) = 8424; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8425 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8425); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget"
")"); do { *((volatile int*)__null) = 8425; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8426 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8426); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mIdle"
")"); do { *((volatile int*)__null) = 8426; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8427 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8427); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mCloseOnIdle"
")"); do { *((volatile int*)__null) = 8427; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8428 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8428); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mClosing"
")"); do { *((volatile int*)__null) = 8428; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8429 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8429); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.Contains(&aDatabaseInfo)"
")"); do { *((volatile int*)__null) = 8429; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8430 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8430); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo)"
")"); do { *((volatile int*)__null) = 8430; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8431
8432 const bool neededCheckpoint = aDatabaseInfo.mNeedsCheckpoint;
8433
8434 aDatabaseInfo.mNeedsCheckpoint = false;
8435 aDatabaseInfo.mIdle = false;
8436
8437 auto idleConnectionRunnable =
8438 MakeRefPtr<IdleConnectionRunnable>(aDatabaseInfo, neededCheckpoint);
8439
8440 mDatabasesPerformingIdleMaintenance.AppendElement(
8441 PerformingIdleMaintenanceDatabaseInfo{aDatabaseInfo,
8442 idleConnectionRunnable});
8443
8444 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8445); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 8445; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8445 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8445); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 8445; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8446}
8447
8448void ConnectionPool::CloseDatabase(DatabaseInfo& aDatabaseInfo) const {
8449 AssertIsOnOwningThread();
8450 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8450); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()"
")"); do { *((volatile int*)__null) = 8450; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8451 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8451); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget"
")"); do { *((volatile int*)__null) = 8451; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8452 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8452); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mClosing"
")"); do { *((volatile int*)__null) = 8452; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8453
8454 aDatabaseInfo.mIdle = false;
8455 aDatabaseInfo.mNeedsCheckpoint = false;
8456 aDatabaseInfo.mClosing = true;
8457
8458 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8459); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))"
")"); do { *((volatile int*)__null) = 8459; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8459 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8459); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))"
")"); do { *((volatile int*)__null) = 8459; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8460}
8461
8462bool ConnectionPool::CloseDatabaseWhenIdleInternal(
8463 const nsACString& aDatabaseId) {
8464 AssertIsOnOwningThread();
8465 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8465); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { *((volatile int*)__null) = 8465; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8466
8467 AUTO_PROFILER_LABEL("ConnectionPool::CloseDatabaseWhenIdleInternal", DOM)mozilla::AutoProfilerLabel raiiObject8467( "ConnectionPool::CloseDatabaseWhenIdleInternal"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8468
8469 if (DatabaseInfo* dbInfo = mDatabases.Get(aDatabaseId)) {
8470 if (mIdleDatabases.RemoveElement(dbInfo) ||
8471 mDatabasesPerformingIdleMaintenance.RemoveElement(dbInfo)) {
8472 CloseDatabase(*dbInfo);
8473 AdjustIdleTimer();
8474 } else {
8475 dbInfo->mCloseOnIdle.EnsureFlipped();
8476 }
8477
8478 return true;
8479 }
8480
8481 return false;
8482}
8483
8484ConnectionPool::ConnectionRunnable::ConnectionRunnable(
8485 DatabaseInfo& aDatabaseInfo)
8486 : Runnable("dom::indexedDB::ConnectionPool::ConnectionRunnable"),
8487 mDatabaseInfo(aDatabaseInfo),
8488 mOwningEventTarget(GetCurrentSerialEventTarget()) {
8489 AssertIsOnBackgroundThread();
8490 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8490); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mConnectionPool"
")"); do { *((volatile int*)__null) = 8490; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8491 aDatabaseInfo.mConnectionPool->AssertIsOnOwningThread();
8492 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8492); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget"
")"); do { *((volatile int*)__null) = 8492; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8493}
8494
8495NS_IMETHODIMPnsresult
8496ConnectionPool::IdleConnectionRunnable::Run() {
8497 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseInfo.mIdle"
")"); do { *((volatile int*)__null) = 8497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8498
8499 const nsCOMPtr<nsIEventTarget> owningThread = std::move(mOwningEventTarget);
8500
8501 if (owningThread) {
8502 mDatabaseInfo.AssertIsOnConnectionThread();
8503
8504 // The connection could be null if EnsureConnection() didn't run or was not
8505 // successful in TransactionDatabaseOperationBase::RunOnConnectionThread().
8506 if (mDatabaseInfo.mConnection) {
8507 mDatabaseInfo.mConnection->DoIdleProcessing(mNeedsCheckpoint,
8508 mInterrupted);
8509 }
8510
8511 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8511); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 8511; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8512 return NS_OK;
8513 }
8514
8515 AssertIsOnBackgroundThread();
8516
8517 RefPtr<ConnectionPool> connectionPool = mDatabaseInfo.mConnectionPool;
8518 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8518); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool"
")"); do { *((volatile int*)__null) = 8518; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8519
8520 if (mDatabaseInfo.mClosing || mDatabaseInfo.TotalTransactionCount()) {
8521 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)"
")"); do { *((volatile int*)__null) = 8522; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
8522 &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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)"
")"); do { *((volatile int*)__null) = 8522; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8523 } else {
8524 MOZ_ALWAYS_TRUE(do { if ((__builtin_expect(!!(connectionPool->mDatabasesPerformingIdleMaintenance
.RemoveElement( &mDatabaseInfo)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8526); AnnotateMozCrashReason("MOZ_CRASH(" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
")"); do { *((volatile int*)__null) = 8526; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8525 connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement(do { if ((__builtin_expect(!!(connectionPool->mDatabasesPerformingIdleMaintenance
.RemoveElement( &mDatabaseInfo)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8526); AnnotateMozCrashReason("MOZ_CRASH(" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
")"); do { *((volatile int*)__null) = 8526; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8526 &mDatabaseInfo))do { if ((__builtin_expect(!!(connectionPool->mDatabasesPerformingIdleMaintenance
.RemoveElement( &mDatabaseInfo)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8526); AnnotateMozCrashReason("MOZ_CRASH(" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
")"); do { *((volatile int*)__null) = 8526; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8527
8528 connectionPool->NoteIdleDatabase(mDatabaseInfo);
8529 }
8530
8531 return NS_OK;
8532}
8533
8534NS_IMETHODIMPnsresult
8535ConnectionPool::CloseConnectionRunnable::Run() {
8536 AUTO_PROFILER_LABEL("ConnectionPool::CloseConnectionRunnable::Run", DOM)mozilla::AutoProfilerLabel raiiObject8536( "ConnectionPool::CloseConnectionRunnable::Run"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8537
8538 if (mOwningEventTarget) {
8539 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8539); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mClosing"
")"); do { *((volatile int*)__null) = 8539; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8540
8541 const nsCOMPtr<nsIEventTarget> owningThread = std::move(mOwningEventTarget);
8542
8543 // The connection could be null if EnsureConnection() didn't run or was not
8544 // successful in TransactionDatabaseOperationBase::RunOnConnectionThread().
8545 if (mDatabaseInfo.mConnection) {
8546 mDatabaseInfo.AssertIsOnConnectionThread();
8547
8548 mDatabaseInfo.mConnection->Close();
8549
8550 IDB_DEBUG_LOG(("ConnectionPool closed connection 0x%p",
8551 mDatabaseInfo.mConnection.get()));
8552
8553 mDatabaseInfo.mConnection = nullptr;
8554
8555#ifdef DEBUG1
8556 mDatabaseInfo.mDEBUGConnectionEventTarget = nullptr;
8557#endif
8558 }
8559
8560 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8560); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 8560; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8561 return NS_OK;
8562 }
8563
8564 RefPtr<ConnectionPool> connectionPool = mDatabaseInfo.mConnectionPool;
8565 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8565); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool"
")"); do { *((volatile int*)__null) = 8565; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8566
8567 connectionPool->NoteClosedDatabase(mDatabaseInfo);
8568 return NS_OK;
8569}
8570
8571ConnectionPool::DatabaseInfo::DatabaseInfo(ConnectionPool* aConnectionPool,
8572 const nsACString& aDatabaseId)
8573 : mConnectionPool(aConnectionPool),
8574 mDatabaseId(aDatabaseId),
8575 mReadTransactionCount(0),
8576 mWriteTransactionCount(0),
8577 mNeedsCheckpoint(false),
8578 mIdle(false),
8579 mClosing(false)
8580#ifdef DEBUG1
8581 ,
8582 mDEBUGConnectionEventTarget(nullptr)
8583#endif
8584{
8585 AssertIsOnBackgroundThread();
8586 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8586); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnectionPool"
")"); do { *((volatile int*)__null) = 8586; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8587 aConnectionPool->AssertIsOnOwningThread();
8588 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8588); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { *((volatile int*)__null) = 8588; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8589
8590 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<nsISupports, ConnectionPool
::DatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::DatabaseInfo"
, sizeof(*this)); } while (0)
;
8591}
8592
8593ConnectionPool::DatabaseInfo::~DatabaseInfo() {
8594 AssertIsOnBackgroundThread();
8595 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8595); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection"
")"); do { *((volatile int*)__null) = 8595; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8596 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8596); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mScheduledWriteTransactions.IsEmpty()"
")"); do { *((volatile int*)__null) = 8596; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8597 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8597); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunningWriteTransaction"
")"); do { *((volatile int*)__null) = 8597; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8598 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8598); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!TotalTransactionCount()"
")"); do { *((volatile int*)__null) = 8598; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8599
8600 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<nsISupports, ConnectionPool
::DatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::DatabaseInfo"
, sizeof(*this)); } while (0)
;
8601}
8602
8603nsresult ConnectionPool::DatabaseInfo::Dispatch(
8604 already_AddRefed<nsIRunnable> aRunnable) {
8605 nsCOMPtr<nsIRunnable> runnable = aRunnable;
8606
8607#ifdef DEBUG1
8608 if (kDEBUGTransactionThreadSleepMS) {
8609 runnable = MakeRefPtr<TransactionRunnable>(std::move(runnable));
8610 }
8611#endif
8612
8613 return mEventTarget->Dispatch(runnable.forget(), NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL);
8614}
8615
8616ConnectionPool::DatabaseCompleteCallback::DatabaseCompleteCallback(
8617 const nsCString& aDatabaseId, nsIRunnable* aCallback)
8618 : mDatabaseId(aDatabaseId), mCallback(aCallback) {
8619 AssertIsOnBackgroundThread();
8620 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8620); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.IsEmpty()"
")"); do { *((volatile int*)__null) = 8620; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8621 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8621); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { *((volatile int*)__null) = 8621; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8622
8623 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<nsISupports, ConnectionPool
::DatabaseCompleteCallback>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::DatabaseCompleteCallback"
, sizeof(*this)); } while (0)
;
8624}
8625
8626ConnectionPool::DatabaseCompleteCallback::~DatabaseCompleteCallback() {
8627 AssertIsOnBackgroundThread();
8628
8629 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<nsISupports, ConnectionPool
::DatabaseCompleteCallback>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::DatabaseCompleteCallback"
, sizeof(*this)); } while (0)
;
8630}
8631
8632ConnectionPool::FinishCallbackWrapper::FinishCallbackWrapper(
8633 ConnectionPool* aConnectionPool, uint64_t aTransactionId,
8634 FinishCallback* aCallback)
8635 : Runnable("dom::indexedDB::ConnectionPool::FinishCallbackWrapper"),
8636 mConnectionPool(aConnectionPool),
8637 mCallback(aCallback),
8638 mOwningEventTarget(GetCurrentSerialEventTarget()),
8639 mTransactionId(aTransactionId),
8640 mHasRunOnce(false) {
8641 AssertIsOnBackgroundThread();
8642 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnectionPool"
")"); do { *((volatile int*)__null) = 8642; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8643 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { *((volatile int*)__null) = 8643; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8644 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8644); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget"
")"); do { *((volatile int*)__null) = 8644; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8645}
8646
8647ConnectionPool::FinishCallbackWrapper::~FinishCallbackWrapper() {
8648 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8648); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnectionPool"
")"); do { *((volatile int*)__null) = 8648; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8649 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8649); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCallback"
")"); do { *((volatile int*)__null) = 8649; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8650}
8651
8652nsresult ConnectionPool::FinishCallbackWrapper::Run() {
8653 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8653); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnectionPool"
")"); do { *((volatile int*)__null) = 8653; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8654 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8654); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCallback" ")"
); do { *((volatile int*)__null) = 8654; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8655 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8655); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget"
")"); do { *((volatile int*)__null) = 8655; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8656
8657 AUTO_PROFILER_LABEL("ConnectionPool::FinishCallbackWrapper::Run", DOM)mozilla::AutoProfilerLabel raiiObject8657( "ConnectionPool::FinishCallbackWrapper::Run"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8658
8659 if (!mHasRunOnce) {
8660 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8660); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 8660; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8661
8662 mHasRunOnce = true;
8663
8664 Unused << mCallback->Run();
8665
8666 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8666); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 8666; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8667
8668 return NS_OK;
8669 }
8670
8671 mConnectionPool->AssertIsOnOwningThread();
8672 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8672); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mHasRunOnce"
")"); do { *((volatile int*)__null) = 8672; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8673
8674 RefPtr<ConnectionPool> connectionPool = std::move(mConnectionPool);
8675 RefPtr<FinishCallback> callback = std::move(mCallback);
8676
8677 callback->TransactionFinishedBeforeUnblock();
8678
8679 connectionPool->NoteFinishedTransaction(mTransactionId);
8680
8681 callback->TransactionFinishedAfterUnblock();
8682
8683 return NS_OK;
8684}
8685
8686uint32_t ConnectionPool::sSerialNumber = 0u;
8687
8688#ifdef DEBUG1
8689
8690ConnectionPool::TransactionRunnable::TransactionRunnable(
8691 nsCOMPtr<nsIRunnable> aRunnable)
8692 : Runnable("dom::indexedDB::ConnectionPool::TransactionRunnable"),
8693 mRunnable(std::move(aRunnable)) {
8694 AssertIsOnBackgroundThread();
8695 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8695); AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGTransactionThreadSleepMS"
")"); do { *((volatile int*)__null) = 8695; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8696}
8697
8698nsresult ConnectionPool::TransactionRunnable::Run() {
8699 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8699); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 8699; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8700
8701 QM_TRY(MOZ_TO_RESULT(mRunnable->Run())){auto tryResult966 = (ToResult(mRunnable->Run())); static_assert
(std::is_empty_v<typename decltype(tryResult966)::ok_type>
); if ((__builtin_expect(!!(tryResult966.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(mRunnable->Run())", tryResult966
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8701, mozilla::dom::quota::Severity::Error); return tryResult966
.propagateErr(); }}
;
8702
8703 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8704); AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS"
")"); do { *((volatile int*)__null) = 8704; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8704 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8704); AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS"
")"); do { *((volatile int*)__null) = 8704; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8705
8706 return NS_OK;
8707}
8708
8709#endif
8710
8711ConnectionPool::IdleResource::IdleResource(const TimeStamp& aIdleTime)
8712 : mIdleTime(aIdleTime) {
8713 AssertIsOnBackgroundThread();
8714 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8714); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIdleTime.IsNull()"
")"); do { *((volatile int*)__null) = 8714; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8715
8716 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<nsISupports, ConnectionPool
::IdleResource>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::IdleResource"
, sizeof(*this)); } while (0)
;
8717}
8718
8719ConnectionPool::IdleResource::~IdleResource() {
8720 AssertIsOnBackgroundThread();
8721
8722 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<nsISupports, ConnectionPool
::IdleResource>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::IdleResource"
, sizeof(*this)); } while (0)
;
8723}
8724
8725ConnectionPool::IdleDatabaseInfo::IdleDatabaseInfo(DatabaseInfo& aDatabaseInfo)
8726 : IdleResource(
8727 TimeStamp::NowLoRes() +
8728 (aDatabaseInfo.mIdle
8729 ? TimeDuration::FromMilliseconds(kConnectionIdleMaintenanceMS)
8730 : TimeDuration::FromMilliseconds(kConnectionIdleCloseMS))),
8731 mDatabaseInfo(WrapNotNullUnchecked(&aDatabaseInfo)) {
8732 AssertIsOnBackgroundThread();
8733
8734 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<nsISupports, ConnectionPool
::IdleDatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::IdleDatabaseInfo"
, sizeof(*this)); } while (0)
;
8735}
8736
8737ConnectionPool::IdleDatabaseInfo::~IdleDatabaseInfo() {
8738 AssertIsOnBackgroundThread();
8739
8740 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<nsISupports, ConnectionPool
::IdleDatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::IdleDatabaseInfo"
, sizeof(*this)); } while (0)
;
8741}
8742
8743ConnectionPool::PerformingIdleMaintenanceDatabaseInfo::
8744 PerformingIdleMaintenanceDatabaseInfo(
8745 DatabaseInfo& aDatabaseInfo,
8746 RefPtr<IdleConnectionRunnable> aIdleConnectionRunnable)
8747 : mDatabaseInfo(WrapNotNullUnchecked(&aDatabaseInfo)),
8748 mIdleConnectionRunnable(std::move(aIdleConnectionRunnable)) {
8749 AssertIsOnBackgroundThread();
8750 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8750); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleConnectionRunnable"
")"); do { *((volatile int*)__null) = 8750; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8751
8752 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<
nsISupports, ConnectionPool::PerformingIdleMaintenanceDatabaseInfo
>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo"
, sizeof(*this)); } while (0)
;
8753}
8754
8755ConnectionPool::PerformingIdleMaintenanceDatabaseInfo::
8756 ~PerformingIdleMaintenanceDatabaseInfo() {
8757 AssertIsOnBackgroundThread();
8758
8759 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<
nsISupports, ConnectionPool::PerformingIdleMaintenanceDatabaseInfo
>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo"
, sizeof(*this)); } while (0)
;
8760}
8761
8762ConnectionPool::TransactionInfo::TransactionInfo(
8763 DatabaseInfo& aDatabaseInfo, const nsID& aBackgroundChildLoggingId,
8764 const nsACString& aDatabaseId, uint64_t aTransactionId,
8765 int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames,
8766 bool aIsWriteTransaction, TransactionDatabaseOperationBase* aTransactionOp)
8767 : mDatabaseInfo(aDatabaseInfo),
8768 mBackgroundChildLoggingId(aBackgroundChildLoggingId),
8769 mDatabaseId(aDatabaseId),
8770 mTransactionId(aTransactionId),
8771 mLoggingSerialNumber(aLoggingSerialNumber),
8772 mObjectStoreNames(aObjectStoreNames.Clone()),
8773 mIsWriteTransaction(aIsWriteTransaction),
8774 mRunning(false) {
8775 AssertIsOnBackgroundThread();
8776 aDatabaseInfo.mConnectionPool->AssertIsOnOwningThread();
8777
8778 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<nsISupports, ConnectionPool
::TransactionInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::TransactionInfo"
, sizeof(*this)); } while (0)
;
8779
8780 if (aTransactionOp) {
8781 mQueuedRunnables.AppendElement(aTransactionOp);
8782 }
8783}
8784
8785ConnectionPool::TransactionInfo::~TransactionInfo() {
8786 AssertIsOnBackgroundThread();
8787 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8787); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mBlockedOn.Count()"
")"); do { *((volatile int*)__null) = 8787; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8788 MOZ_ASSERT(mQueuedRunnables.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mQueuedRunnables.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mQueuedRunnables.IsEmpty()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mQueuedRunnables.IsEmpty()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8788); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQueuedRunnables.IsEmpty()"
")"); do { *((volatile int*)__null) = 8788; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8789 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8789); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunning" ")"
); do { *((volatile int*)__null) = 8789; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8790 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8790); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFinished" ")"
); do { *((volatile int*)__null) = 8790; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8791
8792 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<nsISupports, ConnectionPool
::TransactionInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::TransactionInfo"
, sizeof(*this)); } while (0)
;
8793}
8794
8795void ConnectionPool::TransactionInfo::AddBlockingTransaction(
8796 TransactionInfo& aTransactionInfo) {
8797 AssertIsOnBackgroundThread();
8798
8799 // XXX Does it really make sense to have both mBlocking and mBlockingOrdered,
8800 // just to reduce the algorithmic complexity of this Contains check? This was
8801 // mentioned in the context of Bug 1290853, but no real justification was
8802 // given. There was the suggestion of encapsulating this in an
8803 // insertion-ordered hashtable implementation, which seems like a good idea.
8804 // If we had that, this would be the appropriate data structure to use here.
8805 if (mBlocking.EnsureInserted(&aTransactionInfo)) {
8806 mBlockingOrdered.AppendElement(WrapNotNullUnchecked(&aTransactionInfo));
8807 }
8808}
8809
8810void ConnectionPool::TransactionInfo::RemoveBlockingTransactions() {
8811 AssertIsOnBackgroundThread();
8812
8813 for (const auto blockedInfo : mBlockingOrdered) {
8814 blockedInfo->MaybeUnblock(*this);
8815 }
8816
8817 mBlocking.Clear();
8818 mBlockingOrdered.Clear();
8819}
8820
8821void ConnectionPool::TransactionInfo::MaybeUnblock(
8822 TransactionInfo& aTransactionInfo) {
8823 AssertIsOnBackgroundThread();
8824 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8824); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBlockedOn.Contains(&aTransactionInfo)"
")"); do { *((volatile int*)__null) = 8824; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8825
8826 mBlockedOn.Remove(&aTransactionInfo);
8827 if (mBlockedOn.IsEmpty()) {
8828 ConnectionPool* connectionPool = mDatabaseInfo.mConnectionPool;
8829 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool"
")"); do { *((volatile int*)__null) = 8829; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8830 connectionPool->AssertIsOnOwningThread();
8831
8832 Unused << connectionPool->ScheduleTransaction(
8833 *this,
8834 /* aFromQueuedTransactions */ false);
8835 }
8836}
8837
8838#if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1)
8839ConnectionPool::TransactionInfoPair::TransactionInfoPair() {
8840 AssertIsOnBackgroundThread();
8841
8842 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<nsISupports, ConnectionPool
::TransactionInfoPair>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::TransactionInfoPair"
, sizeof(*this)); } while (0)
;
8843}
8844
8845ConnectionPool::TransactionInfoPair::~TransactionInfoPair() {
8846 AssertIsOnBackgroundThread();
8847
8848 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<nsISupports, ConnectionPool
::TransactionInfoPair>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::TransactionInfoPair"
, sizeof(*this)); } while (0)
;
8849}
8850#endif
8851
8852/*******************************************************************************
8853 * Metadata classes
8854 ******************************************************************************/
8855
8856bool FullObjectStoreMetadata::HasLiveIndexes() const {
8857 AssertIsOnBackgroundThread();
8858
8859 return std::any_of(mIndexes.Values().cbegin(), mIndexes.Values().cend(),
8860 [](const auto& entry) { return !entry->mDeleted; });
8861}
8862
8863SafeRefPtr<FullDatabaseMetadata> FullDatabaseMetadata::Duplicate() const {
8864 AssertIsOnBackgroundThread();
8865
8866 // FullDatabaseMetadata contains two hash tables of pointers that we need to
8867 // duplicate so we can't just use the copy constructor.
8868 auto newMetadata = MakeSafeRefPtr<FullDatabaseMetadata>(mCommonMetadata);
8869
8870 newMetadata->mDatabaseId = mDatabaseId;
8871 newMetadata->mFilePath = mFilePath;
8872 newMetadata->mNextObjectStoreId = mNextObjectStoreId;
8873 newMetadata->mNextIndexId = mNextIndexId;
8874
8875 for (const auto& objectStoreEntry : mObjectStores) {
8876 const auto& objectStoreValue = objectStoreEntry.GetData();
8877
8878 auto newOSMetadata = MakeSafeRefPtr<FullObjectStoreMetadata>(
8879 objectStoreValue->mCommonMetadata, [&objectStoreValue] {
8880 const auto&& srcLocked = objectStoreValue->mAutoIncrementIds.Lock();
8881 return *srcLocked;
8882 }());
8883
8884 for (const auto& indexEntry : objectStoreValue->mIndexes) {
8885 const auto& value = indexEntry.GetData();
8886
8887 auto newIndexMetadata = MakeSafeRefPtr<FullIndexMetadata>();
8888
8889 newIndexMetadata->mCommonMetadata = value->mCommonMetadata;
8890
8891 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8892)
8892 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8892)
) {
8893 return nullptr;
8894 }
8895 }
8896
8897 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8898); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()"
")"); do { *((volatile int*)__null) = 8898; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
8898 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8898); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()"
")"); do { *((volatile int*)__null) = 8898; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8899
8900 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8901)
8901 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8901)
) {
8902 return nullptr;
8903 }
8904 }
8905
8906 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8906); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStores.Count() == newMetadata->mObjectStores.Count()"
")"); do { *((volatile int*)__null) = 8906; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8907
8908 return newMetadata;
8909}
8910
8911DatabaseLoggingInfo::~DatabaseLoggingInfo() {
8912 AssertIsOnBackgroundThread();
8913
8914 if (gLoggingInfoHashtable) {
8915 const nsID& backgroundChildLoggingId =
8916 mLoggingInfo.backgroundChildLoggingId();
8917
8918 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8918); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable->Get(backgroundChildLoggingId) == this"
")"); do { *((volatile int*)__null) = 8918; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8919
8920 gLoggingInfoHashtable->Remove(backgroundChildLoggingId);
8921 }
8922}
8923
8924/*******************************************************************************
8925 * Factory
8926 ******************************************************************************/
8927
8928Factory::Factory(RefPtr<DatabaseLoggingInfo> aLoggingInfo,
8929 const nsACString& aSystemLocale)
8930 : mSystemLocale(aSystemLocale),
8931 mLoggingInfo(std::move(aLoggingInfo))
8932#ifdef DEBUG1
8933 ,
8934 mActorDestroyed(false)
8935#endif
8936{
8937 AssertIsOnBackgroundThread();
8938 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8938); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 8938; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8939}
8940
8941Factory::~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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8941); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed"
")"); do { *((volatile int*)__null) = 8941; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
8942
8943// static
8944SafeRefPtr<Factory> Factory::Create(const LoggingInfo& aLoggingInfo,
8945 const nsACString& aSystemLocale) {
8946 AssertIsOnBackgroundThread();
8947 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8947); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 8947; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8948
8949 // Balanced in ActoryDestroy().
8950 IncreaseBusyCount();
8951
8952 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8952); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable"
")"); do { *((volatile int*)__null) = 8952; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8953 RefPtr<DatabaseLoggingInfo> loggingInfo =
8954 gLoggingInfoHashtable->WithEntryHandle(
8955 aLoggingInfo.backgroundChildLoggingId(), [&](auto&& entry) {
8956 if (entry) {
8957 [[maybe_unused]] const auto& loggingInfo = entry.Data();
8958 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8959); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()"
")"); do { *((volatile int*)__null) = 8959; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
8959 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8959); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()"
")"); do { *((volatile int*)__null) = 8959; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8960#if !FUZZING
8961 NS_WARNING_ASSERTION(do { if (!(aLoggingInfo.nextTransactionSerialNumber() == loggingInfo
->mLoggingInfo.nextTransactionSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextTransactionSerialNumber() == loggingInfo->mLoggingInfo.nextTransactionSerialNumber()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8964); } } while (false)
8962 aLoggingInfo.nextTransactionSerialNumber() ==do { if (!(aLoggingInfo.nextTransactionSerialNumber() == loggingInfo
->mLoggingInfo.nextTransactionSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextTransactionSerialNumber() == loggingInfo->mLoggingInfo.nextTransactionSerialNumber()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8964); } } while (false)
8963 loggingInfo->mLoggingInfo.nextTransactionSerialNumber(),do { if (!(aLoggingInfo.nextTransactionSerialNumber() == loggingInfo
->mLoggingInfo.nextTransactionSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextTransactionSerialNumber() == loggingInfo->mLoggingInfo.nextTransactionSerialNumber()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8964); } } while (false)
8964 "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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8964); } } while (false)
;
8965 NS_WARNING_ASSERTION(do { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber
() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber
())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8969); } } while (false)
8966 aLoggingInfo.nextVersionChangeTransactionSerialNumber() ==do { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber
() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber
())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8969); } } while (false)
8967 loggingInfo->mLoggingInfodo { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber
() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber
())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8969); } } while (false)
8968 .nextVersionChangeTransactionSerialNumber(),do { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber
() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber
())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8969); } } while (false)
8969 "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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8969); } } while (false)
;
8970 NS_WARNING_ASSERTION(do { if (!(aLoggingInfo.nextRequestSerialNumber() == loggingInfo
->mLoggingInfo.nextRequestSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextRequestSerialNumber doesn't match!", "aLoggingInfo.nextRequestSerialNumber() == loggingInfo->mLoggingInfo.nextRequestSerialNumber()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8973); } } while (false)
8971 aLoggingInfo.nextRequestSerialNumber() ==do { if (!(aLoggingInfo.nextRequestSerialNumber() == loggingInfo
->mLoggingInfo.nextRequestSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextRequestSerialNumber doesn't match!", "aLoggingInfo.nextRequestSerialNumber() == loggingInfo->mLoggingInfo.nextRequestSerialNumber()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8973); } } while (false)
8972 loggingInfo->mLoggingInfo.nextRequestSerialNumber(),do { if (!(aLoggingInfo.nextRequestSerialNumber() == loggingInfo
->mLoggingInfo.nextRequestSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextRequestSerialNumber doesn't match!", "aLoggingInfo.nextRequestSerialNumber() == loggingInfo->mLoggingInfo.nextRequestSerialNumber()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8973); } } while (false)
8973 "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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8973); } } while (false)
;
8974#endif // !FUZZING
8975 } else {
8976 entry.Insert(new DatabaseLoggingInfo(aLoggingInfo));
8977 }
8978
8979 return do_AddRef(entry.Data());
8980 });
8981
8982 return MakeSafeRefPtr<Factory>(std::move(loggingInfo), aSystemLocale);
8983}
8984
8985void Factory::ActorDestroy(ActorDestroyReason aWhy) {
8986 AssertIsOnBackgroundThread();
8987 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8987); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { *((volatile int*)__null) = 8987; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8988
8989#ifdef DEBUG1
8990 mActorDestroyed = true;
8991#endif
8992
8993 // Match the IncreaseBusyCount in Create().
8994 DecreaseBusyCount();
8995}
8996
8997mozilla::ipc::IPCResult Factory::RecvDeleteMe() {
8998 AssertIsOnBackgroundThread();
8999 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8999); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { *((volatile int*)__null) = 8999; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9000
9001 QM_WARNONLY_TRY(OkIf(PBackgroundIDBFactoryParent::Send__delete__(this))){auto tryResult967 = (OkIf(PBackgroundIDBFactoryParent::Send__delete__
(this))); static_assert(std::is_empty_v<typename decltype(
tryResult967)::ok_type>); if ((__builtin_expect(!!(tryResult967
.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBFactoryParent::Send__delete__(this))"
, tryResult967.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9001, mozilla::dom::quota::Severity::Warning); }}
;
9002
9003 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9004}
9005
9006PBackgroundIDBFactoryRequestParent*
9007Factory::AllocPBackgroundIDBFactoryRequestParent(
9008 const FactoryRequestParams& aParams) {
9009 AssertIsOnBackgroundThread();
9010 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9010); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != FactoryRequestParams::T__None"
")"); do { *((volatile int*)__null) = 9010; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9011
9012 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9012)
) {
9013 return nullptr;
9014 }
9015
9016 const CommonFactoryRequestParams* commonParams;
9017
9018 switch (aParams.type()) {
9019 case FactoryRequestParams::TOpenDatabaseRequestParams: {
9020 const OpenDatabaseRequestParams& params =
9021 aParams.get_OpenDatabaseRequestParams();
9022 commonParams = &params.commonParams();
9023 break;
9024 }
9025
9026 case FactoryRequestParams::TDeleteDatabaseRequestParams: {
9027 const DeleteDatabaseRequestParams& params =
9028 aParams.get_DeleteDatabaseRequestParams();
9029 commonParams = &params.commonParams();
9030 break;
9031 }
9032
9033 default:
9034 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9034); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 9034; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
9035 }
9036
9037 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9037); AnnotateMozCrashReason("MOZ_ASSERT" "(" "commonParams"
")"); do { *((volatile int*)__null) = 9037; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9038
9039 const DatabaseMetadata& metadata = commonParams->metadata();
9040
9041 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())"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!IsValidPersistenceType(metadata.persistenceType())" ")"); do
{ *((volatile int*)__null) = 9041; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } return aCond; }
((!IsValidPersistenceType(metadata.persistenceType())))
) {
9042 return nullptr;
9043 }
9044
9045 const PrincipalInfo& principalInfo = commonParams->principalInfo();
9046
9047 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)" ")"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!quota::IsPrincipalInfoValid(principalInfo)" ")"); do { *((
volatile int*)__null) = 9047; __attribute__((nomerge)) ::abort
(); } while (false); } } while (false); } return aCond; }((!quota
::IsPrincipalInfoValid(principalInfo)))
) {
9048 IPC_FAIL(this, "Invalid principal!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid principal!"
))
;
9049 return nullptr;
9050 }
9051
9052 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9053); AnnotateMozCrashReason("MOZ_ASSERT" "(" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
")"); do { *((volatile int*)__null) = 9053; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9053 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9053); AnnotateMozCrashReason("MOZ_ASSERT" "(" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
")"); do { *((volatile int*)__null) = 9053; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9054
9055 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" " (" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9057); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 9057; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
&& metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT
))
9056 principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo &&[](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" " (" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9057); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 9057; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
&& metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT
))
9057 metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT)[](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" " (" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9057); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 9057; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
&& metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT
))
) {
9058 return nullptr;
9059 }
9060
9061 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" " (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9065); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 9065; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
&& QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo
().originNoSuffix()) && metadata.persistenceType() !=
PERSISTENCE_TYPE_PERSISTENT))
9062 principalInfo.type() == PrincipalInfo::TContentPrincipalInfo &&[](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" " (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9065); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 9065; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
&& QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo
().originNoSuffix()) && metadata.persistenceType() !=
PERSISTENCE_TYPE_PERSISTENT))
9063 QuotaManager::IsOriginInternal([](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" " (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9065); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 9065; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
&& QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo
().originNoSuffix()) && metadata.persistenceType() !=
PERSISTENCE_TYPE_PERSISTENT))
9064 principalInfo.get_ContentPrincipalInfo().originNoSuffix()) &&[](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" " (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9065); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 9065; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
&& QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo
().originNoSuffix()) && metadata.persistenceType() !=
PERSISTENCE_TYPE_PERSISTENT))
9065 metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT)[](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" " (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9065); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 9065; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
&& QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo
().originNoSuffix()) && metadata.persistenceType() !=
PERSISTENCE_TYPE_PERSISTENT))
) {
9066 return nullptr;
9067 }
9068
9069 Maybe<ContentParentId> contentParentId = GetContentParentId();
9070
9071 auto actor = [&]() -> RefPtr<FactoryRequestOp> {
9072 if (aParams.type() == FactoryRequestParams::TOpenDatabaseRequestParams) {
9073 return MakeRefPtr<OpenDatabaseOp>(SafeRefPtrFromThis(), contentParentId,
9074 *commonParams);
9075 } else {
9076 return MakeRefPtr<DeleteDatabaseOp>(SafeRefPtrFromThis(), contentParentId,
9077 *commonParams);
9078 }
9079 }();
9080
9081 gFactoryOps->AppendElement(actor);
9082
9083 // Balanced in CleanupMetadata() which is/must always called by SendResults().
9084 IncreaseBusyCount();
9085
9086 // Transfer ownership to IPDL.
9087 return actor.forget().take();
9088}
9089
9090mozilla::ipc::IPCResult Factory::RecvPBackgroundIDBFactoryRequestConstructor(
9091 PBackgroundIDBFactoryRequestParent* aActor,
9092 const FactoryRequestParams& aParams) {
9093 AssertIsOnBackgroundThread();
9094 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9094); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 9094; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9095 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9095); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != FactoryRequestParams::T__None"
")"); do { *((volatile int*)__null) = 9095; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9096 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9096); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 9096; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9097
9098 auto* op = static_cast<FactoryRequestOp*>(aActor);
9099
9100 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9100); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))"
")"); do { *((volatile int*)__null) = 9100; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9101 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9102}
9103
9104bool Factory::DeallocPBackgroundIDBFactoryRequestParent(
9105 PBackgroundIDBFactoryRequestParent* aActor) {
9106 AssertIsOnBackgroundThread();
9107 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9107); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 9107; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9108
9109 // Transfer ownership back from IPDL.
9110 RefPtr<FactoryRequestOp> op =
9111 dont_AddRef(static_cast<FactoryRequestOp*>(aActor));
9112 return true;
9113}
9114
9115mozilla::ipc::IPCResult Factory::RecvGetDatabases(
9116 const PersistenceType& aPersistenceType,
9117 const PrincipalInfo& aPrincipalInfo, GetDatabasesResolver&& aResolve) {
9118 AssertIsOnBackgroundThread();
9119
9120 auto ResolveGetDatabasesAndReturn = [&aResolve](const nsresult rv) {
9121 aResolve(rv);
9122 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9123 };
9124
9125 QM_TRY(MOZ_TO_RESULT(!QuotaClient::IsShuttingDownOnBackgroundThread()),{auto tryResult968 = (ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread
())); static_assert(std::is_empty_v<typename decltype(tryResult968
)::ok_type>); if ((__builtin_expect(!!(tryResult968.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult968
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9126, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())"
, tryTempError, ResolveGetDatabasesAndReturn); }}
9126 ResolveGetDatabasesAndReturn){auto tryResult968 = (ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread
())); static_assert(std::is_empty_v<typename decltype(tryResult968
)::ok_type>); if ((__builtin_expect(!!(tryResult968.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult968
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9126, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())"
, tryTempError, ResolveGetDatabasesAndReturn); }}
;
9127
9128 QM_TRY(MOZ_TO_RESULT(IsValidPersistenceType(aPersistenceType)),{auto tryResult969 = (ToResult(IsValidPersistenceType(aPersistenceType
))); static_assert(std::is_empty_v<typename decltype(tryResult969
)::ok_type>); if ((__builtin_expect(!!(tryResult969.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult969
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(IsValidPersistenceType(aPersistenceType))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9129, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IsValidPersistenceType(aPersistenceType))"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
9129 QM_IPC_FAIL(this)){auto tryResult969 = (ToResult(IsValidPersistenceType(aPersistenceType
))); static_assert(std::is_empty_v<typename decltype(tryResult969
)::ok_type>); if ((__builtin_expect(!!(tryResult969.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult969
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(IsValidPersistenceType(aPersistenceType))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9129, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IsValidPersistenceType(aPersistenceType))"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
;
9130
9131 QM_TRY(MOZ_TO_RESULT(quota::IsPrincipalInfoValid(aPrincipalInfo)),{auto tryResult970 = (ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo
))); static_assert(std::is_empty_v<typename decltype(tryResult970
)::ok_type>); if ((__builtin_expect(!!(tryResult970.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult970
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9132, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo))"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
9132 QM_IPC_FAIL(this)){auto tryResult970 = (ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo
))); static_assert(std::is_empty_v<typename decltype(tryResult970
)::ok_type>); if ((__builtin_expect(!!(tryResult970.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult970
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9132, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo))"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
;
9133
9134 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9135); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
")"); do { *((volatile int*)__null) = 9135; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9135 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9135); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
")"); do { *((volatile int*)__null) = 9135; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9136
9137 PersistenceType persistenceType =
9138 IDBFactory::GetPersistenceType(aPrincipalInfo);
9139
9140 QM_TRY(MOZ_TO_RESULT(aPersistenceType == persistenceType), QM_IPC_FAIL(this)){auto tryResult971 = (ToResult(aPersistenceType == persistenceType
)); static_assert(std::is_empty_v<typename decltype(tryResult971
)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult971
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(aPersistenceType == persistenceType)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9140, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(aPersistenceType == persistenceType)"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
;
9141
9142 Maybe<ContentParentId> contentParentId = GetContentParentId();
9143
9144 auto op = MakeRefPtr<GetDatabasesOp>(SafeRefPtrFromThis(), contentParentId,
9145 aPersistenceType, aPrincipalInfo,
9146 std::move(aResolve));
9147
9148 gFactoryOps->AppendElement(op);
9149
9150 // Balanced in CleanupMetadata() which is/must always called by SendResults().
9151 IncreaseBusyCount();
9152
9153 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9153); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))"
")"); do { *((volatile int*)__null) = 9153; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9154
9155 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9156}
9157
9158Maybe<ContentParentId> Factory::GetContentParentId() const {
9159 uint64_t childID = BackgroundParent::GetChildID(Manager());
9160 if (childID) {
9161 // If childID is not zero we are dealing with an other-process actor. We
9162 // want to initialize OpenDatabaseOp/DeleteDatabaseOp here with the ID
9163 // (and later also Database) in that case, so Database::IsOwnedByProcess
9164 // can find Databases belonging to a particular content process when
9165 // QuotaClient::AbortOperationsForProcess is called which is currently used
9166 // to abort operations for content processes only.
9167 return Some(ContentParentId(childID));
9168 }
9169
9170 return Nothing();
9171}
9172
9173/*******************************************************************************
9174 * WaitForTransactionsHelper
9175 ******************************************************************************/
9176
9177void WaitForTransactionsHelper::WaitForTransactions() {
9178 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9178); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { *((volatile int*)__null) = 9178; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9179
9180 Unused << this->Run();
9181}
9182
9183void WaitForTransactionsHelper::MaybeWaitForTransactions() {
9184 AssertIsOnBackgroundThread();
9185 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9185); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { *((volatile int*)__null) = 9185; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9186
9187 RefPtr<ConnectionPool> connectionPool = gConnectionPool.get();
9188 if (connectionPool) {
9189 mState = State::WaitingForTransactions;
9190
9191 connectionPool->WaitForDatabaseToComplete(mDatabaseId, this);
9192
9193 return;
9194 }
9195
9196 CallCallback();
9197}
9198
9199void WaitForTransactionsHelper::CallCallback() {
9200 AssertIsOnBackgroundThread();
9201 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9202); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::WaitingForTransactions"
")"); do { *((volatile int*)__null) = 9202; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9202 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9202); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::WaitingForTransactions"
")"); do { *((volatile int*)__null) = 9202; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9203
9204 const nsCOMPtr<nsIRunnable> callback = std::move(mCallback);
9205
9206 callback->Run();
9207
9208 mState = State::Complete;
9209}
9210
9211NS_IMETHODIMPnsresult
9212WaitForTransactionsHelper::Run() {
9213 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9213); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState != State::Complete"
")"); do { *((volatile int*)__null) = 9213; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9214 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9214); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCallback" ")"
); do { *((volatile int*)__null) = 9214; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9215
9216 switch (mState) {
9217 case State::Initial:
9218 MaybeWaitForTransactions();
9219 break;
9220
9221 case State::WaitingForTransactions:
9222 CallCallback();
9223 break;
9224
9225 default:
9226 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9226); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 9226; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
9227 }
9228
9229 return NS_OK;
9230}
9231
9232/*******************************************************************************
9233 * Database
9234 ******************************************************************************/
9235
9236Database::Database(SafeRefPtr<Factory> aFactory,
9237 const PrincipalInfo& aPrincipalInfo,
9238 const Maybe<ContentParentId>& aOptionalContentParentId,
9239 const quota::OriginMetadata& aOriginMetadata,
9240 uint32_t aTelemetryId,
9241 SafeRefPtr<FullDatabaseMetadata> aMetadata,
9242 SafeRefPtr<DatabaseFileManager> aFileManager,
9243 RefPtr<ClientDirectoryLock> aDirectoryLock,
9244 bool aInPrivateBrowsing,
9245 const Maybe<const CipherKey>& aMaybeKey)
9246 : mFactory(std::move(aFactory)),
9247 mMetadata(std::move(aMetadata)),
9248 mFileManager(std::move(aFileManager)),
9249 mDirectoryLock(std::move(aDirectoryLock)),
9250 mPrincipalInfo(aPrincipalInfo),
9251 mOptionalContentParentId(aOptionalContentParentId),
9252 mOriginMetadata(aOriginMetadata),
9253 mId(mMetadata->mDatabaseId),
9254 mFilePath(mMetadata->mFilePath),
9255 mKey(aMaybeKey),
9256 mTelemetryId(aTelemetryId),
9257 mPersistenceType(mMetadata->mCommonMetadata.persistenceType()),
9258 mInPrivateBrowsing(aInPrivateBrowsing),
9259 mBackgroundThread(GetCurrentSerialEventTarget())
9260#ifdef DEBUG1
9261 ,
9262 mAllBlobsUnmapped(false)
9263#endif
9264{
9265 AssertIsOnBackgroundThread();
9266 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9266); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")"
); do { *((volatile int*)__null) = 9266; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9267 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9267); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"
); do { *((volatile int*)__null) = 9267; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9268 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9268); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { *((volatile int*)__null) = 9268; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9269
9270 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9270); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock"
")"); do { *((volatile int*)__null) = 9270; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9271 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock->Id() >= 0"
")"); do { *((volatile int*)__null) = 9271; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9272 mDirectoryLockId = mDirectoryLock->Id();
9273}
9274
9275template <typename T>
9276bool Database::InvalidateAll(const nsTBaseHashSet<nsPtrHashKey<T>>& aTable) {
9277 AssertIsOnBackgroundThread();
9278
9279 const uint32_t count = aTable.Count();
9280 if (!count) {
9281 return true;
9282 }
9283
9284 // XXX Does this really need to be fallible?
9285 QM_TRY_INSPECT(const auto& elementsToInvalidate,auto tryResult972 = (TransformIntoNewArray( aTable, [](const auto
& entry) { return entry; }, fallible)); if ((__builtin_expect
(!!(tryResult972.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult972.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9288, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, false); } const auto& elementsToInvalidate
= tryResult972.inspect();
9286 TransformIntoNewArray(auto tryResult972 = (TransformIntoNewArray( aTable, [](const auto
& entry) { return entry; }, fallible)); if ((__builtin_expect
(!!(tryResult972.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult972.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9288, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, false); } const auto& elementsToInvalidate
= tryResult972.inspect();
9287 aTable, [](const auto& entry) { return entry; }, fallible),auto tryResult972 = (TransformIntoNewArray( aTable, [](const auto
& entry) { return entry; }, fallible)); if ((__builtin_expect
(!!(tryResult972.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult972.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9288, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, false); } const auto& elementsToInvalidate
= tryResult972.inspect();
9288 false)auto tryResult972 = (TransformIntoNewArray( aTable, [](const auto
& entry) { return entry; }, fallible)); if ((__builtin_expect
(!!(tryResult972.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult972.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9288, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, false); } const auto& elementsToInvalidate
= tryResult972.inspect();
;
9289
9290 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9290, "UnknownErr")
;
9291
9292 for (const auto& elementToInvalidate : elementsToInvalidate) {
9293 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9293); AnnotateMozCrashReason("MOZ_ASSERT" "(" "elementToInvalidate"
")"); do { *((volatile int*)__null) = 9293; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9294
9295 elementToInvalidate->Invalidate();
9296 }
9297
9298 return true;
9299}
9300
9301void Database::Invalidate() {
9302 AssertIsOnBackgroundThread();
9303
9304 if (mInvalidated) {
9305 return;
9306 }
9307
9308 mInvalidated.Flip();
9309
9310 if (mActorWasAlive && !mActorDestroyed) {
9311 Unused << SendInvalidate();
9312 }
9313
9314 QM_WARNONLY_TRY(OkIf(InvalidateAll(mTransactions))){auto tryResult973 = (OkIf(InvalidateAll(mTransactions))); static_assert
(std::is_empty_v<typename decltype(tryResult973)::ok_type>
); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(InvalidateAll(mTransactions))"
, tryResult973.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9314, mozilla::dom::quota::Severity::Warning); }}
;
9315
9316 MOZ_ALWAYS_TRUE(CloseInternal())do { if ((__builtin_expect(!!(CloseInternal()), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "CloseInternal()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9316); AnnotateMozCrashReason("MOZ_CRASH(" "CloseInternal()"
")"); do { *((volatile int*)__null) = 9316; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9317}
9318
9319nsresult Database::EnsureConnection() {
9320 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 9320; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9321 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9321); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 9321; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9322
9323 AUTO_PROFILER_LABEL("Database::EnsureConnection", DOM)mozilla::AutoProfilerLabel raiiObject9323( "Database::EnsureConnection"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
9324
9325 if (!mConnection || !mConnection->HasStorageConnection()) {
9326 QM_TRY_UNWRAP(mConnection, gConnectionPool->GetOrCreateConnection(*this))auto tryResult974 = (gConnectionPool->GetOrCreateConnection
(*this)); if ((__builtin_expect(!!(tryResult974.isErr()), 0))
) { mozilla::dom::quota::HandleError("gConnectionPool->GetOrCreateConnection(*this)"
, tryResult974.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9326, mozilla::dom::quota::Severity::Error); return tryResult974
.propagateErr(); } mConnection = tryResult974.unwrap();
;
9327 }
9328
9329 AssertIsOnConnectionThread();
9330
9331 return NS_OK;
9332}
9333
9334bool Database::RegisterTransaction(TransactionBase& aTransaction) {
9335 AssertIsOnBackgroundThread();
9336 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9336); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Contains(&aTransaction)"
")"); do { *((volatile int*)__null) = 9336; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9337 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9337); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock"
")"); do { *((volatile int*)__null) = 9337; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9338 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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9338); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInvalidated"
")"); do { *((volatile int*)__null) = 9338; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9339 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9339); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mClosed" ")"
); do { *((volatile int*)__null) = 9339; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9340
9341 if (NS_WARN_IF(!mTransactions.Insert(&aTransaction, fallible))NS_warn_if_impl(!mTransactions.Insert(&aTransaction, fallible
), "!mTransactions.Insert(&aTransaction, fallible)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9341)
) {
9342 return false;
9343 }
9344
9345 return true;
9346}
9347
9348void Database::UnregisterTransaction(TransactionBase& aTransaction) {
9349 AssertIsOnBackgroundThread();
9350 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9350); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransactions.Contains(&aTransaction)"
")"); do { *((volatile int*)__null) = 9350; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9351
9352 mTransactions.Remove(&aTransaction);
9353
9354 MaybeCloseConnection();
9355}
9356
9357void Database::SetActorAlive() {
9358 AssertIsOnBackgroundThread();
9359 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9359); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { *((volatile int*)__null) = 9359; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9360
9361 mActorWasAlive.Flip();
9362}
9363
9364void Database::MapBlob(const IPCBlob& aIPCBlob,
9365 SafeRefPtr<DatabaseFileInfo> aFileInfo) {
9366 AssertIsOnBackgroundThread();
9367
9368 const RemoteLazyStream& stream = aIPCBlob.inputStream();
9369 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9369); AnnotateMozCrashReason("MOZ_ASSERT" "(" "stream.type() == RemoteLazyStream::TRemoteLazyInputStream"
")"); do { *((volatile int*)__null) = 9369; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9370
9371 nsID id{};
9372 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9373); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))"
")"); do { *((volatile int*)__null) = 9373; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
9373 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9373); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))"
")"); do { *((volatile int*)__null) = 9373; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9374
9375 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9375); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMappedBlobs.Contains(id)"
")"); do { *((volatile int*)__null) = 9375; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9376 mMappedBlobs.InsertOrUpdate(id, std::move(aFileInfo));
9377
9378 RefPtr<UnmapBlobCallback> callback =
9379 new UnmapBlobCallback(SafeRefPtrFromThis());
9380
9381 auto storage = RemoteLazyInputStreamStorage::Get();
9382 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9382); AnnotateMozCrashReason("MOZ_ASSERT" "(" "storage.isOk()"
")"); do { *((volatile int*)__null) = 9382; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9383 storage.inspect()->StoreCallback(id, callback);
9384}
9385
9386void Database::Stringify(nsACString& aResult) const {
9387 AssertIsOnBackgroundThread();
9388
9389 constexpr auto kQuotaGenericDelimiterString = "|"_ns;
9390
9391 aResult.Append(
9392 "DirectoryLock:"_ns + IntToCString(!!mDirectoryLock) +
9393 kQuotaGenericDelimiterString +
9394 //
9395 "Transactions:"_ns + IntToCString(mTransactions.Count()) +
9396 kQuotaGenericDelimiterString +
9397 //
9398 "OtherProcessActor:"_ns +
9399 IntToCString(
9400 BackgroundParent::IsOtherProcessActor(GetBackgroundParent())) +
9401 kQuotaGenericDelimiterString +
9402 //
9403 "Origin:"_ns + AnonymizedOriginString(mOriginMetadata.mOrigin) +
9404 kQuotaGenericDelimiterString +
9405 //
9406 "PersistenceType:"_ns + PersistenceTypeToString(mPersistenceType) +
9407 kQuotaGenericDelimiterString +
9408 //
9409 "Closed:"_ns + IntToCString(static_cast<bool>(mClosed)) +
9410 kQuotaGenericDelimiterString +
9411 //
9412 "Invalidated:"_ns + IntToCString(static_cast<bool>(mInvalidated)) +
9413 kQuotaGenericDelimiterString +
9414 //
9415 "ActorWasAlive:"_ns + IntToCString(static_cast<bool>(mActorWasAlive)) +
9416 kQuotaGenericDelimiterString +
9417 //
9418 "ActorDestroyed:"_ns + IntToCString(static_cast<bool>(mActorDestroyed)));
9419}
9420
9421SafeRefPtr<DatabaseFileInfo> Database::GetBlob(const IPCBlob& aIPCBlob) {
9422 AssertIsOnBackgroundThread();
9423
9424 RefPtr<RemoteLazyInputStream> lazyStream;
9425 switch (aIPCBlob.inputStream().type()) {
9426 case RemoteLazyStream::TIPCStream: {
9427 const InputStreamParams& inputStreamParams =
9428 aIPCBlob.inputStream().get_IPCStream().stream();
9429 if (inputStreamParams.type() !=
9430 InputStreamParams::TRemoteLazyInputStreamParams) {
9431 return nullptr;
9432 }
9433 lazyStream = inputStreamParams.get_RemoteLazyInputStreamParams().stream();
9434 break;
9435 }
9436 case RemoteLazyStream::TRemoteLazyInputStream:
9437 lazyStream = aIPCBlob.inputStream().get_RemoteLazyInputStream();
9438 break;
9439 default:
9440 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9440); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"MOZ_ASSERT_UNREACHABLE: " "Unknown RemoteLazyStream type" ")"
); do { *((volatile int*)__null) = 9440; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9441 return nullptr;
9442 }
9443
9444 if (!lazyStream) {
9445 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9445); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"MOZ_ASSERT_UNREACHABLE: " "Unexpected null stream" ")"); do
{ *((volatile int*)__null) = 9445; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
9446 return nullptr;
9447 }
9448
9449 nsID id{};
9450 nsresult rv = lazyStream->GetInternalStreamID(id);
9451 if (NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) {
9452 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9453); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"MOZ_ASSERT_UNREACHABLE: " "Received RemoteLazyInputStream doesn't have an actor connection"
")"); do { *((volatile int*)__null) = 9453; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9453 "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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9453); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"MOZ_ASSERT_UNREACHABLE: " "Received RemoteLazyInputStream doesn't have an actor connection"
")"); do { *((volatile int*)__null) = 9453; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9454 return nullptr;
9455 }
9456
9457 const auto fileInfo = mMappedBlobs.Lookup(id);
9458 return fileInfo ? fileInfo->clonePtr() : nullptr;
9459}
9460
9461void Database::UnmapBlob(const nsID& aID) {
9462 AssertIsOnBackgroundThread();
9463
9464 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9464); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMappedBlobs.Contains(aID)"
")"); do { *((volatile int*)__null) = 9464; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
9465 mMappedBlobs.Remove(aID);
9466}
9467
9468void Database::UnmapAllBlobs() {
9469 AssertIsOnBackgroundThread();
9470
9471#ifdef DEBUG1
9472 mAllBlobsUnmapped = true;
9473#endif
9474
9475 mMappedBlobs.Clear();
9476}
9477
9478bool Database::CloseInternal() {
9479 AssertIsOnBackgroundThread();
9480
9481 if (mClosed) {
9482 if (NS_WARN_IF(!IsInvalidated())NS_warn_if_impl(!IsInvalidated(), "!IsInvalidated()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9482)
) {
9483 // Signal misbehaving child for sending the close message twice.
9484 return false;
9485 }
9486
9487 // Ignore harmless race when we just invalidated the database.
9488 return true;
9489 }
9490
9491 mClosed.Flip();
9492
9493 if (gConnectionPool) {
9494 gConnectionPool->CloseDatabaseWhenIdle(Id());
9495 }
9496
9497 DatabaseActorInfo* info;
9498 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9498); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(Id(), &info)"
")"); do { *((volatile int*)__null) = 9498; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9499
9500 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9500); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.Contains(this)"
")"); do { *((volatile int*)__null) = 9500; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9501
9502 if (info->mWaitingFactoryOp) {
9503 info->mWaitingFactoryOp->NoteDatabaseClosed(this);
9504 }
9505
9506 MaybeCloseConnection();
9507
9508 return true;
9509}
9510
9511void Database::MaybeCloseConnection() {
9512 AssertIsOnBackgroundThread();
9513
9514 if (!mTransactions.Count() && IsClosed() && mDirectoryLock) {
9515 nsCOMPtr<nsIRunnable> callback =
9516 NewRunnableMethod("dom::indexedDB::Database::ConnectionClosedCallback",
9517 this, &Database::ConnectionClosedCallback);
9518
9519 RefPtr<WaitForTransactionsHelper> helper =
9520 new WaitForTransactionsHelper(Id(), callback);
9521 helper->WaitForTransactions();
9522 }
9523}
9524
9525void Database::ConnectionClosedCallback() {
9526 AssertIsOnBackgroundThread();
9527 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mClosed" ")"
); do { *((volatile int*)__null) = 9527; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9528 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { *((volatile int*)__null) = 9528; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9529
9530 DropDirectoryLock(mDirectoryLock);
9531
9532 CleanupMetadata();
9533
9534 UnmapAllBlobs();
9535
9536 if (IsInvalidated() && IsActorAlive()) {
9537 // Step 3 and 4 of "5.2 Closing a Database":
9538 // 1. Wait for all transactions to complete.
9539 // 2. Fire a close event if forced flag is set, i.e., IsInvalidated() in our
9540 // implementation.
9541 Unused << SendCloseAfterInvalidationComplete();
9542 }
9543}
9544
9545void Database::CleanupMetadata() {
9546 AssertIsOnBackgroundThread();
9547
9548 DatabaseActorInfo* info;
9549 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9549); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(Id(), &info)"
")"); do { *((volatile int*)__null) = 9549; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9550 MOZ_ALWAYS_TRUE(info->mLiveDatabases.RemoveElement(this))do { if ((__builtin_expect(!!(info->mLiveDatabases.RemoveElement
(this)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "info->mLiveDatabases.RemoveElement(this)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9550); AnnotateMozCrashReason("MOZ_CRASH(" "info->mLiveDatabases.RemoveElement(this)"
")"); do { *((volatile int*)__null) = 9550; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9551
9552 QuotaManager::MaybeRecordQuotaClientShutdownStep(
9553 quota::Client::IDB, "Live database entry removed"_ns);
9554
9555 if (info->mLiveDatabases.IsEmpty()) {
9556 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9557); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()"
")"); do { *((volatile int*)__null) = 9557; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9557 !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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9557); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()"
")"); do { *((volatile int*)__null) = 9557; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9558 gLiveDatabaseHashtable->Remove(Id());
9559
9560 QuotaManager::MaybeRecordQuotaClientShutdownStep(
9561 quota::Client::IDB, "gLiveDatabaseHashtable entry removed"_ns);
9562 }
9563
9564 // Match the IncreaseBusyCount in OpenDatabaseOp::EnsureDatabaseActor().
9565 DecreaseBusyCount();
9566}
9567
9568void Database::ActorDestroy(ActorDestroyReason aWhy) {
9569 AssertIsOnBackgroundThread();
9570
9571 mActorDestroyed.Flip();
9572
9573 if (!IsInvalidated()) {
9574 Invalidate();
9575 }
9576}
9577
9578PBackgroundIDBDatabaseFileParent*
9579Database::AllocPBackgroundIDBDatabaseFileParent(const IPCBlob& aIPCBlob) {
9580 AssertIsOnBackgroundThread();
9581
9582 SafeRefPtr<DatabaseFileInfo> fileInfo = GetBlob(aIPCBlob);
9583 RefPtr<DatabaseFile> actor;
9584
9585 if (fileInfo) {
9586 actor = new DatabaseFile(std::move(fileInfo));
9587 } else {
9588 // This is a blob we haven't seen before.
9589 fileInfo = mFileManager->CreateFileInfo();
9590 if (NS_WARN_IF(!fileInfo)NS_warn_if_impl(!fileInfo, "!fileInfo", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9590)
) {
9591 return nullptr;
9592 }
9593
9594 actor = new DatabaseFile(IPCBlobUtils::Deserialize(aIPCBlob),
9595 std::move(fileInfo));
9596 }
9597
9598 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9598); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")")
; do { *((volatile int*)__null) = 9598; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9599
9600 return actor.forget().take();
9601}
9602
9603bool Database::DeallocPBackgroundIDBDatabaseFileParent(
9604 PBackgroundIDBDatabaseFileParent* aActor) {
9605 AssertIsOnBackgroundThread();
9606 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9606); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 9606; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9607
9608 RefPtr<DatabaseFile> actor = dont_AddRef(static_cast<DatabaseFile*>(aActor));
9609 return true;
9610}
9611
9612already_AddRefed<PBackgroundIDBTransactionParent>
9613Database::AllocPBackgroundIDBTransactionParent(
9614 const nsTArray<nsString>& aObjectStoreNames, const Mode& aMode,
9615 const Durability& aDurability) {
9616 AssertIsOnBackgroundThread();
9617
9618 // Once a database is closed it must not try to open new transactions.
9619 if (NS_WARN_IF(mClosed)NS_warn_if_impl(mClosed, "mClosed", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9619)
) {
9620 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9620); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInvalidated"
")"); do { *((volatile int*)__null) = 9620; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9621 return nullptr;
9622 }
9623
9624 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()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9624); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aObjectStoreNames.IsEmpty()" ")"); do { *((volatile int*)__null
) = 9624; __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); } return aCond; }((aObjectStoreNames.IsEmpty
()))
) {
9625 return nullptr;
9626 }
9627
9628 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9631); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")"); do { *((volatile int*)__null) = 9631; __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))
9629 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9631); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")"); do { *((volatile int*)__null) = 9631; __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))
9630 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9631); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")"); do { *((volatile int*)__null) = 9631; __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))
9631 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9631); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")"); do { *((volatile int*)__null) = 9631; __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))
) {
9632 return nullptr;
9633 }
9634
9635 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed"
")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aDurability != IDBTransaction::Durability::Default &&
aDurability != IDBTransaction::Durability::Strict &&
aDurability != IDBTransaction::Durability::Relaxed))
9636 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed"
")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aDurability != IDBTransaction::Durability::Default &&
aDurability != IDBTransaction::Durability::Strict &&
aDurability != IDBTransaction::Durability::Relaxed))
9637 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed"
")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aDurability != IDBTransaction::Durability::Default &&
aDurability != IDBTransaction::Durability::Strict &&
aDurability != IDBTransaction::Durability::Relaxed))
) {
9638 return nullptr;
9639 }
9640
9641 const ObjectStoreTable& objectStores = mMetadata->mObjectStores;
9642 const uint32_t nameCount = aObjectStoreNames.Length();
9643
9644 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()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9644); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"nameCount > objectStores.Count()" ")"); do { *((volatile
int*)__null) = 9644; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((nameCount >
objectStores.Count()))
) {
9645 return nullptr;
9646 }
9647
9648 QM_TRY_UNWRAP(auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9649 auto objectStoreMetadatas,auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9650 TransformIntoNewArrayAbortOnErr(auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9651 aObjectStoreNames,auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9652 [lastName = Maybe<const nsString&>{},auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9653 &objectStores](const nsString& name) mutableauto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9654 -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> {auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9655 if (lastName) {auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9656 // Make sure that this name is sorted properly and not aauto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9657 // duplicate.auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9658 if (NS_AUUF_OR_WARN_IF(name <= lastName.ref())) {auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9659 return Err(NS_ERROR_FAILURE);auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9660 }auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9661 }auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9662 lastName = SomeRef(name);auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9663
9664 const auto foundIt =auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9665 std::find_if(objectStores.cbegin(), objectStores.cend(),auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9666 [&name](const auto& entry) {auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9667 const auto& value = entry.GetData();auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9668 MOZ_ASSERT(entry.GetKey());auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9669 return name == value->mCommonMetadata.name() &&auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9670 !value->mDeleted;auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9671 });auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9672 if (foundIt == objectStores.cend()) {auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9673 MOZ_ASSERT_UNLESS_FUZZING(false, "ObjectStore not found.");auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9674 return Err(NS_ERROR_FAILURE);auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9675 }auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9676
9677 return foundIt->GetData().clonePtr();auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9678 },auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9679 fallible),auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
9680 nullptr)auto tryResult975 = (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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9658; __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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9668; __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." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9673; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult975.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult975.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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9680, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9658); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9658; __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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9668); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9668; __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.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9673); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9673; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult975
.unwrap();
;
9681
9682 return MakeSafeRefPtr<NormalTransaction>(SafeRefPtrFromThis(), aMode,
9683 aDurability,
9684 std::move(objectStoreMetadatas))
9685 .forget();
9686}
9687
9688mozilla::ipc::IPCResult Database::RecvPBackgroundIDBTransactionConstructor(
9689 PBackgroundIDBTransactionParent* aActor,
9690 nsTArray<nsString>&& aObjectStoreNames, const Mode& aMode,
9691 const Durability& aDurability) {
9692 AssertIsOnBackgroundThread();
9693 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9693); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 9693; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9694 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9694); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreNames.IsEmpty()"
")"); do { *((volatile int*)__null) = 9694; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9695 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9698); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
")"); do { *((volatile int*)__null) = 9698; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9696 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9698); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
")"); do { *((volatile int*)__null) = 9698; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9697 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9698); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
")"); do { *((volatile int*)__null) = 9698; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9698 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9698); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
")"); do { *((volatile int*)__null) = 9698; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9699 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9701); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed"
")"); do { *((volatile int*)__null) = 9701; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9700 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9701); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed"
")"); do { *((volatile int*)__null) = 9701; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9701 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9701); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed"
")"); do { *((volatile int*)__null) = 9701; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9702 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9702); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mClosed" ")"
); do { *((volatile int*)__null) = 9702; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9703
9704 if (IsInvalidated()) {
9705 // This is an expected race. We don't want the child to die here, just don't
9706 // actually do any work.
9707 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9708 }
9709
9710 if (!gConnectionPool) {
9711 gConnectionPool = new ConnectionPool();
9712 }
9713
9714 auto* transaction = static_cast<NormalTransaction*>(aActor);
9715
9716 RefPtr<StartTransactionOp> startOp = new StartTransactionOp(
9717 SafeRefPtr{transaction, AcquireStrongRefFromRawPtr{}});
9718
9719 uint64_t transactionId = startOp->StartOnConnectionPool(
9720 GetLoggingInfo()->Id(), mMetadata->mDatabaseId,
9721 transaction->LoggingSerialNumber(), aObjectStoreNames,
9722 aMode != IDBTransaction::Mode::ReadOnly);
9723
9724 transaction->Init(transactionId);
9725
9726 if (NS_WARN_IF(!RegisterTransaction(*transaction))NS_warn_if_impl(!RegisterTransaction(*transaction), "!RegisterTransaction(*transaction)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9726)
) {
9727 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9727, "UnknownErr")
;
9728 transaction->Abort(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, /* aForce */ false);
9729 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9730 }
9731
9732 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9733}
9734
9735mozilla::ipc::IPCResult Database::RecvDeleteMe() {
9736 AssertIsOnBackgroundThread();
9737 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9737); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { *((volatile int*)__null) = 9737; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9738
9739 QM_WARNONLY_TRY(OkIf(PBackgroundIDBDatabaseParent::Send__delete__(this))){auto tryResult976 = (OkIf(PBackgroundIDBDatabaseParent::Send__delete__
(this))); static_assert(std::is_empty_v<typename decltype(
tryResult976)::ok_type>); if ((__builtin_expect(!!(tryResult976
.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBDatabaseParent::Send__delete__(this))"
, tryResult976.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9739, mozilla::dom::quota::Severity::Warning); }}
;
9740
9741 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9742}
9743
9744mozilla::ipc::IPCResult Database::RecvBlocked() {
9745 AssertIsOnBackgroundThread();
9746
9747 if (NS_WARN_IF(mClosed)NS_warn_if_impl(mClosed, "mClosed", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9747)
) {
9748 // Even though the sender checks the DB for not being closed, too,
9749 // there is a potential race with an ongoing origin clearing which
9750 // might have invalidated the DB in the meantime. Just ignore.
9751 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9752 }
9753
9754 DatabaseActorInfo* info;
9755 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9755); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(Id(), &info)"
")"); do { *((volatile int*)__null) = 9755; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9756 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9756); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.Contains(this)"
")"); do { *((volatile int*)__null) = 9756; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9757
9758 if (NS_WARN_IF(!info->mWaitingFactoryOp)NS_warn_if_impl(!info->mWaitingFactoryOp, "!info->mWaitingFactoryOp"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9758)
) {
9759 return IPC_FAIL(this, "Database info has no mWaitingFactoryOp!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Database info has no mWaitingFactoryOp!"
))
;
9760 }
9761
9762 info->mWaitingFactoryOp->NoteDatabaseBlocked(this);
9763
9764 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9765}
9766
9767mozilla::ipc::IPCResult Database::RecvClose() {
9768 AssertIsOnBackgroundThread();
9769
9770 if (NS_WARN_IF(!CloseInternal())NS_warn_if_impl(!CloseInternal(), "!CloseInternal()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9770)
) {
9771 return IPC_FAIL(this, "CloseInternal failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("CloseInternal failed!"
))
;
9772 }
9773
9774 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9775}
9776
9777void Database::StartTransactionOp::RunOnConnectionThread() {
9778 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9778); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 9778; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9779 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9779); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { *((volatile int*)__null) = 9779; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9780
9781 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)
9782 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)
9783 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)
;
9784
9785 TransactionDatabaseOperationBase::RunOnConnectionThread();
9786}
9787
9788nsresult Database::StartTransactionOp::DoDatabaseWork(
9789 DatabaseConnection* aConnection) {
9790 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9790); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 9790; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9791 aConnection->AssertIsOnConnectionThread();
9792
9793 Transaction().SetActiveOnConnectionThread();
9794
9795 if (Transaction().GetMode() == IDBTransaction::Mode::Cleanup) {
9796 DebugOnly<nsresult> rv = aConnection->DisableQuotaChecks();
9797 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9799); } } while (false)
9798 "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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9799); } } while (false)
9799 "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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9799); } } while (false)
;
9800 }
9801
9802 if (Transaction().GetMode() != IDBTransaction::Mode::ReadOnly) {
9803 QM_TRY(MOZ_TO_RESULT({auto tryResult977 = (ToResult(aConnection->BeginWriteTransaction
(Transaction().GetDurability()))); static_assert(std::is_empty_v
<typename decltype(tryResult977)::ok_type>); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))"
, tryResult977.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9804, mozilla::dom::quota::Severity::Error); return tryResult977
.propagateErr(); }}
9804 aConnection->BeginWriteTransaction(Transaction().GetDurability()))){auto tryResult977 = (ToResult(aConnection->BeginWriteTransaction
(Transaction().GetDurability()))); static_assert(std::is_empty_v
<typename decltype(tryResult977)::ok_type>); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))"
, tryResult977.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9804, mozilla::dom::quota::Severity::Error); return tryResult977
.propagateErr(); }}
;
9805 }
9806
9807 return NS_OK;
9808}
9809
9810nsresult Database::StartTransactionOp::SendSuccessResult() {
9811 // We don't need to do anything here.
9812 return NS_OK;
9813}
9814
9815bool Database::StartTransactionOp::SendFailureResult(
9816 nsresult /* aResultCode */) {
9817 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9817, "UnknownErr")
;
9818
9819 // Abort the transaction.
9820 return false;
9821}
9822
9823void Database::StartTransactionOp::Cleanup() {
9824#ifdef DEBUG1
9825 // StartTransactionOp is not a normal database operation that is tied to an
9826 // actor. Do this to make our assertions happy.
9827 NoteActorDestroyed();
9828#endif
9829
9830 TransactionDatabaseOperationBase::Cleanup();
9831}
9832
9833/*******************************************************************************
9834 * TransactionBase
9835 ******************************************************************************/
9836
9837TransactionBase::TransactionBase(SafeRefPtr<Database> aDatabase, Mode aMode,
9838 Durability aDurability)
9839 : mDatabase(std::move(aDatabase)),
9840 mDatabaseId(mDatabase->Id()),
9841 mLoggingSerialNumber(
9842 mDatabase->GetLoggingInfo()->NextTransactionSN(aMode)),
9843 mActiveRequestCount(0),
9844 mInvalidatedOnAnyThread(false),
9845 mMode(aMode),
9846 mDurability(aDurability),
9847 mResultCode(NS_OK) {
9848 AssertIsOnBackgroundThread();
9849 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9849); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { *((volatile int*)__null) = 9849; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9850 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9850); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingSerialNumber"
")"); do { *((volatile int*)__null) = 9850; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9851}
9852
9853TransactionBase::~TransactionBase() {
9854 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9854); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActiveRequestCount"
")"); do { *((volatile int*)__null) = 9854; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9855 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9855); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed"
")"); do { *((volatile int*)__null) = 9855; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9856 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9856); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCommittedOrAborted"
")"); do { *((volatile int*)__null) = 9856; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
9857}
9858
9859void TransactionBase::Abort(nsresult aResultCode, bool aForce) {
9860 AssertIsOnBackgroundThread();
9861 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9861); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))"
")"); do { *((volatile int*)__null) = 9861; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9862
9863 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
9864 mResultCode = aResultCode;
9865 }
9866
9867 if (aForce) {
9868 mForceAborted.EnsureFlipped();
9869 }
9870
9871 MaybeCommitOrAbort();
9872}
9873
9874mozilla::ipc::IPCResult TransactionBase::RecvCommit(
9875 IProtocol* aActor, const Maybe<int64_t> aLastRequest) {
9876 AssertIsOnBackgroundThread();
9877
9878 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9878)
) {
9879 return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"Attempt to commit an already comitted/aborted transaction!")
)
9880 aActor, "Attempt to commit an already comitted/aborted transaction!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"Attempt to commit an already comitted/aborted transaction!")
)
;
9881 }
9882
9883 mCommitOrAbortReceived.Flip();
9884 mLastRequestBeforeCommit.init(aLastRequest);
9885 MaybeCommitOrAbort();
9886
9887 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9888}
9889
9890mozilla::ipc::IPCResult TransactionBase::RecvAbort(IProtocol* aActor,
9891 nsresult aResultCode) {
9892 AssertIsOnBackgroundThread();
9893
9894 if (NS_WARN_IF(NS_SUCCEEDED(aResultCode))NS_warn_if_impl(((bool)(__builtin_expect(!!(!NS_FAILED_impl(aResultCode
)), 1))), "NS_SUCCEEDED(aResultCode)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9894)
) {
9895 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!"))
;
9896 }
9897
9898 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9899)
9899 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9899)
) {
9900 return IPC_FAIL(aActor, "aResultCode does not refer to IndexedDB!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"aResultCode does not refer to IndexedDB!"))
;
9901 }
9902
9903 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9903)
) {
9904 return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"Attempt to abort an already comitted/aborted transaction!"))
9905 aActor, "Attempt to abort an already comitted/aborted transaction!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"Attempt to abort an already comitted/aborted transaction!"))
;
9906 }
9907
9908 mCommitOrAbortReceived.Flip();
9909 Abort(aResultCode, /* aForce */ false);
9910
9911 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9912}
9913
9914void TransactionBase::CommitOrAbort() {
9915 AssertIsOnBackgroundThread();
9916
9917 mCommittedOrAborted.Flip();
9918
9919 if (!mInitialized) {
9920 return;
9921 }
9922
9923 // In case of a failed request and explicitly committed transaction, abort
9924 // (cf. https://w3c.github.io/IndexedDB/#async-execute-request step 5.3
9925 // vs. 5.4). It's worth emphasizing this can only happen here when we are
9926 // committing explicitly, otherwise the decision is made by the child.
9927 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
&& mLastFailedRequest &&
9928 *mLastRequestBeforeCommit &&
9929 *mLastFailedRequest == **mLastRequestBeforeCommit) {
9930 mResultCode = NS_ERROR_DOM_INDEXEDDB_ABORT_ERR;
9931 }
9932
9933 RefPtr<CommitOp> commitOp =
9934 new CommitOp(SafeRefPtrFromThis(), ClampResultCode(mResultCode));
9935
9936 gConnectionPool->Finish(TransactionId(), commitOp);
9937}
9938
9939SafeRefPtr<FullObjectStoreMetadata>
9940TransactionBase::GetMetadataForObjectStoreId(
9941 IndexOrObjectStoreId aObjectStoreId) const {
9942 AssertIsOnBackgroundThread();
9943 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9943); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId"
")"); do { *((volatile int*)__null) = 9943; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9944
9945 if (!aObjectStoreId) {
9946 return nullptr;
9947 }
9948
9949 auto metadata = mDatabase->Metadata().mObjectStores.Lookup(aObjectStoreId);
9950 if (!metadata || (*metadata)->mDeleted) {
9951 return nullptr;
9952 }
9953
9954 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9954); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*metadata)->mCommonMetadata.id() == aObjectStoreId"
")"); do { *((volatile int*)__null) = 9954; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9955
9956 return metadata->clonePtr();
9957}
9958
9959SafeRefPtr<FullIndexMetadata> TransactionBase::GetMetadataForIndexId(
9960 FullObjectStoreMetadata& aObjectStoreMetadata,
9961 IndexOrObjectStoreId aIndexId) const {
9962 AssertIsOnBackgroundThread();
9963 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9963); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aIndexId" ")"
); do { *((volatile int*)__null) = 9963; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9964
9965 if (!aIndexId) {
9966 return nullptr;
9967 }
9968
9969 auto metadata = aObjectStoreMetadata.mIndexes.Lookup(aIndexId);
9970 if (!metadata || (*metadata)->mDeleted) {
9971 return nullptr;
9972 }
9973
9974 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9974); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*metadata)->mCommonMetadata.id() == aIndexId"
")"); do { *((volatile int*)__null) = 9974; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9975
9976 return metadata->clonePtr();
9977}
9978
9979void TransactionBase::NoteModifiedAutoIncrementObjectStore(
9980 const SafeRefPtr<FullObjectStoreMetadata>& aMetadata) {
9981 AssertIsOnConnectionThread();
9982
9983 if (!mModifiedAutoIncrementObjectStoreMetadataArray.Contains(aMetadata)) {
9984 mModifiedAutoIncrementObjectStoreMetadataArray.AppendElement(
9985 aMetadata.clonePtr());
9986 }
9987}
9988
9989void TransactionBase::ForgetModifiedAutoIncrementObjectStore(
9990 FullObjectStoreMetadata& aMetadata) {
9991 AssertIsOnConnectionThread();
9992
9993 mModifiedAutoIncrementObjectStoreMetadataArray.RemoveElement(&aMetadata);
9994}
9995
9996bool TransactionBase::VerifyRequestParams(const RequestParams& aParams) const {
9997 AssertIsOnBackgroundThread();
9998 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9998); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { *((volatile int*)__null) = 9998; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9999
10000 switch (aParams.type()) {
10001 case RequestParams::TObjectStoreAddParams: {
10002 const ObjectStoreAddPutParams& params =
10003 aParams.get_ObjectStoreAddParams().commonParams();
10004 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)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10004); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params)" ")"); do { *((volatile int*)__null
) = 10004; __attribute__((nomerge)) ::abort(); } while (false
); } } while (false); } return aCond; }((!VerifyRequestParams
(params)))
) {
10005 return false;
10006 }
10007 break;
10008 }
10009
10010 case RequestParams::TObjectStorePutParams: {
10011 const ObjectStoreAddPutParams& params =
10012 aParams.get_ObjectStorePutParams().commonParams();
10013 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)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10013); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params)" ")"); do { *((volatile int*)__null
) = 10013; __attribute__((nomerge)) ::abort(); } while (false
); } } while (false); } return aCond; }((!VerifyRequestParams
(params)))
) {
10014 return false;
10015 }
10016 break;
10017 }
10018
10019 case RequestParams::TObjectStoreGetParams: {
10020 const ObjectStoreGetParams& params = aParams.get_ObjectStoreGetParams();
10021 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10022 GetMetadataForObjectStoreId(params.objectStoreId());
10023 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10023); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10023; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10024 return false;
10025 }
10026 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())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10026); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { *((volatile
int*)__null) = 10026; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
10027 return false;
10028 }
10029 break;
10030 }
10031
10032 case RequestParams::TObjectStoreGetKeyParams: {
10033 const ObjectStoreGetKeyParams& params =
10034 aParams.get_ObjectStoreGetKeyParams();
10035 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10036 GetMetadataForObjectStoreId(params.objectStoreId());
10037 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10037); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10037; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10038 return false;
10039 }
10040 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())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { *((volatile
int*)__null) = 10040; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
10041 return false;
10042 }
10043 break;
10044 }
10045
10046 case RequestParams::TObjectStoreGetAllParams: {
10047 const ObjectStoreGetAllParams& params =
10048 aParams.get_ObjectStoreGetAllParams();
10049 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10050 GetMetadataForObjectStoreId(params.objectStoreId());
10051 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10051); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10051; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10052 return false;
10053 }
10054 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())"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10054); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.optionalKeyRange())" ")"); do {
*((volatile int*)__null) = 10054; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } return aCond; }
((!VerifyRequestParams(params.optionalKeyRange())))
) {
10055 return false;
10056 }
10057 break;
10058 }
10059
10060 case RequestParams::TObjectStoreGetAllKeysParams: {
10061 const ObjectStoreGetAllKeysParams& params =
10062 aParams.get_ObjectStoreGetAllKeysParams();
10063 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10064 GetMetadataForObjectStoreId(params.objectStoreId());
10065 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10065); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10065; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10066 return false;
10067 }
10068 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())"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10068); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.optionalKeyRange())" ")"); do {
*((volatile int*)__null) = 10068; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } return aCond; }
((!VerifyRequestParams(params.optionalKeyRange())))
) {
10069 return false;
10070 }
10071 break;
10072 }
10073
10074 case RequestParams::TObjectStoreDeleteParams: {
10075 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10078); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10078; __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))
10076 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10078); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10078; __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))
10077 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10078); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10078; __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))
10078 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10078); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10078; __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))
) {
10079 return false;
10080 }
10081
10082 const ObjectStoreDeleteParams& params =
10083 aParams.get_ObjectStoreDeleteParams();
10084 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10085 GetMetadataForObjectStoreId(params.objectStoreId());
10086 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10086); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10086; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10087 return false;
10088 }
10089 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())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10089); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { *((volatile
int*)__null) = 10089; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
10090 return false;
10091 }
10092 break;
10093 }
10094
10095 case RequestParams::TObjectStoreClearParams: {
10096 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10099); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10099; __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))
10097 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10099); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10099; __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))
10098 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10099); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10099; __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))
10099 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10099); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10099; __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))
) {
10100 return false;
10101 }
10102
10103 const ObjectStoreClearParams& params =
10104 aParams.get_ObjectStoreClearParams();
10105 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10106 GetMetadataForObjectStoreId(params.objectStoreId());
10107 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10107); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10107; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10108 return false;
10109 }
10110 break;
10111 }
10112
10113 case RequestParams::TObjectStoreCountParams: {
10114 const ObjectStoreCountParams& params =
10115 aParams.get_ObjectStoreCountParams();
10116 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10117 GetMetadataForObjectStoreId(params.objectStoreId());
10118 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10118); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10118; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10119 return false;
10120 }
10121 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())"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10121); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.optionalKeyRange())" ")"); do {
*((volatile int*)__null) = 10121; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } return aCond; }
((!VerifyRequestParams(params.optionalKeyRange())))
) {
10122 return false;
10123 }
10124 break;
10125 }
10126
10127 case RequestParams::TIndexGetParams: {
10128 const IndexGetParams& params = aParams.get_IndexGetParams();
10129 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10130 GetMetadataForObjectStoreId(params.objectStoreId());
10131 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10131); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10131; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10132 return false;
10133 }
10134 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10135 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10136 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10136); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { *((volatile int*)__null) = 10136
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10137 return false;
10138 }
10139 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())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10139); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { *((volatile
int*)__null) = 10139; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
10140 return false;
10141 }
10142 break;
10143 }
10144
10145 case RequestParams::TIndexGetKeyParams: {
10146 const IndexGetKeyParams& params = aParams.get_IndexGetKeyParams();
10147 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10148 GetMetadataForObjectStoreId(params.objectStoreId());
10149 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10149); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10149; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10150 return false;
10151 }
10152 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10153 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10154 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10154); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { *((volatile int*)__null) = 10154
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10155 return false;
10156 }
10157 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())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { *((volatile
int*)__null) = 10157; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
10158 return false;
10159 }
10160 break;
10161 }
10162
10163 case RequestParams::TIndexGetAllParams: {
10164 const IndexGetAllParams& params = aParams.get_IndexGetAllParams();
10165 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10166 GetMetadataForObjectStoreId(params.objectStoreId());
10167 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10167); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10167; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10168 return false;
10169 }
10170 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10171 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10172 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10172); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { *((volatile int*)__null) = 10172
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10173 return false;
10174 }
10175 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())"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.optionalKeyRange())" ")"); do {
*((volatile int*)__null) = 10175; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } return aCond; }
((!VerifyRequestParams(params.optionalKeyRange())))
) {
10176 return false;
10177 }
10178 break;
10179 }
10180
10181 case RequestParams::TIndexGetAllKeysParams: {
10182 const IndexGetAllKeysParams& params = aParams.get_IndexGetAllKeysParams();
10183 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10184 GetMetadataForObjectStoreId(params.objectStoreId());
10185 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10185); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10185; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10186 return false;
10187 }
10188 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10189 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10190 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10190); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { *((volatile int*)__null) = 10190
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10191 return false;
10192 }
10193 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())"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.optionalKeyRange())" ")"); do {
*((volatile int*)__null) = 10193; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } return aCond; }
((!VerifyRequestParams(params.optionalKeyRange())))
) {
10194 return false;
10195 }
10196 break;
10197 }
10198
10199 case RequestParams::TIndexCountParams: {
10200 const IndexCountParams& params = aParams.get_IndexCountParams();
10201 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10202 GetMetadataForObjectStoreId(params.objectStoreId());
10203 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10203); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10203; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10204 return false;
10205 }
10206 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10207 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10208 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10208); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { *((volatile int*)__null) = 10208
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10209 return false;
10210 }
10211 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())"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10211); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.optionalKeyRange())" ")"); do {
*((volatile int*)__null) = 10211; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } return aCond; }
((!VerifyRequestParams(params.optionalKeyRange())))
) {
10212 return false;
10213 }
10214 break;
10215 }
10216
10217 default:
10218 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10218); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 10218; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
10219 }
10220
10221 return true;
10222}
10223
10224bool TransactionBase::VerifyRequestParams(
10225 const SerializedKeyRange& aParams) const {
10226 AssertIsOnBackgroundThread();
10227
10228 // XXX Check more here?
10229
10230 if (aParams.isOnly()) {
10231 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()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10231); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.lower().IsUnset()" ")"); do { *((volatile int*)__null
) = 10231; __attribute__((nomerge)) ::abort(); } while (false
); } } while (false); } return aCond; }((aParams.lower().IsUnset
()))
) {
10232 return false;
10233 }
10234 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()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10234); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aParams.upper().IsUnset()" ")"); do { *((volatile int*)__null
) = 10234; __attribute__((nomerge)) ::abort(); } while (false
); } } while (false); } return aCond; }((!aParams.upper().IsUnset
()))
) {
10235 return false;
10236 }
10237 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()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10237); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.lowerOpen()" ")"); do { *((volatile int*)__null) = 10237
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((aParams.lowerOpen()))
) {
10238 return false;
10239 }
10240 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()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10240); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.upperOpen()" ")"); do { *((volatile int*)__null) = 10240
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((aParams.upperOpen()))
) {
10241 return false;
10242 }
10243 } 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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10244); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.lower().IsUnset() && aParams.upper().IsUnset()"
")"); do { *((volatile int*)__null) = 10244; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((aParams.lower().IsUnset() && aParams.upper
().IsUnset()))
10244 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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10244); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.lower().IsUnset() && aParams.upper().IsUnset()"
")"); do { *((volatile int*)__null) = 10244; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((aParams.lower().IsUnset() && aParams.upper
().IsUnset()))
) {
10245 return false;
10246 }
10247
10248 return true;
10249}
10250
10251bool TransactionBase::VerifyRequestParams(
10252 const ObjectStoreAddPutParams& aParams) const {
10253 AssertIsOnBackgroundThread();
10254
10255 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10257); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10257; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::VersionChange))
10256 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10257); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10257; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::VersionChange))
10257 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10257); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10257; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::VersionChange))
) {
10258 return false;
10259 }
10260
10261 SafeRefPtr<FullObjectStoreMetadata> objMetadata =
10262 GetMetadataForObjectStoreId(aParams.objectStoreId());
10263 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10263); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objMetadata" ")"); do { *((volatile int*)__null) = 10263; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!objMetadata))
) {
10264 return false;
10265 }
10266
10267 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()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10267); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aParams.cloneInfo().data().data.Size()" ")"); do { *((volatile
int*)__null) = 10267; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((!aParams.cloneInfo
().data().data.Size()))
) {
10268 return false;
10269 }
10270
10271 if (objMetadata->mCommonMetadata.autoIncrement() &&
10272 objMetadata->mCommonMetadata.keyPath().IsValid() &&
10273 aParams.key().IsUnset()) {
10274 const SerializedStructuredCloneWriteInfo& cloneInfo = aParams.cloneInfo();
10275
10276 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()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10276); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!cloneInfo.offsetToKeyProp()" ")"); do { *((volatile int*)__null
) = 10276; __attribute__((nomerge)) ::abort(); } while (false
); } } while (false); } return aCond; }((!cloneInfo.offsetToKeyProp
()))
) {
10277 return false;
10278 }
10279
10280 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)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10280); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"cloneInfo.data().data.Size() < sizeof(uint64_t)" ")"); do
{ *((volatile int*)__null) = 10280; __attribute__((nomerge))
::abort(); } while (false); } } while (false); } return aCond
; }((cloneInfo.data().data.Size() < sizeof(uint64_t)))
) {
10281 return false;
10282 }
10283
10284 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))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10285); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))"
")"); do { *((volatile int*)__null) = 10285; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((cloneInfo.offsetToKeyProp() > (cloneInfo.data()
.data.Size() - sizeof(uint64_t))))
10285 (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))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10285); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))"
")"); do { *((volatile int*)__null) = 10285; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((cloneInfo.offsetToKeyProp() > (cloneInfo.data()
.data.Size() - sizeof(uint64_t))))
) {
10286 return false;
10287 }
10288 } 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()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10288); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.cloneInfo().offsetToKeyProp()" ")"); do { *((volatile
int*)__null) = 10288; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((aParams.cloneInfo
().offsetToKeyProp()))
) {
10289 return false;
10290 }
10291
10292 for (const auto& updateInfo : aParams.indexUpdateInfos()) {
10293 SafeRefPtr<FullIndexMetadata> indexMetadata =
10294 GetMetadataForIndexId(*objMetadata, updateInfo.indexId());
10295 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10295); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { *((volatile int*)__null) = 10295
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10296 return false;
10297 }
10298
10299 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()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10299); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"updateInfo.value().IsUnset()" ")"); do { *((volatile int*)__null
) = 10299; __attribute__((nomerge)) ::abort(); } while (false
); } } while (false); } return aCond; }((updateInfo.value().IsUnset
()))
) {
10300 return false;
10301 }
10302
10303 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10303); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!updateInfo.value().GetBuffer().IsEmpty()"
")"); do { *((volatile int*)__null) = 10303; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10304 }
10305
10306 for (const FileAddInfo& fileAddInfo : aParams.fileAddInfos()) {
10307 const PBackgroundIDBDatabaseFileParent* file =
10308 fileAddInfo.file().AsParent();
10309
10310 switch (fileAddInfo.type()) {
10311 case StructuredCloneFileBase::eBlob:
10312 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!file" ")"); do { *((volatile int*)__null) = 10312; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!file))
) {
10313 return false;
10314 }
10315 break;
10316
10317 case StructuredCloneFileBase::eMutableFile: {
10318 return false;
10319 }
10320
10321 case StructuredCloneFileBase::eStructuredClone:
10322 case StructuredCloneFileBase::eWasmBytecode:
10323 case StructuredCloneFileBase::eWasmCompiled:
10324 case StructuredCloneFileBase::eEndGuard:
10325 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."
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10325); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"Unsupported." ")"); do { *((volatile int*)__null) = 10325; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
;
10326 return false;
10327
10328 default:
10329 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10329); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 10329; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
10330 }
10331 }
10332
10333 return true;
10334}
10335
10336bool TransactionBase::VerifyRequestParams(
10337 const Maybe<SerializedKeyRange>& aParams) const {
10338 AssertIsOnBackgroundThread();
10339
10340 if (aParams.isSome()) {
10341 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())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10341); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(aParams.ref())" ")"); do { *((volatile
int*)__null) = 10341; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((!VerifyRequestParams
(aParams.ref())))
) {
10342 return false;
10343 }
10344 }
10345
10346 return true;
10347}
10348
10349void TransactionBase::NoteActiveRequest() {
10350 AssertIsOnBackgroundThread();
10351 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10351); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActiveRequestCount < (18446744073709551615UL)"
")"); do { *((volatile int*)__null) = 10351; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10352
10353 mActiveRequestCount++;
10354}
10355
10356void TransactionBase::NoteFinishedRequest(const int64_t aRequestId,
10357 const nsresult aResultCode) {
10358 AssertIsOnBackgroundThread();
10359 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10359); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActiveRequestCount"
")"); do { *((volatile int*)__null) = 10359; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10360
10361 mActiveRequestCount--;
10362
10363 if (NS_FAILED(aResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0))
)
) {
10364 mLastFailedRequest = Some(aRequestId);
10365 }
10366
10367 MaybeCommitOrAbort();
10368}
10369
10370void TransactionBase::Invalidate() {
10371 AssertIsOnBackgroundThread();
10372 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10372); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInvalidated == mInvalidatedOnAnyThread"
")"); do { *((volatile int*)__null) = 10372; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10373
10374 if (!mInvalidated) {
10375 mInvalidated.Flip();
10376 mInvalidatedOnAnyThread = true;
10377
10378 Abort(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR, /* aForce */ false);
10379 }
10380}
10381
10382PBackgroundIDBRequestParent* TransactionBase::AllocRequest(
10383 const int64_t aRequestId, RequestParams&& aParams, bool aTrustParams) {
10384 AssertIsOnBackgroundThread();
10385 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10385); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { *((volatile int*)__null) = 10385; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10386
10387#ifdef DEBUG1
10388 // Always verify parameters in DEBUG builds!
10389 aTrustParams = false;
10390#endif
10391
10392 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)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10392); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aTrustParams && !VerifyRequestParams(aParams)" ")"
); do { *((volatile int*)__null) = 10392; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((!aTrustParams && !VerifyRequestParams(aParams)))
) {
10393 return nullptr;
10394 }
10395
10396 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10396); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mCommitOrAbortReceived" ")"); do { *((volatile int*)__null)
= 10396; __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); } return aCond; }((mCommitOrAbortReceived
))
) {
10397 return nullptr;
10398 }
10399
10400 RefPtr<NormalTransactionOp> actor;
10401
10402 switch (aParams.type()) {
10403 case RequestParams::TObjectStoreAddParams:
10404 case RequestParams::TObjectStorePutParams:
10405 actor = new ObjectStoreAddOrPutRequestOp(SafeRefPtrFromThis(), aRequestId,
10406 std::move(aParams));
10407 break;
10408
10409 case RequestParams::TObjectStoreGetParams:
10410 actor =
10411 new ObjectStoreGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10412 /* aGetAll */ false);
10413 break;
10414
10415 case RequestParams::TObjectStoreGetAllParams:
10416 actor =
10417 new ObjectStoreGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10418 /* aGetAll */ true);
10419 break;
10420
10421 case RequestParams::TObjectStoreGetKeyParams:
10422 actor = new ObjectStoreGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId,
10423 aParams,
10424 /* aGetAll */ false);
10425 break;
10426
10427 case RequestParams::TObjectStoreGetAllKeysParams:
10428 actor = new ObjectStoreGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId,
10429 aParams,
10430 /* aGetAll */ true);
10431 break;
10432
10433 case RequestParams::TObjectStoreDeleteParams:
10434 actor =
10435 new ObjectStoreDeleteRequestOp(SafeRefPtrFromThis(), aRequestId,
10436 aParams.get_ObjectStoreDeleteParams());
10437 break;
10438
10439 case RequestParams::TObjectStoreClearParams:
10440 actor =
10441 new ObjectStoreClearRequestOp(SafeRefPtrFromThis(), aRequestId,
10442 aParams.get_ObjectStoreClearParams());
10443 break;
10444
10445 case RequestParams::TObjectStoreCountParams:
10446 actor =
10447 new ObjectStoreCountRequestOp(SafeRefPtrFromThis(), aRequestId,
10448 aParams.get_ObjectStoreCountParams());
10449 break;
10450
10451 case RequestParams::TIndexGetParams:
10452 actor = new IndexGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10453 /* aGetAll */ false);
10454 break;
10455
10456 case RequestParams::TIndexGetKeyParams:
10457 actor =
10458 new IndexGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10459 /* aGetAll */ false);
10460 break;
10461
10462 case RequestParams::TIndexGetAllParams:
10463 actor = new IndexGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10464 /* aGetAll */ true);
10465 break;
10466
10467 case RequestParams::TIndexGetAllKeysParams:
10468 actor =
10469 new IndexGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10470 /* aGetAll */ true);
10471 break;
10472
10473 case RequestParams::TIndexCountParams:
10474 actor =
10475 new IndexCountRequestOp(SafeRefPtrFromThis(), aRequestId, aParams);
10476 break;
10477
10478 default:
10479 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10479); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 10479; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
10480 }
10481
10482 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")"
); do { *((volatile int*)__null) = 10482; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10483
10484 // Transfer ownership to IPDL.
10485 return actor.forget().take();
10486}
10487
10488bool TransactionBase::StartRequest(PBackgroundIDBRequestParent* aActor) {
10489 AssertIsOnBackgroundThread();
10490 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10490); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 10490; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10491
10492 auto* op = static_cast<NormalTransactionOp*>(aActor);
10493
10494 if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10494)
) {
10495 op->Cleanup();
10496 return false;
10497 }
10498
10499 op->DispatchToConnectionPool();
10500 return true;
10501}
10502
10503bool TransactionBase::DeallocRequest(
10504 PBackgroundIDBRequestParent* const aActor) {
10505 AssertIsOnBackgroundThread();
10506 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10506); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 10506; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10507
10508 // Transfer ownership back from IPDL.
10509 const RefPtr<NormalTransactionOp> actor =
10510 dont_AddRef(static_cast<NormalTransactionOp*>(aActor));
10511 return true;
10512}
10513
10514already_AddRefed<PBackgroundIDBCursorParent> TransactionBase::AllocCursor(
10515 const OpenCursorParams& aParams, bool aTrustParams) {
10516 AssertIsOnBackgroundThread();
10517 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10517); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None"
")"); do { *((volatile int*)__null) = 10517; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10518
10519#ifdef DEBUG1
10520 // Always verify parameters in DEBUG builds!
10521 aTrustParams = false;
10522#endif
10523
10524 const OpenCursorParams::Type type = aParams.type();
10525 SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata;
10526 SafeRefPtr<FullIndexMetadata> indexMetadata;
10527 CursorBase::Direction direction;
10528
10529 // First extract the parameters common to all open cursor variants.
10530 const auto& commonParams = GetCommonOpenCursorParams(aParams);
10531 objectStoreMetadata =
10532 GetMetadataForObjectStoreId(commonParams.objectStoreId());
10533 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10533); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10533; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10534 return nullptr;
10535 }
10536 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())"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10537); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams( commonParams.optionalKeyRange())" ")"
); do { *((volatile int*)__null) = 10537; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((!VerifyRequestParams( commonParams.optionalKeyRange())))
10537 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())"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10537); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams( commonParams.optionalKeyRange())" ")"
); do { *((volatile int*)__null) = 10537; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((!VerifyRequestParams( commonParams.optionalKeyRange())))
) {
10538 return nullptr;
10539 }
10540 direction = commonParams.direction();
10541
10542 // Now, for the index open cursor variants, extract the additional parameter.
10543 if (type == OpenCursorParams::TIndexOpenCursorParams ||
10544 type == OpenCursorParams::TIndexOpenKeyCursorParams) {
10545 const auto& commonIndexParams = GetCommonIndexOpenCursorParams(aParams);
10546 indexMetadata = GetMetadataForIndexId(*objectStoreMetadata,
10547 commonIndexParams.indexId());
10548 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10548); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { *((volatile int*)__null) = 10548
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10549 return nullptr;
10550 }
10551 }
10552
10553 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mCommitOrAbortReceived" ")"); do { *((volatile int*)__null)
= 10553; __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); } return aCond; }((mCommitOrAbortReceived
))
) {
10554 return nullptr;
10555 }
10556
10557 // Create Cursor and transfer ownership to IPDL.
10558 switch (type) {
10559 case OpenCursorParams::TObjectStoreOpenCursorParams:
10560 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10560); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexMetadata"
")"); do { *((volatile int*)__null) = 10560; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10561 return MakeAndAddRef<Cursor<IDBCursorType::ObjectStore>>(
10562 SafeRefPtrFromThis(), std::move(objectStoreMetadata), direction,
10563 CursorBase::ConstructFromTransactionBase{});
10564 case OpenCursorParams::TObjectStoreOpenKeyCursorParams:
10565 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10565); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexMetadata"
")"); do { *((volatile int*)__null) = 10565; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10566 return MakeAndAddRef<Cursor<IDBCursorType::ObjectStoreKey>>(
10567 SafeRefPtrFromThis(), std::move(objectStoreMetadata), direction,
10568 CursorBase::ConstructFromTransactionBase{});
10569 case OpenCursorParams::TIndexOpenCursorParams:
10570 return MakeAndAddRef<Cursor<IDBCursorType::Index>>(
10571 SafeRefPtrFromThis(), std::move(objectStoreMetadata),
10572 std::move(indexMetadata), direction,
10573 CursorBase::ConstructFromTransactionBase{});
10574 case OpenCursorParams::TIndexOpenKeyCursorParams:
10575 return MakeAndAddRef<Cursor<IDBCursorType::IndexKey>>(
10576 SafeRefPtrFromThis(), std::move(objectStoreMetadata),
10577 std::move(indexMetadata), direction,
10578 CursorBase::ConstructFromTransactionBase{});
10579 default:
10580 MOZ_CRASH("Cannot get here.")do { do { } while (false); MOZ_ReportCrash("" "Cannot get here."
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10580); AnnotateMozCrashReason("MOZ_CRASH(" "Cannot get here."
")"); do { *((volatile int*)__null) = 10580; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
10581 }
10582}
10583
10584bool TransactionBase::StartCursor(PBackgroundIDBCursorParent* const aActor,
10585 const int64_t aRequestId,
10586 const OpenCursorParams& aParams) {
10587 AssertIsOnBackgroundThread();
10588 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10588); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 10588; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10589 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10589); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None"
")"); do { *((volatile int*)__null) = 10589; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10590
10591 auto* const op = static_cast<CursorBase*>(aActor);
10592
10593 if (NS_WARN_IF(!op->Start(aRequestId, aParams))NS_warn_if_impl(!op->Start(aRequestId, aParams), "!op->Start(aRequestId, aParams)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10593)
) {
10594 return false;
10595 }
10596
10597 return true;
10598}
10599
10600/*******************************************************************************
10601 * NormalTransaction
10602 ******************************************************************************/
10603
10604NormalTransaction::NormalTransaction(
10605 SafeRefPtr<Database> aDatabase, TransactionBase::Mode aMode,
10606 TransactionBase::Durability aDurability,
10607 nsTArray<SafeRefPtr<FullObjectStoreMetadata>>&& aObjectStores)
10608 : TransactionBase(std::move(aDatabase), aMode, aDurability),
10609 mObjectStores{std::move(aObjectStores)} {
10610 AssertIsOnBackgroundThread();
10611 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10611); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStores.IsEmpty()"
")"); do { *((volatile int*)__null) = 10611; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10612}
10613
10614bool NormalTransaction::IsSameProcessActor() {
10615 AssertIsOnBackgroundThread();
10616
10617 PBackgroundParent* const actor = Manager()->Manager()->Manager();
10618 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10618); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")"
); do { *((volatile int*)__null) = 10618; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10619
10620 return !BackgroundParent::IsOtherProcessActor(actor);
10621}
10622
10623void NormalTransaction::SendCompleteNotification(nsresult aResult) {
10624 AssertIsOnBackgroundThread();
10625
10626 if (!IsActorDestroyed()) {
10627 Unused << SendComplete(aResult);
10628 }
10629}
10630
10631void NormalTransaction::ActorDestroy(ActorDestroyReason aWhy) {
10632 AssertIsOnBackgroundThread();
10633
10634 NoteActorDestroyed();
10635
10636 if (!mCommittedOrAborted) {
10637 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
10638 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10638, "UnknownErr")
;
10639 mResultCode = NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
10640 }
10641
10642 mForceAborted.EnsureFlipped();
10643
10644 MaybeCommitOrAbort();
10645 }
10646}
10647
10648mozilla::ipc::IPCResult NormalTransaction::RecvDeleteMe() {
10649 AssertIsOnBackgroundThread();
10650 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10650); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 10650; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10651
10652 QM_WARNONLY_TRY(OkIf(PBackgroundIDBTransactionParent::Send__delete__(this))){auto tryResult978 = (OkIf(PBackgroundIDBTransactionParent::Send__delete__
(this))); static_assert(std::is_empty_v<typename decltype(
tryResult978)::ok_type>); if ((__builtin_expect(!!(tryResult978
.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBTransactionParent::Send__delete__(this))"
, tryResult978.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10652, mozilla::dom::quota::Severity::Warning); }}
;
10653
10654 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10655}
10656
10657mozilla::ipc::IPCResult NormalTransaction::RecvCommit(
10658 const Maybe<int64_t>& aLastRequest) {
10659 AssertIsOnBackgroundThread();
10660
10661 return TransactionBase::RecvCommit(this, aLastRequest);
10662}
10663
10664mozilla::ipc::IPCResult NormalTransaction::RecvAbort(
10665 const nsresult& aResultCode) {
10666 AssertIsOnBackgroundThread();
10667
10668 return TransactionBase::RecvAbort(this, aResultCode);
10669}
10670
10671PBackgroundIDBRequestParent*
10672NormalTransaction::AllocPBackgroundIDBRequestParent(
10673 const int64_t& aRequestId, const RequestParams& aParams) {
10674 AssertIsOnBackgroundThread();
10675 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10675); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { *((volatile int*)__null) = 10675; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10676
10677 return AllocRequest(aRequestId,
10678 std::move(const_cast<RequestParams&>(aParams)),
10679 IsSameProcessActor());
10680}
10681
10682mozilla::ipc::IPCResult NormalTransaction::RecvPBackgroundIDBRequestConstructor(
10683 PBackgroundIDBRequestParent* const aActor, const int64_t& aRequestId,
10684 const RequestParams& aParams) {
10685 AssertIsOnBackgroundThread();
10686 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10686); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 10686; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10687 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10687); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { *((volatile int*)__null) = 10687; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10688
10689 if (!StartRequest(aActor)) {
10690 return IPC_FAIL(this, "StartRequest failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartRequest failed!"
))
;
10691 }
10692 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10693}
10694
10695bool NormalTransaction::DeallocPBackgroundIDBRequestParent(
10696 PBackgroundIDBRequestParent* const aActor) {
10697 AssertIsOnBackgroundThread();
10698 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10698); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 10698; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10699
10700 return DeallocRequest(aActor);
10701}
10702
10703already_AddRefed<PBackgroundIDBCursorParent>
10704NormalTransaction::AllocPBackgroundIDBCursorParent(
10705 const int64_t& aRequestId, const OpenCursorParams& aParams) {
10706 AssertIsOnBackgroundThread();
10707
10708 return AllocCursor(aParams, IsSameProcessActor());
10709}
10710
10711mozilla::ipc::IPCResult NormalTransaction::RecvPBackgroundIDBCursorConstructor(
10712 PBackgroundIDBCursorParent* const aActor, const int64_t& aRequestId,
10713 const OpenCursorParams& aParams) {
10714 AssertIsOnBackgroundThread();
10715 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10715); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 10715; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10716 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10716); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None"
")"); do { *((volatile int*)__null) = 10716; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10717
10718 if (!StartCursor(aActor, aRequestId, aParams)) {
10719 return IPC_FAIL(this, "StartCursor failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartCursor failed!"
))
;
10720 }
10721 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10722}
10723
10724/*******************************************************************************
10725 * VersionChangeTransaction
10726 ******************************************************************************/
10727
10728VersionChangeTransaction::VersionChangeTransaction(
10729 OpenDatabaseOp* aOpenDatabaseOp)
10730 : TransactionBase(aOpenDatabaseOp->mDatabase.clonePtr(),
10731 IDBTransaction::Mode::VersionChange,
10732 // VersionChange must not change durability.
10733 IDBTransaction::Durability::Default), // Not used.
10734 mOpenDatabaseOp(aOpenDatabaseOp) {
10735 AssertIsOnBackgroundThread();
10736 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10736); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpenDatabaseOp"
")"); do { *((volatile int*)__null) = 10736; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10737}
10738
10739VersionChangeTransaction::~VersionChangeTransaction() {
10740#ifdef DEBUG1
10741 // Silence the base class' destructor assertion if we never made this actor
10742 // live.
10743 FakeActorDestroyed();
10744#endif
10745}
10746
10747bool VersionChangeTransaction::IsSameProcessActor() {
10748 AssertIsOnBackgroundThread();
10749
10750 PBackgroundParent* actor = Manager()->Manager()->Manager();
10751 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10751); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")"
); do { *((volatile int*)__null) = 10751; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10752
10753 return !BackgroundParent::IsOtherProcessActor(actor);
10754}
10755
10756void VersionChangeTransaction::SetActorAlive() {
10757 AssertIsOnBackgroundThread();
10758 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10758); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 10758; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10759
10760 mActorWasAlive.Flip();
10761}
10762
10763bool VersionChangeTransaction::CopyDatabaseMetadata() {
10764 AssertIsOnBackgroundThread();
10765 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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10765); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOldMetadata"
")"); do { *((volatile int*)__null) = 10765; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10766
10767 const auto& origMetadata = GetDatabase().Metadata();
10768
10769 SafeRefPtr<FullDatabaseMetadata> newMetadata = origMetadata.Duplicate();
10770 if (NS_WARN_IF(!newMetadata)NS_warn_if_impl(!newMetadata, "!newMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10770)
) {
10771 return false;
10772 }
10773
10774 // Replace the live metadata with the new mutable copy.
10775 DatabaseActorInfo* info;
10776 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10776); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(origMetadata.mDatabaseId, &info)"
")"); do { *((volatile int*)__null) = 10776; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
10777 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10777); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 10777; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10778 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10778); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata == &origMetadata"
")"); do { *((volatile int*)__null) = 10778; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10779
10780 mOldMetadata = std::move(info->mMetadata);
10781 info->mMetadata = std::move(newMetadata);
10782
10783 // Replace metadata pointers for all live databases.
10784 for (const auto& liveDatabase : info->mLiveDatabases) {
10785 liveDatabase->mMetadata = info->mMetadata.clonePtr();
10786 }
10787
10788 return true;
10789}
10790
10791void VersionChangeTransaction::UpdateMetadata(nsresult aResult) {
10792 AssertIsOnBackgroundThread();
10793 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10793); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp"
")"); do { *((volatile int*)__null) = 10793; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10794 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10794); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase"
")"); do { *((volatile int*)__null) = 10794; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10795 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10795); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOpenDatabaseOp->mDatabaseId.ref().IsEmpty()"
")"); do { *((volatile int*)__null) = 10795; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
10796
10797 if (IsActorDestroyed() || !mActorWasAlive) {
10798 return;
10799 }
10800
10801 SafeRefPtr<FullDatabaseMetadata> oldMetadata = std::move(mOldMetadata);
10802
10803 DatabaseActorInfo* info;
10804 if (!gLiveDatabaseHashtable->Get(oldMetadata->mDatabaseId, &info)) {
10805 return;
10806 }
10807
10808 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10808); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 10808; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10809
10810 if (NS_SUCCEEDED(aResult)((bool)(__builtin_expect(!!(!NS_FAILED_impl(aResult)), 1)))) {
10811 // Remove all deleted objectStores and indexes, then mark immutable.
10812 info->mMetadata->mObjectStores.RemoveIf([](const auto& objectStoreIter) {
10813 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10813); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreIter.Key()"
")"); do { *((volatile int*)__null) = 10813; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10814 const SafeRefPtr<FullObjectStoreMetadata>& metadata =
10815 objectStoreIter.Data();
10816 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10816); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 10816; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10817
10818 if (metadata->mDeleted) {
10819 return true;
10820 }
10821
10822 metadata->mIndexes.RemoveIf([](const auto& indexIter) -> bool {
10823 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10823); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexIter.Key()"
")"); do { *((volatile int*)__null) = 10823; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10824 const SafeRefPtr<FullIndexMetadata>& index = indexIter.Data();
10825 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10825); AnnotateMozCrashReason("MOZ_ASSERT" "(" "index" ")"
); do { *((volatile int*)__null) = 10825; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10826
10827 return index->mDeleted;
10828 });
10829 metadata->mIndexes.MarkImmutable();
10830
10831 return false;
10832 });
10833
10834 info->mMetadata->mObjectStores.MarkImmutable();
10835 } else {
10836 // Replace metadata pointers for all live databases.
10837 info->mMetadata = std::move(oldMetadata);
10838
10839 for (auto& liveDatabase : info->mLiveDatabases) {
10840 liveDatabase->mMetadata = info->mMetadata.clonePtr();
10841 }
10842 }
10843}
10844
10845void VersionChangeTransaction::SendCompleteNotification(nsresult aResult) {
10846 AssertIsOnBackgroundThread();
10847 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10847); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp"
")"); do { *((volatile int*)__null) = 10847; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10848 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10848); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOpenDatabaseOp->mCompleteCallback"
")"); do { *((volatile int*)__null) = 10848; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10849 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10849); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->HasFailed()"
")"); do { *((volatile int*)__null) = 10849; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
10850 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10851); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults"
")"); do { *((volatile int*)__null) = 10851; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
10851 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10851); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults"
")"); do { *((volatile int*)__null) = 10851; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
10852
10853 const RefPtr<OpenDatabaseOp> openDatabaseOp = std::move(mOpenDatabaseOp);
10854
10855 if (!mActorWasAlive) {
10856 return;
10857 }
10858
10859 openDatabaseOp->mCompleteCallback =
10860 [self = SafeRefPtr{this, AcquireStrongRefFromRawPtr{}}, aResult]() {
10861 if (!self->IsActorDestroyed()) {
10862 Unused << self->SendComplete(aResult);
10863 }
10864 };
10865
10866 auto handleError = [openDatabaseOp](const nsresult rv) {
10867 openDatabaseOp->SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR);
10868
10869 openDatabaseOp->mState = OpenDatabaseOp::State::SendingResults;
10870
10871 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())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10871); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(openDatabaseOp->Run())"
")"); do { *((volatile int*)__null) = 10871; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
10872 };
10873
10874 if (NS_FAILED(aResult)((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult)), 0)))) {
10875 // 3.3.1 Opening a database:
10876 // "If the upgrade transaction was aborted, run the steps for closing a
10877 // database connection with connection, create and return a new AbortError
10878 // exception and abort these steps."
10879 handleError(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR);
10880 return;
10881 }
10882
10883 openDatabaseOp->mState = OpenDatabaseOp::State::DatabaseWorkVersionUpdate;
10884
10885 QuotaManager* const quotaManager = QuotaManager::Get();
10886 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10886); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 10886; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10887
10888 QM_TRY(MOZ_TO_RESULT(quotaManager->IOThread()->Dispatch(openDatabaseOp,{auto tryResult979 = (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(tryResult979
)::ok_type>); if ((__builtin_expect(!!(tryResult979.isErr(
)), 0))) { auto tryTempError = tryResult979.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10892, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; }}
10889 NS_DISPATCH_NORMAL)){auto tryResult979 = (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(tryResult979
)::ok_type>); if ((__builtin_expect(!!(tryResult979.isErr(
)), 0))) { auto tryTempError = tryResult979.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10892, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; }}
10890 .mapErr({auto tryResult979 = (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(tryResult979
)::ok_type>); if ((__builtin_expect(!!(tryResult979.isErr(
)), 0))) { auto tryTempError = tryResult979.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10892, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; }}
10891 [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; }),{auto tryResult979 = (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(tryResult979
)::ok_type>); if ((__builtin_expect(!!(tryResult979.isErr(
)), 0))) { auto tryTempError = tryResult979.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10892, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; }}
10892 QM_VOID, handleError){auto tryResult979 = (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(tryResult979
)::ok_type>); if ((__builtin_expect(!!(tryResult979.isErr(
)), 0))) { auto tryTempError = tryResult979.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10892, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; }}
;
10893}
10894
10895void VersionChangeTransaction::ActorDestroy(ActorDestroyReason aWhy) {
10896 AssertIsOnBackgroundThread();
10897
10898 NoteActorDestroyed();
10899
10900 if (!mCommittedOrAborted) {
10901 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
10902 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10902, "UnknownErr")
;
10903 mResultCode = NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
10904 }
10905
10906 mForceAborted.EnsureFlipped();
10907
10908 MaybeCommitOrAbort();
10909 }
10910}
10911
10912mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteMe() {
10913 AssertIsOnBackgroundThread();
10914 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10914); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 10914; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10915
10916 QM_WARNONLY_TRY({auto tryResult980 = (OkIf(PBackgroundIDBVersionChangeTransactionParent
::Send__delete__(this))); static_assert(std::is_empty_v<typename
decltype(tryResult980)::ok_type>); if ((__builtin_expect(
!!(tryResult980.isErr()), 0))) { mozilla::dom::quota::HandleError
("OkIf(PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this))"
, tryResult980.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10917, mozilla::dom::quota::Severity::Warning); }}
10917 OkIf(PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this))){auto tryResult980 = (OkIf(PBackgroundIDBVersionChangeTransactionParent
::Send__delete__(this))); static_assert(std::is_empty_v<typename
decltype(tryResult980)::ok_type>); if ((__builtin_expect(
!!(tryResult980.isErr()), 0))) { mozilla::dom::quota::HandleError
("OkIf(PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this))"
, tryResult980.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10917, mozilla::dom::quota::Severity::Warning); }}
;
10918
10919 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10920}
10921
10922mozilla::ipc::IPCResult VersionChangeTransaction::RecvCommit(
10923 const Maybe<int64_t>& aLastRequest) {
10924 AssertIsOnBackgroundThread();
10925
10926 return TransactionBase::RecvCommit(this, aLastRequest);
10927}
10928
10929mozilla::ipc::IPCResult VersionChangeTransaction::RecvAbort(
10930 const nsresult& aResultCode) {
10931 AssertIsOnBackgroundThread();
10932
10933 return TransactionBase::RecvAbort(this, aResultCode);
10934}
10935
10936mozilla::ipc::IPCResult VersionChangeTransaction::RecvCreateObjectStore(
10937 const ObjectStoreMetadata& aMetadata) {
10938 AssertIsOnBackgroundThread();
10939
10940 if (NS_WARN_IF(!aMetadata.id())NS_warn_if_impl(!aMetadata.id(), "!aMetadata.id()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10940)
) {
10941 return IPC_FAIL(this, "No metadata ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata ID!"
))
;
10942 }
10943
10944 const SafeRefPtr<FullDatabaseMetadata> dbMetadata =
10945 GetDatabase().MetadataPtr();
10946
10947 if (NS_WARN_IF(aMetadata.id() != dbMetadata->mNextObjectStoreId)NS_warn_if_impl(aMetadata.id() != dbMetadata->mNextObjectStoreId
, "aMetadata.id() != dbMetadata->mNextObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10947)
) {
10948 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!"
))
;
10949 }
10950
10951 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10954)
10952 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10954)
10953 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10954)
10954 .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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10954)
) {
10955 return IPC_FAIL(this, "MatchMetadataNameOrId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("MatchMetadataNameOrId failed!"
))
;
10956 }
10957
10958 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10958)
) {
10959 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
10960 }
10961
10962 const int64_t initialAutoIncrementId = aMetadata.autoIncrement() ? 1 : 0;
10963 auto newMetadata = MakeSafeRefPtr<FullObjectStoreMetadata>(
10964 aMetadata, FullObjectStoreMetadata::AutoIncrementIds{
10965 initialAutoIncrementId, initialAutoIncrementId});
10966
10967 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10968)
10968 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10968)
) {
10969 return IPC_FAIL(this, "mObjectStores.InsertOrUpdate failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("mObjectStores.InsertOrUpdate failed!"
))
;
10970 }
10971
10972 dbMetadata->mNextObjectStoreId++;
10973
10974 RefPtr<CreateObjectStoreOp> op = new CreateObjectStoreOp(
10975 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aMetadata);
10976
10977 if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10977)
) {
10978 op->Cleanup();
10979 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
10980 }
10981
10982 op->DispatchToConnectionPool();
10983
10984 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10985}
10986
10987mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteObjectStore(
10988 const IndexOrObjectStoreId& aObjectStoreId) {
10989 AssertIsOnBackgroundThread();
10990
10991 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10991)
) {
10992 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
10993 }
10994
10995 const auto& dbMetadata = GetDatabase().Metadata();
10996 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10996); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0"
")"); do { *((volatile int*)__null) = 10996; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10997
10998 if (NS_WARN_IF(aObjectStoreId >= dbMetadata.mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata.mNextObjectStoreId
, "aObjectStoreId >= dbMetadata.mNextObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10998)
) {
10999 return IPC_FAIL(this, "Invalid ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid ObjectStoreId!"
))
;
11000 }
11001
11002 SafeRefPtr<FullObjectStoreMetadata> foundMetadata =
11003 GetMetadataForObjectStoreId(aObjectStoreId);
11004
11005 if (NS_WARN_IF(!foundMetadata)NS_warn_if_impl(!foundMetadata, "!foundMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11005)
) {
11006 return IPC_FAIL(this, "No metadata found for ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata found for ObjectStoreId!"
))
;
11007 }
11008
11009 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11009)
) {
11010 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11011 }
11012
11013 foundMetadata->mDeleted.Flip();
11014
11015 DebugOnly<bool> foundTargetId = false;
11016 const bool isLastObjectStore = std::all_of(
11017 dbMetadata.mObjectStores.begin(), dbMetadata.mObjectStores.end(),
11018 [&foundTargetId, aObjectStoreId](const auto& objectStoreEntry) -> bool {
11019 if (uint64_t(aObjectStoreId) == objectStoreEntry.GetKey()) {
11020 foundTargetId = true;
11021 return true;
11022 }
11023
11024 return objectStoreEntry.GetData()->mDeleted;
11025 });
11026 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11026); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundTargetId"
")"); do { *((volatile int*)__null) = 11026; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11027
11028 RefPtr<DeleteObjectStoreOp> op = new DeleteObjectStoreOp(
11029 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(),
11030 std::move(foundMetadata), isLastObjectStore);
11031
11032 if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11032)
) {
11033 op->Cleanup();
11034 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11035 }
11036
11037 op->DispatchToConnectionPool();
11038
11039 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11040}
11041
11042mozilla::ipc::IPCResult VersionChangeTransaction::RecvRenameObjectStore(
11043 const IndexOrObjectStoreId& aObjectStoreId, const nsAString& aName) {
11044 AssertIsOnBackgroundThread();
11045
11046 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11046)
) {
11047 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
11048 }
11049
11050 {
11051 const auto& dbMetadata = GetDatabase().Metadata();
11052 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11052); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0"
")"); do { *((volatile int*)__null) = 11052; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11053
11054 if (NS_WARN_IF(aObjectStoreId >= dbMetadata.mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata.mNextObjectStoreId
, "aObjectStoreId >= dbMetadata.mNextObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11054)
) {
11055 return IPC_FAIL(this, "Invalid ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid ObjectStoreId!"
))
;
11056 }
11057 }
11058
11059 SafeRefPtr<FullObjectStoreMetadata> foundMetadata =
11060 GetMetadataForObjectStoreId(aObjectStoreId);
11061
11062 if (NS_WARN_IF(!foundMetadata)NS_warn_if_impl(!foundMetadata, "!foundMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11062)
) {
11063 return IPC_FAIL(this, "No metadata found for ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata found for ObjectStoreId!"
))
;
11064 }
11065
11066 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11066)
) {
11067 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11068 }
11069
11070 foundMetadata->mCommonMetadata.name() = aName;
11071
11072 RefPtr<RenameObjectStoreOp> renameOp = new RenameObjectStoreOp(
11073 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(),
11074 *foundMetadata);
11075
11076 if (NS_WARN_IF(!renameOp->Init(*this))NS_warn_if_impl(!renameOp->Init(*this), "!renameOp->Init(*this)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11076)
) {
11077 renameOp->Cleanup();
11078 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11079 }
11080
11081 renameOp->DispatchToConnectionPool();
11082
11083 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11084}
11085
11086mozilla::ipc::IPCResult VersionChangeTransaction::RecvCreateIndex(
11087 const IndexOrObjectStoreId& aObjectStoreId,
11088 const IndexMetadata& aMetadata) {
11089 AssertIsOnBackgroundThread();
11090
11091 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11091)
) {
11092 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
11093 }
11094
11095 if (NS_WARN_IF(!aMetadata.id())NS_warn_if_impl(!aMetadata.id(), "!aMetadata.id()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11095)
) {
11096 return IPC_FAIL(this, "No Metadata id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Metadata id!"
))
;
11097 }
11098
11099 const auto dbMetadata = GetDatabase().MetadataPtr();
11100
11101 if (NS_WARN_IF(aMetadata.id() != dbMetadata->mNextIndexId)NS_warn_if_impl(aMetadata.id() != dbMetadata->mNextIndexId
, "aMetadata.id() != dbMetadata->mNextIndexId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11101)
) {
11102 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!"
))
;
11103 }
11104
11105 SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata =
11106 GetMetadataForObjectStoreId(aObjectStoreId);
11107
11108 if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11108)
) {
11109 return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!"
))
;
11110 }
11111
11112 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11115)
11113 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11115)
11114 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11115)
11115 .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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11115)
) {
11116 return IPC_FAIL(this, "MatchMetadataNameOrId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("MatchMetadataNameOrId failed!"
))
;
11117 }
11118
11119 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11119)
) {
11120 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11121 }
11122
11123 auto newMetadata = MakeSafeRefPtr<FullIndexMetadata>();
11124 newMetadata->mCommonMetadata = aMetadata;
11125
11126 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11127)
11127 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11127)
) {
11128 return IPC_FAIL(this, "mIndexes.InsertOrUpdate failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("mIndexes.InsertOrUpdate failed!"
))
;
11129 }
11130
11131 dbMetadata->mNextIndexId++;
11132
11133 RefPtr<CreateIndexOp> op = new CreateIndexOp(
11134 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aObjectStoreId,
11135 aMetadata);
11136
11137 if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11137)
) {
11138 op->Cleanup();
11139 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11140 }
11141
11142 op->DispatchToConnectionPool();
11143
11144 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11145}
11146
11147mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteIndex(
11148 const IndexOrObjectStoreId& aObjectStoreId,
11149 const IndexOrObjectStoreId& aIndexId) {
11150 AssertIsOnBackgroundThread();
11151
11152 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11152)
) {
11153 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
11154 }
11155
11156 if (NS_WARN_IF(!aIndexId)NS_warn_if_impl(!aIndexId, "!aIndexId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11156)
) {
11157 return IPC_FAIL(this, "No Index id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Index id!"
))
;
11158 }
11159 {
11160 const auto& dbMetadata = GetDatabase().Metadata();
11161 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11161); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0"
")"); do { *((volatile int*)__null) = 11161; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11162 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11162); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextIndexId > 0"
")"); do { *((volatile int*)__null) = 11162; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11163
11164 if (NS_WARN_IF(aObjectStoreId >= dbMetadata.mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata.mNextObjectStoreId
, "aObjectStoreId >= dbMetadata.mNextObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11164)
) {
11165 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!"
))
;
11166 }
11167
11168 if (NS_WARN_IF(aIndexId >= dbMetadata.mNextIndexId)NS_warn_if_impl(aIndexId >= dbMetadata.mNextIndexId, "aIndexId >= dbMetadata.mNextIndexId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11168)
) {
11169 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!"
))
;
11170 }
11171 }
11172
11173 SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata =
11174 GetMetadataForObjectStoreId(aObjectStoreId);
11175
11176 if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11176)
) {
11177 return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!"
))
;
11178 }
11179
11180 SafeRefPtr<FullIndexMetadata> foundIndexMetadata =
11181 GetMetadataForIndexId(*foundObjectStoreMetadata, aIndexId);
11182
11183 if (NS_WARN_IF(!foundIndexMetadata)NS_warn_if_impl(!foundIndexMetadata, "!foundIndexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11183)
) {
11184 return IPC_FAIL(this, "GetMetadataForIndexId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForIndexId failed!"
))
;
11185 }
11186
11187 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11187)
) {
11188 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11189 }
11190
11191 foundIndexMetadata->mDeleted.Flip();
11192
11193 DebugOnly<bool> foundTargetId = false;
11194 const bool isLastIndex =
11195 std::all_of(foundObjectStoreMetadata->mIndexes.cbegin(),
11196 foundObjectStoreMetadata->mIndexes.cend(),
11197 [&foundTargetId, aIndexId](const auto& indexEntry) -> bool {
11198 if (uint64_t(aIndexId) == indexEntry.GetKey()) {
11199 foundTargetId = true;
11200 return true;
11201 }
11202
11203 return indexEntry.GetData()->mDeleted;
11204 });
11205 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundTargetId"
")"); do { *((volatile int*)__null) = 11205; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11206
11207 RefPtr<DeleteIndexOp> op = new DeleteIndexOp(
11208 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aObjectStoreId,
11209 aIndexId, foundIndexMetadata->mCommonMetadata.unique(), isLastIndex);
11210
11211 if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11211)
) {
11212 op->Cleanup();
11213 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11214 }
11215
11216 op->DispatchToConnectionPool();
11217
11218 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11219}
11220
11221mozilla::ipc::IPCResult VersionChangeTransaction::RecvRenameIndex(
11222 const IndexOrObjectStoreId& aObjectStoreId,
11223 const IndexOrObjectStoreId& aIndexId, const nsAString& aName) {
11224 AssertIsOnBackgroundThread();
11225
11226 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11226)
) {
11227 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
11228 }
11229
11230 if (NS_WARN_IF(!aIndexId)NS_warn_if_impl(!aIndexId, "!aIndexId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11230)
) {
11231 return IPC_FAIL(this, "No Index id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Index id!"
))
;
11232 }
11233
11234 const SafeRefPtr<FullDatabaseMetadata> dbMetadata =
11235 GetDatabase().MetadataPtr();
11236 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11236); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata"
")"); do { *((volatile int*)__null) = 11236; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11237 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11237); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata->mNextObjectStoreId > 0"
")"); do { *((volatile int*)__null) = 11237; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11238 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11238); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata->mNextIndexId > 0"
")"); do { *((volatile int*)__null) = 11238; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11239
11240 if (NS_WARN_IF(aObjectStoreId >= dbMetadata->mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata->mNextObjectStoreId
, "aObjectStoreId >= dbMetadata->mNextObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11240)
) {
11241 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!"
))
;
11242 }
11243
11244 if (NS_WARN_IF(aIndexId >= dbMetadata->mNextIndexId)NS_warn_if_impl(aIndexId >= dbMetadata->mNextIndexId, "aIndexId >= dbMetadata->mNextIndexId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11244)
) {
11245 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!"
))
;
11246 }
11247
11248 SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata =
11249 GetMetadataForObjectStoreId(aObjectStoreId);
11250
11251 if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11251)
) {
11252 return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!"
))
;
11253 }
11254
11255 SafeRefPtr<FullIndexMetadata> foundIndexMetadata =
11256 GetMetadataForIndexId(*foundObjectStoreMetadata, aIndexId);
11257
11258 if (NS_WARN_IF(!foundIndexMetadata)NS_warn_if_impl(!foundIndexMetadata, "!foundIndexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11258)
) {
11259 return IPC_FAIL(this, "GetMetadataForIndexId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForIndexId failed!"
))
;
11260 }
11261
11262 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11262)
) {
11263 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11264 }
11265
11266 foundIndexMetadata->mCommonMetadata.name() = aName;
11267
11268 RefPtr<RenameIndexOp> renameOp = new RenameIndexOp(
11269 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(),
11270 *foundIndexMetadata, aObjectStoreId);
11271
11272 if (NS_WARN_IF(!renameOp->Init(*this))NS_warn_if_impl(!renameOp->Init(*this), "!renameOp->Init(*this)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11272)
) {
11273 renameOp->Cleanup();
11274 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11275 }
11276
11277 renameOp->DispatchToConnectionPool();
11278
11279 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11280}
11281
11282PBackgroundIDBRequestParent*
11283VersionChangeTransaction::AllocPBackgroundIDBRequestParent(
11284 const int64_t& aRequestId, const RequestParams& aParams) {
11285 AssertIsOnBackgroundThread();
11286 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11286); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { *((volatile int*)__null) = 11286; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11287
11288 return AllocRequest(aRequestId,
11289 std::move(const_cast<RequestParams&>(aParams)),
11290 IsSameProcessActor());
11291}
11292
11293mozilla::ipc::IPCResult
11294VersionChangeTransaction::RecvPBackgroundIDBRequestConstructor(
11295 PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId,
11296 const RequestParams& aParams) {
11297 AssertIsOnBackgroundThread();
11298 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11298); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 11298; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11299 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11299); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { *((volatile int*)__null) = 11299; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11300
11301 if (!StartRequest(aActor)) {
11302 return IPC_FAIL(this, "StartRequest failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartRequest failed!"
))
;
11303 }
11304 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11305}
11306
11307bool VersionChangeTransaction::DeallocPBackgroundIDBRequestParent(
11308 PBackgroundIDBRequestParent* aActor) {
11309 AssertIsOnBackgroundThread();
11310 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11310); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 11310; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11311
11312 return DeallocRequest(aActor);
11313}
11314
11315already_AddRefed<PBackgroundIDBCursorParent>
11316VersionChangeTransaction::AllocPBackgroundIDBCursorParent(
11317 const int64_t& aRequestId, const OpenCursorParams& aParams) {
11318 AssertIsOnBackgroundThread();
11319
11320 return AllocCursor(aParams, IsSameProcessActor());
11321}
11322
11323mozilla::ipc::IPCResult
11324VersionChangeTransaction::RecvPBackgroundIDBCursorConstructor(
11325 PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId,
11326 const OpenCursorParams& aParams) {
11327 AssertIsOnBackgroundThread();
11328 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11328); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 11328; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11329 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11329); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None"
")"); do { *((volatile int*)__null) = 11329; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11330
11331 if (!StartCursor(aActor, aRequestId, aParams)) {
11332 return IPC_FAIL(this, "StartCursor failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartCursor failed!"
))
;
11333 }
11334 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11335}
11336
11337/*******************************************************************************
11338 * CursorBase
11339 ******************************************************************************/
11340
11341CursorBase::CursorBase(SafeRefPtr<TransactionBase> aTransaction,
11342 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
11343 const Direction aDirection,
11344 const ConstructFromTransactionBase /*aConstructionTag*/)
11345 : mTransaction(std::move(aTransaction)),
11346 mObjectStoreMetadata(WrapNotNull(std::move(aObjectStoreMetadata))),
11347 mObjectStoreId((*mObjectStoreMetadata)->mCommonMetadata.id()),
11348 mDirection(aDirection),
11349 mMaxExtraCount(IndexedDatabaseManager::MaxPreloadExtraRecords()),
11350 mIsSameProcessActor(!BackgroundParent::IsOtherProcessActor(
11351 mTransaction->GetBackgroundParent())) {
11352 AssertIsOnBackgroundThread();
11353 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { *((volatile int*)__null) = 11353; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11354
11355 static_assert(
11356 OpenCursorParams::T__None == 0 && OpenCursorParams::T__Last == 4,
11357 "Lots of code here assumes only four types of cursors!");
11358}
11359
11360template <IDBCursorType CursorType>
11361bool Cursor<CursorType>::VerifyRequestParams(
11362 const CursorRequestParams& aParams,
11363 const CursorPosition<CursorType>& aPosition) const {
11364 AssertIsOnBackgroundThread();
11365 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11365); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != CursorRequestParams::T__None"
")"); do { *((volatile int*)__null) = 11365; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11366 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11366); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { *((volatile int*)__null) = 11366; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11367 if constexpr (IsIndexCursor) {
11368 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11368); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mIndexMetadata"
")"); do { *((volatile int*)__null) = 11368; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11369 }
11370
11371#ifdef DEBUG1
11372 {
11373 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
11374 mTransaction->GetMetadataForObjectStoreId(mObjectStoreId);
11375 if (objectStoreMetadata) {
11376 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)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11376); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata == (*this->mObjectStoreMetadata)"
")"); do { *((volatile int*)__null) = 11376; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11377 } else {
11378 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11378); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*this->mObjectStoreMetadata)->mDeleted"
")"); do { *((volatile int*)__null) = 11378; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11379 }
11380
11381 if constexpr (IsIndexCursor) {
11382 if (objectStoreMetadata) {
11383 const SafeRefPtr<FullIndexMetadata> indexMetadata =
11384 mTransaction->GetMetadataForIndexId(*objectStoreMetadata,
11385 this->mIndexId);
11386 if (indexMetadata) {
11387 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11387); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata == *this->mIndexMetadata"
")"); do { *((volatile int*)__null) = 11387; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11388 } else {
11389 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11389); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*this->mIndexMetadata)->mDeleted"
")"); do { *((volatile int*)__null) = 11389; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11390 }
11391 }
11392 }
11393 }
11394#endif
11395
11396 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11396); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"(*this->mObjectStoreMetadata)->mDeleted" ")"); do { *
((volatile int*)__null) = 11396; __attribute__((nomerge)) ::abort
(); } while (false); } } while (false); } return aCond; }(((*
this->mObjectStoreMetadata)->mDeleted))
) {
11397 return false;
11398 }
11399
11400 if constexpr (IsIndexCursor) {
11401 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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11402); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted"
")"); do { *((volatile int*)__null) = 11402; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((this->mIndexMetadata && (*this->mIndexMetadata
)->mDeleted))
11402 (*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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11402); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted"
")"); do { *((volatile int*)__null) = 11402; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((this->mIndexMetadata && (*this->mIndexMetadata
)->mDeleted))
) {
11403 return false;
11404 }
11405 }
11406
11407 const Key& sortKey = aPosition.GetSortKey(this->IsLocaleAware());
11408
11409 switch (aParams.type()) {
11410 case CursorRequestParams::TContinueParams: {
11411 const Key& key = aParams.get_ContinueParams().key();
11412 if (!key.IsUnset()) {
11413 switch (mDirection) {
11414 case IDBCursorDirection::Next:
11415 case IDBCursorDirection::Nextunique:
11416 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11416); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key <= sortKey" ")"); do { *((volatile int*)__null) = 11416
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((key <= sortKey))
) {
11417 return false;
11418 }
11419 break;
11420
11421 case IDBCursorDirection::Prev:
11422 case IDBCursorDirection::Prevunique:
11423 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11423); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key >= sortKey" ")"); do { *((volatile int*)__null) = 11423
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((key >= sortKey))
) {
11424 return false;
11425 }
11426 break;
11427
11428 default:
11429 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11429); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 11429; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
11430 }
11431 }
11432 break;
11433 }
11434
11435 case CursorRequestParams::TContinuePrimaryKeyParams: {
11436 if constexpr (IsIndexCursor) {
11437 const Key& key = aParams.get_ContinuePrimaryKeyParams().key();
11438 const Key& primaryKey =
11439 aParams.get_ContinuePrimaryKeyParams().primaryKey();
11440 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11440); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!key.IsUnset()"
")"); do { *((volatile int*)__null) = 11440; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11441 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!primaryKey.IsUnset()"
")"); do { *((volatile int*)__null) = 11441; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11442 switch (mDirection) {
11443 case IDBCursorDirection::Next:
11444 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)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11446); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)"
")"); do { *((volatile int*)__null) = 11446; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key < sortKey || (key == sortKey && primaryKey
<= aPosition.mObjectStoreKey)))
11445 (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)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11446); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)"
")"); do { *((volatile int*)__null) = 11446; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key < sortKey || (key == sortKey && primaryKey
<= aPosition.mObjectStoreKey)))
11446 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)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11446); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)"
")"); do { *((volatile int*)__null) = 11446; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key < sortKey || (key == sortKey && primaryKey
<= aPosition.mObjectStoreKey)))
) {
11447 return false;
11448 }
11449 break;
11450
11451 case IDBCursorDirection::Prev:
11452 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)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11454); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)"
")"); do { *((volatile int*)__null) = 11454; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key > sortKey || (key == sortKey && primaryKey
>= aPosition.mObjectStoreKey)))
11453 (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)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11454); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)"
")"); do { *((volatile int*)__null) = 11454; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key > sortKey || (key == sortKey && primaryKey
>= aPosition.mObjectStoreKey)))
11454 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)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11454); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)"
")"); do { *((volatile int*)__null) = 11454; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key > sortKey || (key == sortKey && primaryKey
>= aPosition.mObjectStoreKey)))
) {
11455 return false;
11456 }
11457 break;
11458
11459 default:
11460 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11460); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 11460; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
11461 }
11462 }
11463 break;
11464 }
11465
11466 case CursorRequestParams::TAdvanceParams:
11467 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()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aParams.get_AdvanceParams().count()" ")"); do { *((volatile
int*)__null) = 11467; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((!aParams.get_AdvanceParams
().count()))
) {
11468 return false;
11469 }
11470 break;
11471
11472 default:
11473 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11473); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 11473; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
11474 }
11475
11476 return true;
11477}
11478
11479template <IDBCursorType CursorType>
11480bool Cursor<CursorType>::Start(const int64_t aRequestId,
11481 const OpenCursorParams& aParams) {
11482 AssertIsOnBackgroundThread();
11483 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)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11483); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == ToOpenCursorParamsType(CursorType)"
")"); do { *((volatile int*)__null) = 11483; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11484 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11484); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { *((volatile int*)__null) = 11484; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11485
11486 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11486); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mCurrentlyRunningOp" ")"); do { *((volatile int*)__null) = 11486
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((mCurrentlyRunningOp))
) {
11487 return false;
11488 }
11489
11490 const Maybe<SerializedKeyRange>& optionalKeyRange =
11491 GetCommonOpenCursorParams(aParams).optionalKeyRange();
11492
11493 const RefPtr<OpenOp> openOp = new OpenOp(this, aRequestId, optionalKeyRange);
11494
11495 if (NS_WARN_IF(!openOp->Init(*mTransaction))NS_warn_if_impl(!openOp->Init(*mTransaction), "!openOp->Init(*mTransaction)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11495)
) {
11496 openOp->Cleanup();
11497 return false;
11498 }
11499
11500 openOp->DispatchToConnectionPool();
11501 mCurrentlyRunningOp = openOp;
11502
11503 return true;
11504}
11505
11506void ValueCursorBase::ProcessFiles(CursorResponse& aResponse,
11507 const FilesArray& aFiles) {
11508 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11514); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { *((volatile int*)__null) = 11514; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11509 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11514); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { *((volatile int*)__null) = 11514; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11510 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11514); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { *((volatile int*)__null) = 11514; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11511 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11514); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { *((volatile int*)__null) = 11514; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11512 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11514); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { *((volatile int*)__null) = 11514; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11513 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11514); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { *((volatile int*)__null) = 11514; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11514 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11514); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { *((volatile int*)__null) = 11514; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11515
11516 for (size_t i = 0; i < aFiles.Length(); ++i) {
11517 const auto& files = aFiles[i];
11518 if (!files.IsEmpty()) {
11519 // TODO: Replace this assertion by one that checks if the response type
11520 // matches the cursor type, at a more generic location.
11521 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11524); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
")"); do { *((volatile int*)__null) = 11524; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
11522 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11524); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
")"); do { *((volatile int*)__null) = 11524; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
11523 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11524); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
")"); do { *((volatile int*)__null) = 11524; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
11524 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11524); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
")"); do { *((volatile int*)__null) = 11524; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11525
11526 SerializedStructuredCloneReadInfo* serializedInfo = nullptr;
11527 switch (aResponse.type()) {
11528 case CursorResponse::TArrayOfObjectStoreCursorResponse: {
11529 auto& responses = aResponse.get_ArrayOfObjectStoreCursorResponse();
11530 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11530); AnnotateMozCrashReason("MOZ_ASSERT" "(" "i < responses.Length()"
")"); do { *((volatile int*)__null) = 11530; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11531 serializedInfo = &responses[i].cloneInfo();
11532 break;
11533 }
11534
11535 case CursorResponse::TArrayOfIndexCursorResponse: {
11536 auto& responses = aResponse.get_ArrayOfIndexCursorResponse();
11537 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11537); AnnotateMozCrashReason("MOZ_ASSERT" "(" "i < responses.Length()"
")"); do { *((volatile int*)__null) = 11537; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11538 serializedInfo = &responses[i].cloneInfo();
11539 break;
11540 }
11541
11542 default:
11543 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11543); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 11543; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
11544 }
11545
11546 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11546); AnnotateMozCrashReason("MOZ_ASSERT" "(" "serializedInfo"
")"); do { *((volatile int*)__null) = 11546; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11547 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11547); AnnotateMozCrashReason("MOZ_ASSERT" "(" "serializedInfo->files().IsEmpty()"
")"); do { *((volatile int*)__null) = 11547; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11548 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11548); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mDatabase"
")"); do { *((volatile int*)__null) = 11548; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11549
11550 QM_TRY_UNWRAP(serializedInfo->files(),auto tryResult981 = (SerializeStructuredCloneFiles(this->mDatabase
, files, false)); if ((__builtin_expect(!!(tryResult981.isErr
()), 0))) { auto tryTempError = tryResult981.unwrapErr(); mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11555, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = ClampResultCode(result
); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return ; } serializedInfo->files
() = tryResult981.unwrap();
11551 SerializeStructuredCloneFiles(this->mDatabase, files,auto tryResult981 = (SerializeStructuredCloneFiles(this->mDatabase
, files, false)); if ((__builtin_expect(!!(tryResult981.isErr
()), 0))) { auto tryTempError = tryResult981.unwrapErr(); mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11555, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = ClampResultCode(result
); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return ; } serializedInfo->files
() = tryResult981.unwrap();
11552 /* aForPreprocess */ false),auto tryResult981 = (SerializeStructuredCloneFiles(this->mDatabase
, files, false)); if ((__builtin_expect(!!(tryResult981.isErr
()), 0))) { auto tryTempError = tryResult981.unwrapErr(); mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11555, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = ClampResultCode(result
); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return ; } serializedInfo->files
() = tryResult981.unwrap();
11553 QM_VOID, [&aResponse](const nsresult result) {auto tryResult981 = (SerializeStructuredCloneFiles(this->mDatabase
, files, false)); if ((__builtin_expect(!!(tryResult981.isErr
()), 0))) { auto tryTempError = tryResult981.unwrapErr(); mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11555, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = ClampResultCode(result
); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return ; } serializedInfo->files
() = tryResult981.unwrap();
11554 aResponse = ClampResultCode(result);auto tryResult981 = (SerializeStructuredCloneFiles(this->mDatabase
, files, false)); if ((__builtin_expect(!!(tryResult981.isErr
()), 0))) { auto tryTempError = tryResult981.unwrapErr(); mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11555, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = ClampResultCode(result
); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return ; } serializedInfo->files
() = tryResult981.unwrap();
11555 })auto tryResult981 = (SerializeStructuredCloneFiles(this->mDatabase
, files, false)); if ((__builtin_expect(!!(tryResult981.isErr
()), 0))) { auto tryTempError = tryResult981.unwrapErr(); mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11555, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = ClampResultCode(result
); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return ; } serializedInfo->files
() = tryResult981.unwrap();
;
11556 }
11557 }
11558}
11559
11560template <IDBCursorType CursorType>
11561void Cursor<CursorType>::SendResponseInternal(
11562 CursorResponse& aResponse, const FilesArrayT<CursorType>& aFiles) {
11563 AssertIsOnBackgroundThread();
11564 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11564); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() != CursorResponse::T__None"
")"); do { *((volatile int*)__null) = 11564; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11565 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11566); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))"
")"); do { *((volatile int*)__null) = 11566; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11566 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11566); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))"
")"); do { *((volatile int*)__null) = 11566; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11567 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11569); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33"
")"); do { *((volatile int*)__null) = 11569; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11568 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11569); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33"
")"); do { *((volatile int*)__null) = 11569; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11569 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11569); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33"
")"); do { *((volatile int*)__null) = 11569; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11570 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11570); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { *((volatile int*)__null) = 11570; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11571 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11571); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCurrentlyRunningOp"
")"); do { *((volatile int*)__null) = 11571; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11572
11573 KeyValueBase::ProcessFiles(aResponse, aFiles);
11574
11575 // Work around the deleted function by casting to the base class.
11576 QM_WARNONLY_TRY(OkIf({auto tryResult982 = (OkIf( static_cast<PBackgroundIDBCursorParent
*>(this)->SendResponse(aResponse))); static_assert(std::
is_empty_v<typename decltype(tryResult982)::ok_type>); if
((__builtin_expect(!!(tryResult982.isErr()), 0))) { mozilla::
dom::quota::HandleError("OkIf( static_cast<PBackgroundIDBCursorParent*>(this)->SendResponse(aResponse))"
, tryResult982.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11577, mozilla::dom::quota::Severity::Warning); }}
11577 static_cast<PBackgroundIDBCursorParent*>(this)->SendResponse(aResponse))){auto tryResult982 = (OkIf( static_cast<PBackgroundIDBCursorParent
*>(this)->SendResponse(aResponse))); static_assert(std::
is_empty_v<typename decltype(tryResult982)::ok_type>); if
((__builtin_expect(!!(tryResult982.isErr()), 0))) { mozilla::
dom::quota::HandleError("OkIf( static_cast<PBackgroundIDBCursorParent*>(this)->SendResponse(aResponse))"
, tryResult982.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11577, mozilla::dom::quota::Severity::Warning); }}
;
11578
11579 mCurrentlyRunningOp = nullptr;
11580}
11581
11582template <IDBCursorType CursorType>
11583void Cursor<CursorType>::ActorDestroy(ActorDestroyReason aWhy) {
11584 AssertIsOnBackgroundThread();
11585
11586 if (mCurrentlyRunningOp) {
11587 mCurrentlyRunningOp->NoteActorDestroyed();
11588 }
11589
11590 if constexpr (IsValueCursor) {
11591 this->mBackgroundParent.destroy();
11592 }
11593 this->mObjectStoreMetadata.destroy();
11594 if constexpr (IsIndexCursor) {
11595 this->mIndexMetadata.destroy();
11596 }
11597}
11598
11599template <IDBCursorType CursorType>
11600mozilla::ipc::IPCResult Cursor<CursorType>::RecvDeleteMe() {
11601 AssertIsOnBackgroundThread();
11602 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { *((volatile int*)__null) = 11602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11603
11604 if (NS_WARN_IF(mCurrentlyRunningOp)NS_warn_if_impl(mCurrentlyRunningOp, "mCurrentlyRunningOp", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11604)
) {
11605 return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Attempt to delete a cursor with a non-null mCurrentlyRunningOp!"
))
11606 this,mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Attempt to delete a cursor with a non-null mCurrentlyRunningOp!"
))
11607 "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!"
))
;
11608 }
11609
11610 QM_WARNONLY_TRY(OkIf(PBackgroundIDBCursorParent::Send__delete__(this))){auto tryResult983 = (OkIf(PBackgroundIDBCursorParent::Send__delete__
(this))); static_assert(std::is_empty_v<typename decltype(
tryResult983)::ok_type>); if ((__builtin_expect(!!(tryResult983
.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBCursorParent::Send__delete__(this))"
, tryResult983.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11610, mozilla::dom::quota::Severity::Warning); }}
;
11611
11612 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11613}
11614
11615template <IDBCursorType CursorType>
11616mozilla::ipc::IPCResult Cursor<CursorType>::RecvContinue(
11617 const int64_t& aRequestId, const CursorRequestParams& aParams,
11618 const Key& aCurrentKey, const Key& aCurrentObjectStoreKey) {
11619 AssertIsOnBackgroundThread();
11620 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11620); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != CursorRequestParams::T__None"
")"); do { *((volatile int*)__null) = 11620; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11621 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11621); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { *((volatile int*)__null) = 11621; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11622 if constexpr (IsIndexCursor) {
11623 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11623); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mIndexMetadata"
")"); do { *((volatile int*)__null) = 11623; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11624 }
11625
11626 const bool trustParams =
11627#ifdef DEBUG1
11628 // Always verify parameters in DEBUG builds!
11629 false
11630#else
11631 this->mIsSameProcessActor
11632#endif
11633 ;
11634
11635 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11635); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aCurrentKey.IsUnset()"
")"); do { *((volatile int*)__null) = 11635; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11636
11637 QM_TRY_UNWRAP(auto tryResult985 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11646, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult985.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11646, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult985.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11653, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11638 auto position,auto tryResult985 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11646, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult985.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11646, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult985.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11653, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11639 ([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> {auto tryResult985 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11646, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult985.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11646, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult985.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11653, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11640 if constexpr (IsIndexCursor) {auto tryResult985 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11646, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult985.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11646, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult985.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11653, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11641 auto localeAwarePosition = Key{};auto tryResult985 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11646, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult985.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11646, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult985.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11653, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11642 if (this->IsLocaleAware()) {auto tryResult985 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11646, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult985.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11646, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult985.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11653, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11643 QM_TRY_UNWRAP(auto tryResult985 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11646, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult985.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11646, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult985.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11653, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11644 localeAwarePosition,auto tryResult985 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11646, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult985.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11646, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult985.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11653, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11645 aCurrentKey.ToLocaleAwareKey(this->mLocale),auto tryResult985 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11646, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult985.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11646, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult985.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11653, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11646 Err(IPC_FAIL(this, "aCurrentKey.ToLocaleAwareKey failed!")));auto tryResult985 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11646, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult985.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11646, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult985.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11653, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11647 }auto tryResult985 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11646, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult985.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11646, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult985.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11653, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11648 return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition,auto tryResult985 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11646, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult985.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11646, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult985.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11653, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11649 aCurrentObjectStoreKey};auto tryResult985 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11646, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult985.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11646, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult985.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11653, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11650 } else {auto tryResult985 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11646, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult985.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11646, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult985.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11653, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11651 return CursorPosition<CursorType>{aCurrentKey};auto tryResult985 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11646, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult985.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11646, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult985.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11653, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11652 }auto tryResult985 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11646, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult985.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11646, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult985.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11653, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11653 }()))auto tryResult985 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11646, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult985.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult984 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult984.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult984.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11646, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult984.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult985.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11653, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
;
11654
11655 if (!trustParams && !VerifyRequestParams(aParams, position)) {
11656 return IPC_FAIL(this, "VerifyRequestParams failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("VerifyRequestParams failed!"
))
;
11657 }
11658
11659 if (NS_WARN_IF(mCurrentlyRunningOp)NS_warn_if_impl(mCurrentlyRunningOp, "mCurrentlyRunningOp", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11659)
) {
11660 return IPC_FAIL(this, "Cursor is CurrentlyRunningOp!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Cursor is CurrentlyRunningOp!"
))
;
11661 }
11662
11663 if (NS_WARN_IF(mTransaction->mCommitOrAbortReceived)NS_warn_if_impl(mTransaction->mCommitOrAbortReceived, "mTransaction->mCommitOrAbortReceived"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11663)
) {
11664 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11665 }
11666
11667 const RefPtr<ContinueOp> continueOp =
11668 new ContinueOp(this, aRequestId, aParams, std::move(position));
11669 if (NS_WARN_IF(!continueOp->Init(*mTransaction))NS_warn_if_impl(!continueOp->Init(*mTransaction), "!continueOp->Init(*mTransaction)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11669)
) {
11670 continueOp->Cleanup();
11671 return IPC_FAIL(this, "ContinueOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ContinueOp initialization failed!"
))
;
11672 }
11673
11674 continueOp->DispatchToConnectionPool();
11675 mCurrentlyRunningOp = continueOp;
11676
11677 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11678}
11679
11680/*******************************************************************************
11681 * DatabaseFileManager
11682 ******************************************************************************/
11683
11684DatabaseFileManager::MutexType DatabaseFileManager::sMutex;
11685
11686DatabaseFileManager::DatabaseFileManager(
11687 PersistenceType aPersistenceType,
11688 const quota::OriginMetadata& aOriginMetadata,
11689 const nsAString& aDatabaseName, const nsCString& aDatabaseID,
11690 const nsAString& aDatabaseFilePath, bool aEnforcingQuota,
11691 bool aIsInPrivateBrowsingMode)
11692 : mPersistenceType(aPersistenceType),
11693 mOriginMetadata(aOriginMetadata),
11694 mDatabaseName(aDatabaseName),
11695 mDatabaseID(aDatabaseID),
11696 mDatabaseFilePath(aDatabaseFilePath),
11697 mCipherKeyManager(
11698 aIsInPrivateBrowsingMode
11699 ? new IndexedDBCipherKeyManager("IndexedDBCipherKeyManager")
11700 : nullptr),
11701 mDatabaseVersion(0),
11702 mEnforcingQuota(aEnforcingQuota),
11703 mIsInPrivateBrowsingMode(aIsInPrivateBrowsingMode) {}
11704
11705uint64_t DatabaseFileManager::DatabaseVersion() const {
11706 AssertIsOnIOThread();
11707
11708 return mDatabaseVersion;
11709}
11710
11711void DatabaseFileManager::UpdateDatabaseVersion(uint64_t aDatabaseVersion) {
11712 AssertIsOnIOThread();
11713
11714 mDatabaseVersion = aDatabaseVersion;
11715}
11716
11717nsresult DatabaseFileManager::Init(nsIFile* aDirectory,
11718 const uint64_t aDatabaseVersion,
11719 mozIStorageConnection& aConnection) {
11720 AssertIsOnIOThread();
11721 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11721); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { *((volatile int*)__null) = 11721; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11722
11723 {
11724 QM_TRY_INSPECT(const bool& existsAsDirectory,auto tryResult986 = (ExistsAsDirectory(*aDirectory)); if ((__builtin_expect
(!!(tryResult986.isErr()), 0))) { mozilla::dom::quota::HandleError
("ExistsAsDirectory(*aDirectory)", tryResult986.inspectErr(),
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11725, mozilla::dom::quota::Severity::Error); return tryResult986
.propagateErr(); } const bool& existsAsDirectory = tryResult986
.inspect();
11725 ExistsAsDirectory(*aDirectory))auto tryResult986 = (ExistsAsDirectory(*aDirectory)); if ((__builtin_expect
(!!(tryResult986.isErr()), 0))) { mozilla::dom::quota::HandleError
("ExistsAsDirectory(*aDirectory)", tryResult986.inspectErr(),
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11725, mozilla::dom::quota::Severity::Error); return tryResult986
.propagateErr(); } const bool& existsAsDirectory = tryResult986
.inspect();
;
11726
11727 if (!existsAsDirectory) {
11728 QM_TRY(MOZ_TO_RESULT(aDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))){auto tryResult987 = (ToResult(aDirectory->Create(nsIFile::
DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename
decltype(tryResult987)::ok_type>); if ((__builtin_expect(
!!(tryResult987.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryResult987.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11728, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); }}
;
11729 }
11730
11731 QM_TRY_UNWRAP(auto path, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult988 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(aDirectory)>::GetPath), (aDirectory))); if ((__builtin_expect
(!!(tryResult988.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aDirectory)>::GetPath), (aDirectory))"
, tryResult988.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11732, mozilla::dom::quota::Severity::Error); return tryResult988
.propagateErr(); } auto path = tryResult988.unwrap();
11732 nsString, aDirectory, GetPath))auto tryResult988 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(aDirectory)>::GetPath), (aDirectory))); if ((__builtin_expect
(!!(tryResult988.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aDirectory)>::GetPath), (aDirectory))"
, tryResult988.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11732, mozilla::dom::quota::Severity::Error); return tryResult988
.propagateErr(); } auto path = tryResult988.unwrap();
;
11733
11734 mDirectoryPath.init(std::move(path));
11735 }
11736
11737 QM_TRY_INSPECT(const auto& journalDirectory,auto tryResult989 = (CloneFileAndAppend(*aDirectory, kJournalDirectoryName
)); if ((__builtin_expect(!!(tryResult989.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, kJournalDirectoryName)"
, tryResult989.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11738, mozilla::dom::quota::Severity::Error); return tryResult989
.propagateErr(); } const auto& journalDirectory = tryResult989
.inspect();
11738 CloneFileAndAppend(*aDirectory, kJournalDirectoryName))auto tryResult989 = (CloneFileAndAppend(*aDirectory, kJournalDirectoryName
)); if ((__builtin_expect(!!(tryResult989.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, kJournalDirectoryName)"
, tryResult989.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11738, mozilla::dom::quota::Severity::Error); return tryResult989
.propagateErr(); } const auto& journalDirectory = tryResult989
.inspect();
;
11739
11740 // We don't care if it doesn't exist at all, but if it does exist, make sure
11741 // it's a directory.
11742 QM_TRY_INSPECT(const bool& existsAsDirectory,auto tryResult990 = (ExistsAsDirectory(*journalDirectory)); if
((__builtin_expect(!!(tryResult990.isErr()), 0))) { mozilla::
dom::quota::HandleError("ExistsAsDirectory(*journalDirectory)"
, tryResult990.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11743, mozilla::dom::quota::Severity::Error); return tryResult990
.propagateErr(); } const bool& existsAsDirectory = tryResult990
.inspect();
11743 ExistsAsDirectory(*journalDirectory))auto tryResult990 = (ExistsAsDirectory(*journalDirectory)); if
((__builtin_expect(!!(tryResult990.isErr()), 0))) { mozilla::
dom::quota::HandleError("ExistsAsDirectory(*journalDirectory)"
, tryResult990.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11743, mozilla::dom::quota::Severity::Error); return tryResult990
.propagateErr(); } const bool& existsAsDirectory = tryResult990
.inspect();
;
11744 Unused << existsAsDirectory;
11745
11746 {
11747 QM_TRY_UNWRAP(auto path, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult991 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(journalDirectory)>::GetPath), (journalDirectory))); if ((
__builtin_expect(!!(tryResult991.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory))"
, tryResult991.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11748, mozilla::dom::quota::Severity::Error); return tryResult991
.propagateErr(); } auto path = tryResult991.unwrap();
11748 nsString, journalDirectory, GetPath))auto tryResult991 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(journalDirectory)>::GetPath), (journalDirectory))); if ((
__builtin_expect(!!(tryResult991.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory))"
, tryResult991.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11748, mozilla::dom::quota::Severity::Error); return tryResult991
.propagateErr(); } auto path = tryResult991.unwrap();
;
11749
11750 mJournalDirectoryPath.init(std::move(path));
11751 }
11752
11753 mDatabaseVersion = aDatabaseVersion;
11754
11755 QM_TRY_INSPECT(const auto& stmt,auto tryResult992 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, refcount FROM file"_ns)); if ((
__builtin_expect(!!(tryResult992.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)"
, tryResult992.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11758, mozilla::dom::quota::Severity::Error); return tryResult992
.propagateErr(); } const auto& stmt = tryResult992.inspect
();
11756 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult992 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, refcount FROM file"_ns)); if ((
__builtin_expect(!!(tryResult992.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)"
, tryResult992.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11758, mozilla::dom::quota::Severity::Error); return tryResult992
.propagateErr(); } const auto& stmt = tryResult992.inspect
();
11757 nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult992 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, refcount FROM file"_ns)); if ((
__builtin_expect(!!(tryResult992.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)"
, tryResult992.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11758, mozilla::dom::quota::Severity::Error); return tryResult992
.propagateErr(); } const auto& stmt = tryResult992.inspect
();
11758 CreateStatement, "SELECT id, refcount FROM file"_ns))auto tryResult992 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, refcount FROM file"_ns)); if ((
__builtin_expect(!!(tryResult992.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)"
, tryResult992.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11758, mozilla::dom::quota::Severity::Error); return tryResult992
.propagateErr(); } const auto& stmt = tryResult992.inspect
();
;
11759
11760 QM_TRY({auto tryResult995 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult993
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult993.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11763, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); } const int64_t& id = tryResult993.inspect
();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult994.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11765, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const int32_t& dbRefCnt = tryResult994
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11770); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11770; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ *((volatile int*)__null) = 11772; __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult995
)::ok_type>); if ((__builtin_expect(!!(tryResult995.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult993 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult993.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11763, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); } const int64_t& id = tryResult993.inspect();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult994.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11765, mozilla::dom::quota::Severity::Error); return tryResult994.propagateErr(); } const int32_t& dbRefCnt = tryResult994.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11770); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11770; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11772); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { *((volatile int*)__null) = 11772; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11775, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11761 CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult995 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult993
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult993.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11763, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); } const int64_t& id = tryResult993.inspect
();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult994.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11765, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const int32_t& dbRefCnt = tryResult994
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11770); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11770; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ *((volatile int*)__null) = 11772; __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult995
)::ok_type>); if ((__builtin_expect(!!(tryResult995.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult993 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult993.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11763, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); } const int64_t& id = tryResult993.inspect();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult994.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11765, mozilla::dom::quota::Severity::Error); return tryResult994.propagateErr(); } const int32_t& dbRefCnt = tryResult994.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11770); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11770; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11772); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { *((volatile int*)__null) = 11772; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11775, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11762 QM_TRY_INSPECT(const int64_t& id,{auto tryResult995 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult993
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult993.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11763, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); } const int64_t& id = tryResult993.inspect
();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult994.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11765, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const int32_t& dbRefCnt = tryResult994
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11770); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11770; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ *((volatile int*)__null) = 11772; __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult995
)::ok_type>); if ((__builtin_expect(!!(tryResult995.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult993 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult993.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11763, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); } const int64_t& id = tryResult993.inspect();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult994.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11765, mozilla::dom::quota::Severity::Error); return tryResult994.propagateErr(); } const int32_t& dbRefCnt = tryResult994.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11770); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11770; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11772); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { *((volatile int*)__null) = 11772; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11775, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11763 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 0));{auto tryResult995 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult993
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult993.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11763, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); } const int64_t& id = tryResult993.inspect
();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult994.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11765, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const int32_t& dbRefCnt = tryResult994
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11770); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11770; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ *((volatile int*)__null) = 11772; __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult995
)::ok_type>); if ((__builtin_expect(!!(tryResult995.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult993 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult993.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11763, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); } const int64_t& id = tryResult993.inspect();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult994.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11765, mozilla::dom::quota::Severity::Error); return tryResult994.propagateErr(); } const int32_t& dbRefCnt = tryResult994.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11770); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11770; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11772); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { *((volatile int*)__null) = 11772; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11775, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11764 QM_TRY_INSPECT(const int32_t& dbRefCnt,{auto tryResult995 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult993
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult993.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11763, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); } const int64_t& id = tryResult993.inspect
();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult994.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11765, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const int32_t& dbRefCnt = tryResult994
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11770); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11770; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ *((volatile int*)__null) = 11772; __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult995
)::ok_type>); if ((__builtin_expect(!!(tryResult995.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult993 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult993.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11763, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); } const int64_t& id = tryResult993.inspect();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult994.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11765, mozilla::dom::quota::Severity::Error); return tryResult994.propagateErr(); } const int32_t& dbRefCnt = tryResult994.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11770); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11770; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11772); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { *((volatile int*)__null) = 11772; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11775, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11765 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt32, 1));{auto tryResult995 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult993
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult993.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11763, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); } const int64_t& id = tryResult993.inspect
();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult994.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11765, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const int32_t& dbRefCnt = tryResult994
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11770); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11770; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ *((volatile int*)__null) = 11772; __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult995
)::ok_type>); if ((__builtin_expect(!!(tryResult995.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult993 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult993.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11763, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); } const int64_t& id = tryResult993.inspect();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult994.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11765, mozilla::dom::quota::Severity::Error); return tryResult994.propagateErr(); } const int32_t& dbRefCnt = tryResult994.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11770); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11770; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11772); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { *((volatile int*)__null) = 11772; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11775, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11766
11767 // We put a raw pointer into the hash table, so the memory refcount will{auto tryResult995 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult993
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult993.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11763, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); } const int64_t& id = tryResult993.inspect
();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult994.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11765, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const int32_t& dbRefCnt = tryResult994
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11770); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11770; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ *((volatile int*)__null) = 11772; __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult995
)::ok_type>); if ((__builtin_expect(!!(tryResult995.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult993 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult993.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11763, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); } const int64_t& id = tryResult993.inspect();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult994.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11765, mozilla::dom::quota::Severity::Error); return tryResult994.propagateErr(); } const int32_t& dbRefCnt = tryResult994.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11770); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11770; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11772); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { *((volatile int*)__null) = 11772; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11775, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11768 // be 0, but the dbRefCnt is non-zero, which will keep the{auto tryResult995 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult993
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult993.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11763, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); } const int64_t& id = tryResult993.inspect
();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult994.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11765, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const int32_t& dbRefCnt = tryResult994
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11770); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11770; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ *((volatile int*)__null) = 11772; __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult995
)::ok_type>); if ((__builtin_expect(!!(tryResult995.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult993 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult993.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11763, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); } const int64_t& id = tryResult993.inspect();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult994.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11765, mozilla::dom::quota::Severity::Error); return tryResult994.propagateErr(); } const int32_t& dbRefCnt = tryResult994.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11770); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11770; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11772); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { *((volatile int*)__null) = 11772; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11775, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11769 // DatabaseFileInfo object alive.{auto tryResult995 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult993
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult993.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11763, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); } const int64_t& id = tryResult993.inspect
();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult994.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11765, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const int32_t& dbRefCnt = tryResult994
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11770); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11770; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ *((volatile int*)__null) = 11772; __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult995
)::ok_type>); if ((__builtin_expect(!!(tryResult995.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult993 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult993.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11763, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); } const int64_t& id = tryResult993.inspect();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult994.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11765, mozilla::dom::quota::Severity::Error); return tryResult994.propagateErr(); } const int32_t& dbRefCnt = tryResult994.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11770); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11770; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11772); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { *((volatile int*)__null) = 11772; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11775, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11770 MOZ_ASSERT(dbRefCnt > 0);{auto tryResult995 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult993
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult993.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11763, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); } const int64_t& id = tryResult993.inspect
();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult994.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11765, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const int32_t& dbRefCnt = tryResult994
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11770); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11770; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ *((volatile int*)__null) = 11772; __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult995
)::ok_type>); if ((__builtin_expect(!!(tryResult995.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult993 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult993.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11763, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); } const int64_t& id = tryResult993.inspect();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult994.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11765, mozilla::dom::quota::Severity::Error); return tryResult994.propagateErr(); } const int32_t& dbRefCnt = tryResult994.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11770); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11770; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11772); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { *((volatile int*)__null) = 11772; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11775, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11771 DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt));{auto tryResult995 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult993
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult993.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11763, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); } const int64_t& id = tryResult993.inspect
();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult994.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11765, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const int32_t& dbRefCnt = tryResult994
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11770); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11770; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ *((volatile int*)__null) = 11772; __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult995
)::ok_type>); if ((__builtin_expect(!!(tryResult995.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult993 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult993.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11763, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); } const int64_t& id = tryResult993.inspect();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult994.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11765, mozilla::dom::quota::Severity::Error); return tryResult994.propagateErr(); } const int32_t& dbRefCnt = tryResult994.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11770); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11770; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11772); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { *((volatile int*)__null) = 11772; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11775, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11772 MOZ_ASSERT(ok);{auto tryResult995 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult993
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult993.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11763, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); } const int64_t& id = tryResult993.inspect
();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult994.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11765, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const int32_t& dbRefCnt = tryResult994
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11770); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11770; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ *((volatile int*)__null) = 11772; __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult995
)::ok_type>); if ((__builtin_expect(!!(tryResult995.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult993 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult993.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11763, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); } const int64_t& id = tryResult993.inspect();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult994.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11765, mozilla::dom::quota::Severity::Error); return tryResult994.propagateErr(); } const int32_t& dbRefCnt = tryResult994.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11770); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11770; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11772); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { *((volatile int*)__null) = 11772; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11775, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11773
11774 return Ok{};{auto tryResult995 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult993
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult993.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11763, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); } const int64_t& id = tryResult993.inspect
();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult994.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11765, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const int32_t& dbRefCnt = tryResult994
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11770); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11770; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ *((volatile int*)__null) = 11772; __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult995
)::ok_type>); if ((__builtin_expect(!!(tryResult995.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult993 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult993.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11763, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); } const int64_t& id = tryResult993.inspect();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult994.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11765, mozilla::dom::quota::Severity::Error); return tryResult994.propagateErr(); } const int32_t& dbRefCnt = tryResult994.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11770); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11770; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11772); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { *((volatile int*)__null) = 11772; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11775, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11775 })){auto tryResult995 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult993
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult993.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11763, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); } const int64_t& id = tryResult993.inspect
();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult994.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11765, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const int32_t& dbRefCnt = tryResult994
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11770); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11770; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ *((volatile int*)__null) = 11772; __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult995
)::ok_type>); if ((__builtin_expect(!!(tryResult995.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult993 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult993.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11763, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); } const int64_t& id = tryResult993.inspect();; auto tryResult994 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult994.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11765, mozilla::dom::quota::Severity::Error); return tryResult994.propagateErr(); } const int32_t& dbRefCnt = tryResult994.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11770); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11770; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11772); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { *((volatile int*)__null) = 11772; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11775, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
;
11776
11777 mInitialized.Flip();
11778
11779 return NS_OK;
11780}
11781
11782nsCOMPtr<nsIFile> DatabaseFileManager::GetDirectory() {
11783 if (!this->AssertValid()) {
11784 return nullptr;
11785 }
11786
11787 return GetFileForPath(*mDirectoryPath);
11788}
11789
11790nsCOMPtr<nsIFile> DatabaseFileManager::GetCheckedDirectory() {
11791 auto directory = GetDirectory();
11792 if (NS_WARN_IF(!directory)NS_warn_if_impl(!directory, "!directory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11792)
) {
11793 return nullptr;
11794 }
11795
11796 DebugOnly<bool> exists;
11797 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11797); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->Exists(&exists))), 1)))"
")"); do { *((volatile int*)__null) = 11797; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11798 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")"
); do { *((volatile int*)__null) = 11798; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11799
11800 DebugOnly<bool> isDirectory;
11801 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11801); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 11801; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11802 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11802); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 11802; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11803
11804 return directory;
11805}
11806
11807nsCOMPtr<nsIFile> DatabaseFileManager::GetJournalDirectory() {
11808 if (!this->AssertValid()) {
11809 return nullptr;
11810 }
11811
11812 return GetFileForPath(*mJournalDirectoryPath);
11813}
11814
11815nsCOMPtr<nsIFile> DatabaseFileManager::EnsureJournalDirectory() {
11816 // This can happen on the IO or on a transaction thread.
11817 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11817); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 11817; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11818
11819 auto journalDirectory = GetFileForPath(*mJournalDirectoryPath);
11820 QM_TRY(OkIf(journalDirectory), nullptr){auto tryResult996 = (OkIf(journalDirectory)); static_assert(
std::is_empty_v<typename decltype(tryResult996)::ok_type>
); if ((__builtin_expect(!!(tryResult996.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult996.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(journalDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11820, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)"
, tryTempError, nullptr); }}
;
11821
11822 QM_TRY_INSPECT(const bool& exists,auto tryResult997 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult997.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult997
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11824, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)"
, tryTempError, nullptr); } const bool& exists = tryResult997
.inspect();
11823 MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, Exists),auto tryResult997 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult997.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult997
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11824, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)"
, tryTempError, nullptr); } const bool& exists = tryResult997
.inspect();
11824 nullptr)auto tryResult997 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult997.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult997
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11824, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)"
, tryTempError, nullptr); } const bool& exists = tryResult997
.inspect();
;
11825
11826 if (exists) {
11827 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult998 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult998.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult998
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11829, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)"
, tryTempError, nullptr); } const bool& isDirectory = tryResult998
.inspect();
11828 MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, IsDirectory),auto tryResult998 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult998.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult998
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11829, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)"
, tryTempError, nullptr); } const bool& isDirectory = tryResult998
.inspect();
11829 nullptr)auto tryResult998 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult998.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult998
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11829, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)"
, tryTempError, nullptr); } const bool& isDirectory = tryResult998
.inspect();
;
11830
11831 QM_TRY(OkIf(isDirectory), nullptr){auto tryResult999 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult999)::ok_type>); if
((__builtin_expect(!!(tryResult999.isErr()), 0))) { auto tryTempError
__attribute__((__unused__)) = tryResult999.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(isDirectory)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11831, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, nullptr); }}
;
11832 } else {
11833 QM_TRY({auto tryResult1000 = (ToResult(journalDirectory->Create(nsIFile
::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename
decltype(tryResult1000)::ok_type>); if ((__builtin_expect
(!!(tryResult1000.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1000.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11835, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryTempError, nullptr); }}
11834 MOZ_TO_RESULT(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755)),{auto tryResult1000 = (ToResult(journalDirectory->Create(nsIFile
::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename
decltype(tryResult1000)::ok_type>); if ((__builtin_expect
(!!(tryResult1000.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1000.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11835, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryTempError, nullptr); }}
11835 nullptr){auto tryResult1000 = (ToResult(journalDirectory->Create(nsIFile
::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename
decltype(tryResult1000)::ok_type>); if ((__builtin_expect
(!!(tryResult1000.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1000.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11835, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryTempError, nullptr); }}
;
11836 }
11837
11838 return journalDirectory;
11839}
11840
11841// static
11842nsCOMPtr<nsIFile> DatabaseFileManager::GetFileForId(nsIFile* aDirectory,
11843 int64_t aId) {
11844 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11844); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { *((volatile int*)__null) = 11844; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11845 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11845); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aId > 0"
")"); do { *((volatile int*)__null) = 11845; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11846
11847 QM_TRY_RETURN(CloneFileAndAppend(*aDirectory, IntToString(aId)), nullptr){auto tryResult1001 = (CloneFileAndAppend(*aDirectory, IntToString
(aId))); if ((__builtin_expect(!!(tryResult1001.isErr()), 0))
) { auto tryTempError __attribute__((__unused__)) = tryResult1001
.unwrapErr(); mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, IntToString(aId))"
, tryResult1001.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11847, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "CloneFileAndAppend(*aDirectory, IntToString(aId))"
, tryTempError, nullptr); } return tryResult1001.unwrap();}
;
11848}
11849
11850// static
11851nsCOMPtr<nsIFile> DatabaseFileManager::GetCheckedFileForId(nsIFile* aDirectory,
11852 int64_t aId) {
11853 auto file = GetFileForId(aDirectory, aId);
11854 if (NS_WARN_IF(!file)NS_warn_if_impl(!file, "!file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11854)
) {
11855 return nullptr;
11856 }
11857
11858 DebugOnly<bool> exists;
11859 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11859); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->Exists(&exists))), 1)))"
")"); do { *((volatile int*)__null) = 11859; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11860 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11860); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")"
); do { *((volatile int*)__null) = 11860; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11861
11862 DebugOnly<bool> isFile;
11863 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11863); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->IsFile(&isFile))), 1)))"
")"); do { *((volatile int*)__null) = 11863; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11864 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11864); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isFile" ")"
); do { *((volatile int*)__null) = 11864; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11865
11866 return file;
11867}
11868
11869// static
11870nsresult DatabaseFileManager::InitDirectory(nsIFile& aDirectory,
11871 nsIFile& aDatabaseFile,
11872 const nsACString& aOrigin,
11873 uint32_t aTelemetryId) {
11874 AssertIsOnIOThread();
11875
11876 {
11877 QM_TRY_INSPECT(const bool& exists,auto tryResult1002 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult1002.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists)"
, tryResult1002.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11878, mozilla::dom::quota::Severity::Error); return tryResult1002
.propagateErr(); } const bool& exists = tryResult1002.inspect
();
11878 MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, Exists))auto tryResult1002 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult1002.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists)"
, tryResult1002.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11878, mozilla::dom::quota::Severity::Error); return tryResult1002
.propagateErr(); } const bool& exists = tryResult1002.inspect
();
;
11879
11880 if (!exists) {
11881 return NS_OK;
11882 }
11883
11884 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1003 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1003.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory)"
, tryResult1003.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11885, mozilla::dom::quota::Severity::Error); return tryResult1003
.propagateErr(); } const bool& isDirectory = tryResult1003
.inspect();
11885 MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, IsDirectory))auto tryResult1003 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1003.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory)"
, tryResult1003.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11885, mozilla::dom::quota::Severity::Error); return tryResult1003
.propagateErr(); } const bool& isDirectory = tryResult1003
.inspect();
;
11886 QM_TRY(OkIf(isDirectory), NS_ERROR_FAILURE){auto tryResult1004 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult1004)::ok_type>);
if ((__builtin_expect(!!(tryResult1004.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1004.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11886, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
11887 }
11888
11889 QM_TRY_INSPECT(const auto& journalDirectory,auto tryResult1005 = (CloneFileAndAppend(aDirectory, kJournalDirectoryName
)); if ((__builtin_expect(!!(tryResult1005.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(aDirectory, kJournalDirectoryName)"
, tryResult1005.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11890, mozilla::dom::quota::Severity::Error); return tryResult1005
.propagateErr(); } const auto& journalDirectory = tryResult1005
.inspect();
11890 CloneFileAndAppend(aDirectory, kJournalDirectoryName))auto tryResult1005 = (CloneFileAndAppend(aDirectory, kJournalDirectoryName
)); if ((__builtin_expect(!!(tryResult1005.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(aDirectory, kJournalDirectoryName)"
, tryResult1005.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11890, mozilla::dom::quota::Severity::Error); return tryResult1005
.propagateErr(); } const auto& journalDirectory = tryResult1005
.inspect();
;
11891
11892 QM_TRY_INSPECT(const bool& exists,auto tryResult1006 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult1006.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)"
, tryResult1006.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11893, mozilla::dom::quota::Severity::Error); return tryResult1006
.propagateErr(); } const bool& exists = tryResult1006.inspect
();
11893 MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, Exists))auto tryResult1006 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult1006.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)"
, tryResult1006.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11893, mozilla::dom::quota::Severity::Error); return tryResult1006
.propagateErr(); } const bool& exists = tryResult1006.inspect
();
;
11894
11895 if (exists) {
11896 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1007 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1007.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)"
, tryResult1007.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11897, mozilla::dom::quota::Severity::Error); return tryResult1007
.propagateErr(); } const bool& isDirectory = tryResult1007
.inspect();
11897 MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, IsDirectory))auto tryResult1007 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1007.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)"
, tryResult1007.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11897, mozilla::dom::quota::Severity::Error); return tryResult1007
.propagateErr(); } const bool& isDirectory = tryResult1007
.inspect();
;
11898 QM_TRY(OkIf(isDirectory), NS_ERROR_FAILURE){auto tryResult1008 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult1008)::ok_type>);
if ((__builtin_expect(!!(tryResult1008.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1008.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11898, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
11899
11900 bool hasJournals = false;
11901
11902 QM_TRY(CollectEachFile({auto tryResult1010 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1009.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11907, mozilla::dom::quota::Severity::Error); return tryResult1009
.propagateErr(); } const auto& leafName = tryResult1009.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11914); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1010)::ok_type>); if ((__builtin_expect
(!!(tryResult1010.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1009.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11907, mozilla::dom::quota::Severity::Error); return tryResult1009.propagateErr(); } const auto& leafName = tryResult1009.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11914); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11918, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11903 *journalDirectory,{auto tryResult1010 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1009.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11907, mozilla::dom::quota::Severity::Error); return tryResult1009
.propagateErr(); } const auto& leafName = tryResult1009.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11914); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1010)::ok_type>); if ((__builtin_expect
(!!(tryResult1010.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1009.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11907, mozilla::dom::quota::Severity::Error); return tryResult1009.propagateErr(); } const auto& leafName = tryResult1009.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11914); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11918, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11904 [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> {{auto tryResult1010 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1009.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11907, mozilla::dom::quota::Severity::Error); return tryResult1009
.propagateErr(); } const auto& leafName = tryResult1009.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11914); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1010)::ok_type>); if ((__builtin_expect
(!!(tryResult1010.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1009.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11907, mozilla::dom::quota::Severity::Error); return tryResult1009.propagateErr(); } const auto& leafName = tryResult1009.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11914); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11918, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11905 QM_TRY_INSPECT({auto tryResult1010 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1009.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11907, mozilla::dom::quota::Severity::Error); return tryResult1009
.propagateErr(); } const auto& leafName = tryResult1009.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11914); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1010)::ok_type>); if ((__builtin_expect
(!!(tryResult1010.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1009.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11907, mozilla::dom::quota::Severity::Error); return tryResult1009.propagateErr(); } const auto& leafName = tryResult1009.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11914); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11918, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11906 const auto& leafName,{auto tryResult1010 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1009.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11907, mozilla::dom::quota::Severity::Error); return tryResult1009
.propagateErr(); } const auto& leafName = tryResult1009.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11914); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1010)::ok_type>); if ((__builtin_expect
(!!(tryResult1010.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1009.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11907, mozilla::dom::quota::Severity::Error); return tryResult1009.propagateErr(); } const auto& leafName = tryResult1009.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11914); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11918, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11907 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, file, GetLeafName));{auto tryResult1010 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1009.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11907, mozilla::dom::quota::Severity::Error); return tryResult1009
.propagateErr(); } const auto& leafName = tryResult1009.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11914); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1010)::ok_type>); if ((__builtin_expect
(!!(tryResult1010.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1009.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11907, mozilla::dom::quota::Severity::Error); return tryResult1009.propagateErr(); } const auto& leafName = tryResult1009.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11914); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11918, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11908
11909 nsresult rv;{auto tryResult1010 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1009.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11907, mozilla::dom::quota::Severity::Error); return tryResult1009
.propagateErr(); } const auto& leafName = tryResult1009.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11914); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1010)::ok_type>); if ((__builtin_expect
(!!(tryResult1010.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1009.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11907, mozilla::dom::quota::Severity::Error); return tryResult1009.propagateErr(); } const auto& leafName = tryResult1009.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11914); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11918, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11910 leafName.ToInteger64(&rv);{auto tryResult1010 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1009.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11907, mozilla::dom::quota::Severity::Error); return tryResult1009
.propagateErr(); } const auto& leafName = tryResult1009.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11914); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1010)::ok_type>); if ((__builtin_expect
(!!(tryResult1010.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1009.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11907, mozilla::dom::quota::Severity::Error); return tryResult1009.propagateErr(); } const auto& leafName = tryResult1009.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11914); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11918, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11911 if (NS_SUCCEEDED(rv)) {{auto tryResult1010 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1009.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11907, mozilla::dom::quota::Severity::Error); return tryResult1009
.propagateErr(); } const auto& leafName = tryResult1009.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11914); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1010)::ok_type>); if ((__builtin_expect
(!!(tryResult1010.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1009.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11907, mozilla::dom::quota::Severity::Error); return tryResult1009.propagateErr(); } const auto& leafName = tryResult1009.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11914); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11918, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11912 hasJournals = true;{auto tryResult1010 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1009.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11907, mozilla::dom::quota::Severity::Error); return tryResult1009
.propagateErr(); } const auto& leafName = tryResult1009.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11914); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1010)::ok_type>); if ((__builtin_expect
(!!(tryResult1010.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1009.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11907, mozilla::dom::quota::Severity::Error); return tryResult1009.propagateErr(); } const auto& leafName = tryResult1009.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11914); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11918, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11913 } else {{auto tryResult1010 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1009.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11907, mozilla::dom::quota::Severity::Error); return tryResult1009
.propagateErr(); } const auto& leafName = tryResult1009.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11914); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1010)::ok_type>); if ((__builtin_expect
(!!(tryResult1010.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1009.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11907, mozilla::dom::quota::Severity::Error); return tryResult1009.propagateErr(); } const auto& leafName = tryResult1009.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11914); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11918, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11914 UNKNOWN_FILE_WARNING(leafName);{auto tryResult1010 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1009.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11907, mozilla::dom::quota::Severity::Error); return tryResult1009
.propagateErr(); } const auto& leafName = tryResult1009.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11914); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1010)::ok_type>); if ((__builtin_expect
(!!(tryResult1010.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1009.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11907, mozilla::dom::quota::Severity::Error); return tryResult1009.propagateErr(); } const auto& leafName = tryResult1009.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11914); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11918, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11915 }{auto tryResult1010 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1009.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11907, mozilla::dom::quota::Severity::Error); return tryResult1009
.propagateErr(); } const auto& leafName = tryResult1009.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11914); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1010)::ok_type>); if ((__builtin_expect
(!!(tryResult1010.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1009.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11907, mozilla::dom::quota::Severity::Error); return tryResult1009.propagateErr(); } const auto& leafName = tryResult1009.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11914); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11918, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11916
11917 return Ok{};{auto tryResult1010 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1009.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11907, mozilla::dom::quota::Severity::Error); return tryResult1009
.propagateErr(); } const auto& leafName = tryResult1009.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11914); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1010)::ok_type>); if ((__builtin_expect
(!!(tryResult1010.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1009.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11907, mozilla::dom::quota::Severity::Error); return tryResult1009.propagateErr(); } const auto& leafName = tryResult1009.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11914); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11918, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11918 })){auto tryResult1010 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1009.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11907, mozilla::dom::quota::Severity::Error); return tryResult1009
.propagateErr(); } const auto& leafName = tryResult1009.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11914); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1010)::ok_type>); if ((__builtin_expect
(!!(tryResult1010.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1009 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1009.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11907, mozilla::dom::quota::Severity::Error); return tryResult1009.propagateErr(); } const auto& leafName = tryResult1009.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11914); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11918, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
;
11919
11920 if (hasJournals) {
11921 QM_TRY_UNWRAP(const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1011 = (CreateStorageConnection( aDatabaseFile,
aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing
{})); if ((__builtin_expect(!!(tryResult1011.isErr()), 0))) {
mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})"
, tryResult1011.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11924, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1011.unwrap();
11922 CreateStorageConnection(auto tryResult1011 = (CreateStorageConnection( aDatabaseFile,
aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing
{})); if ((__builtin_expect(!!(tryResult1011.isErr()), 0))) {
mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})"
, tryResult1011.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11924, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1011.unwrap();
11923 aDatabaseFile, aDirectory, VoidString(), aOrigin,auto tryResult1011 = (CreateStorageConnection( aDatabaseFile,
aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing
{})); if ((__builtin_expect(!!(tryResult1011.isErr()), 0))) {
mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})"
, tryResult1011.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11924, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1011.unwrap();
11924 /* aDirectoryLockId */ -1, aTelemetryId, Nothing{}))auto tryResult1011 = (CreateStorageConnection( aDatabaseFile,
aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing
{})); if ((__builtin_expect(!!(tryResult1011.isErr()), 0))) {
mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})"
, tryResult1011.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11924, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1011.unwrap();
;
11925
11926 mozStorageTransaction transaction(connection.get(), false);
11927
11928 QM_TRY(MOZ_TO_RESULT(transaction.Start())){auto tryResult1012 = (ToResult(transaction.Start())); static_assert
(std::is_empty_v<typename decltype(tryResult1012)::ok_type
>); if ((__builtin_expect(!!(tryResult1012.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(transaction.Start())"
, tryResult1012.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11928, mozilla::dom::quota::Severity::Error); return tryResult1012
.propagateErr(); }}
11929
11930 QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL({auto tryResult1013 = (ToResult(connection->ExecuteSimpleSQL
( "CREATE VIRTUAL TABLE fs USING filesystem;"_ns))); static_assert
(std::is_empty_v<typename decltype(tryResult1013)::ok_type
>); if ((__builtin_expect(!!(tryResult1013.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE fs USING filesystem;\"_ns))"
, tryResult1013.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11931, mozilla::dom::quota::Severity::Error); return tryResult1013
.propagateErr(); }}
11931 "CREATE VIRTUAL TABLE fs USING filesystem;"_ns))){auto tryResult1013 = (ToResult(connection->ExecuteSimpleSQL
( "CREATE VIRTUAL TABLE fs USING filesystem;"_ns))); static_assert
(std::is_empty_v<typename decltype(tryResult1013)::ok_type
>); if ((__builtin_expect(!!(tryResult1013.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE fs USING filesystem;\"_ns))"
, tryResult1013.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11931, mozilla::dom::quota::Severity::Error); return tryResult1013
.propagateErr(); }}
;
11932
11933 // The parameter names are not used, parameters are bound by index only
11934 // locally in the same function.
11935 QM_TRY_INSPECT(auto tryResult1014 = (::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(!!(tryResult1014.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)"
, tryResult1014.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11939, mozilla::dom::quota::Severity::Error); return tryResult1014
.propagateErr(); } const auto& stmt = tryResult1014.inspect
();
11936 const auto& stmt,auto tryResult1014 = (::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(!!(tryResult1014.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)"
, tryResult1014.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11939, mozilla::dom::quota::Severity::Error); return tryResult1014
.propagateErr(); } const auto& stmt = tryResult1014.inspect
();
11937 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1014 = (::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(!!(tryResult1014.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)"
, tryResult1014.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11939, mozilla::dom::quota::Severity::Error); return tryResult1014
.propagateErr(); } const auto& stmt = tryResult1014.inspect
();
11938 nsCOMPtr<mozIStorageStatement>, *connection, CreateStatement,auto tryResult1014 = (::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(!!(tryResult1014.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)"
, tryResult1014.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11939, mozilla::dom::quota::Severity::Error); return tryResult1014
.propagateErr(); } const auto& stmt = tryResult1014.inspect
();
11939 "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns))auto tryResult1014 = (::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(!!(tryResult1014.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)"
, tryResult1014.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11939, mozilla::dom::quota::Severity::Error); return tryResult1014
.propagateErr(); } const auto& stmt = tryResult1014.inspect
();
;
11940
11941 QM_TRY_INSPECT(const auto& path,auto tryResult1015 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(journalDirectory)>::GetPath), (journalDirectory))); if ((
__builtin_expect(!!(tryResult1015.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory))"
, tryResult1015.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11943, mozilla::dom::quota::Severity::Error); return tryResult1015
.propagateErr(); } const auto& path = tryResult1015.inspect
();
11942 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1015 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(journalDirectory)>::GetPath), (journalDirectory))); if ((
__builtin_expect(!!(tryResult1015.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory))"
, tryResult1015.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11943, mozilla::dom::quota::Severity::Error); return tryResult1015
.propagateErr(); } const auto& path = tryResult1015.inspect
();
11943 nsString, journalDirectory, GetPath))auto tryResult1015 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(journalDirectory)>::GetPath), (journalDirectory))); if ((
__builtin_expect(!!(tryResult1015.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory))"
, tryResult1015.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11943, mozilla::dom::quota::Severity::Error); return tryResult1015
.propagateErr(); } const auto& path = tryResult1015.inspect
();
;
11944
11945 QM_TRY(MOZ_TO_RESULT(stmt->BindStringByIndex(0, path))){auto tryResult1016 = (ToResult(stmt->BindStringByIndex(0,
path))); static_assert(std::is_empty_v<typename decltype(
tryResult1016)::ok_type>); if ((__builtin_expect(!!(tryResult1016
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByIndex(0, path))"
, tryResult1016.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11945, mozilla::dom::quota::Severity::Error); return tryResult1016
.propagateErr(); }}
;
11946
11947 QM_TRY(CollectWhileHasResult({auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11948 *stmt,{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11949 [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11950 nsString name;{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11951 QM_TRY(MOZ_TO_RESULT(stmt.GetString(0, name)));{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11952
11953 nsresult rv;{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11954 name.ToInteger64(&rv);{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11955 if (NS_FAILED(rv)) {{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11956 return Ok{};{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11957 }{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11958
11959 int32_t flag = stmt.AsInt32(1);{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11960
11961 if (!flag) {{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11962 QM_TRY_INSPECT(const auto& file,{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11963 CloneFileAndAppend(aDirectory, name));{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11964
11965 if (NS_FAILED(file->Remove(false))) {{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11966 NS_WARNING("Failed to remove orphaned file!");{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11967 }{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11968 }{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11969
11970 QM_TRY_INSPECT(const auto& journalFile,{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11971 CloneFileAndAppend(*journalDirectory, name));{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11972
11973 if (NS_FAILED(journalFile->Remove(false))) {{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11974 NS_WARNING("Failed to remove journal file!");{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11975 }{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11976
11977 return Ok{};{auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11978 })){auto tryResult1020 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1017.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11951, mozilla::dom::quota::Severity::Error); return tryResult1017
.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 tryResult1018
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1018.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } const auto& file = tryResult1018.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1019.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11971, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); } const auto& journalFile = tryResult1019
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1020)::ok_type>); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1017 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1017.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11951, mozilla::dom::quota::Severity::Error); return tryResult1017.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 tryResult1018 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1018.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const auto& file = tryResult1018.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11966); } } auto tryResult1019 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1019.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11971, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const auto& journalFile = tryResult1019.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11974); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11978, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
;
11979
11980 QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL("DROP TABLE fs;"_ns))){auto tryResult1021 = (ToResult(connection->ExecuteSimpleSQL
("DROP TABLE fs;"_ns))); static_assert(std::is_empty_v<typename
decltype(tryResult1021)::ok_type>); if ((__builtin_expect
(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(connection->ExecuteSimpleSQL(\"DROP TABLE fs;\"_ns))"
, tryResult1021.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11980, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); }}
;
11981 QM_TRY(MOZ_TO_RESULT(transaction.Commit())){auto tryResult1022 = (ToResult(transaction.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1022)::ok_type
>); if ((__builtin_expect(!!(tryResult1022.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(transaction.Commit())"
, tryResult1022.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11981, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
;
11982 }
11983 }
11984
11985 return NS_OK;
11986}
11987
11988// static
11989Result<FileUsageType, nsresult> DatabaseFileManager::GetUsage(
11990 nsIFile* aDirectory) {
11991 AssertIsOnIOThread();
11992 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { *((volatile int*)__null) = 11992; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11993
11994 FileUsageType usage;
11995
11996 QM_TRY(TraverseFiles({auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11997 *aDirectory,{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11998 // KnownDirEntryOp{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11999 [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12000 if (isDirectory) {{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12001 return Ok{};{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12002 }{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12003
12004 // Usually we only use QM_OR_ELSE_LOG_VERBOSE(_IF) with Remove and{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12005 // NS_ERROR_FILE_NOT_FOUND check, but the file was found by a directory{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12006 // traversal and ToInteger on the name succeeded, so it should be our{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12007 // file and if the file disappears, the use of QM_OR_ELSE_WARN_IF is ok{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12008 // here.{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12009 QM_TRY_INSPECT(const auto& thisUsage,{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12010 QM_OR_ELSE_WARN_IF({auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12011 // Expression.{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12012 MOZ_TO_RESULT_INVOKE_MEMBER(file, GetFileSize){auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12013 .map([](const int64_t fileSize) {{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12014 return FileUsageType(Some(uint64_t(fileSize)));{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12015 }),{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12016 // Predicate.{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12017 ([](const nsresult rv) {{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12018 return rv == NS_ERROR_FILE_NOT_FOUND;{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12019 }),{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12020 // Fallback. If the file does no longer exist, treat{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12021 // it as 0-sized.{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12022 ErrToDefaultOk<FileUsageType>));{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12023
12024 usage += thisUsage;{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12025
12026 return Ok{};{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12027 },{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12028 // UnknownDirEntryOp{auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
12029 [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })){auto tryResult1024 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023
= (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1023.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); } const auto& thisUsage = tryResult1023.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1023 = (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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1023.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12022, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1023.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12022, mozilla::dom::quota::Severity::Error); return tryResult1023.propagateErr(); } const auto& thisUsage = tryResult1023.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1024.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
;
12030
12031 return usage;
12032}
12033
12034nsresult DatabaseFileManager::SyncDeleteFile(const int64_t aId) {
12035 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!ContainsFileInfo(aId)"
")"); do { *((volatile int*)__null) = 12035; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12036
12037 if (!this->AssertValid()) {
12038 return NS_ERROR_UNEXPECTED;
12039 }
12040
12041 const auto directory = GetDirectory();
12042 QM_TRY(OkIf(directory), NS_ERROR_FAILURE){auto tryResult1025 = (OkIf(directory)); static_assert(std::is_empty_v
<typename decltype(tryResult1025)::ok_type>); if ((__builtin_expect
(!!(tryResult1025.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1025.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(directory)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12042, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(directory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
12043
12044 const auto journalDirectory = GetJournalDirectory();
12045 QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult1026 = (OkIf(journalDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1026)::ok_type
>); if ((__builtin_expect(!!(tryResult1026.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1026
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(journalDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
12046
12047 const nsCOMPtr<nsIFile> file = GetFileForId(directory, aId);
12048 QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult1027 = (OkIf(file)); static_assert(std::is_empty_v
<typename decltype(tryResult1027)::ok_type>); if ((__builtin_expect
(!!(tryResult1027.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1027.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(file)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12048, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError
, NS_ERROR_FAILURE); }}
;
12049
12050 const nsCOMPtr<nsIFile> journalFile = GetFileForId(journalDirectory, aId);
12051 QM_TRY(OkIf(journalFile), NS_ERROR_FAILURE){auto tryResult1028 = (OkIf(journalFile)); static_assert(std::
is_empty_v<typename decltype(tryResult1028)::ok_type>);
if ((__builtin_expect(!!(tryResult1028.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1028.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(journalFile)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12051, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalFile)"
, tryTempError, NS_ERROR_FAILURE); }}
;
12052
12053 return SyncDeleteFile(*file, *journalFile);
12054}
12055
12056nsresult DatabaseFileManager::SyncDeleteFile(nsIFile& aFile,
12057 nsIFile& aJournalFile) const {
12058 QuotaManager* const quotaManager =
12059 EnforcingQuota() ? QuotaManager::Get() : nullptr;
12060 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12060); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 12060; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
12061
12062 QM_TRY(MOZ_TO_RESULT(DeleteFile(aFile, quotaManager, Type(), OriginMetadata(),{auto tryResult1029 = (ToResult(DeleteFile(aFile, quotaManager
, Type(), OriginMetadata(), Idempotency::No))); static_assert
(std::is_empty_v<typename decltype(tryResult1029)::ok_type
>); if ((__builtin_expect(!!(tryResult1029.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(DeleteFile(aFile, quotaManager, Type(), OriginMetadata(), Idempotency::No))"
, tryResult1029.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12063, mozilla::dom::quota::Severity::Error); return tryResult1029
.propagateErr(); }}
12063 Idempotency::No))){auto tryResult1029 = (ToResult(DeleteFile(aFile, quotaManager
, Type(), OriginMetadata(), Idempotency::No))); static_assert
(std::is_empty_v<typename decltype(tryResult1029)::ok_type
>); if ((__builtin_expect(!!(tryResult1029.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(DeleteFile(aFile, quotaManager, Type(), OriginMetadata(), Idempotency::No))"
, tryResult1029.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12063, mozilla::dom::quota::Severity::Error); return tryResult1029
.propagateErr(); }}
;
12064
12065 QM_TRY(MOZ_TO_RESULT(aJournalFile.Remove(false))){auto tryResult1030 = (ToResult(aJournalFile.Remove(false)));
static_assert(std::is_empty_v<typename decltype(tryResult1030
)::ok_type>); if ((__builtin_expect(!!(tryResult1030.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(aJournalFile.Remove(false))"
, tryResult1030.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1030
.propagateErr(); }}
;
12066
12067 return NS_OK;
12068}
12069
12070nsresult DatabaseFileManager::Invalidate() {
12071 if (mCipherKeyManager) {
12072 mCipherKeyManager->Invalidate();
12073 }
12074
12075 QM_TRY(MOZ_TO_RESULT(FileInfoManager::Invalidate())){auto tryResult1031 = (ToResult(FileInfoManager::Invalidate()
)); static_assert(std::is_empty_v<typename decltype(tryResult1031
)::ok_type>); if ((__builtin_expect(!!(tryResult1031.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(FileInfoManager::Invalidate())"
, tryResult1031.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12075, mozilla::dom::quota::Severity::Error); return tryResult1031
.propagateErr(); }}
;
12076
12077 return NS_OK;
12078}
12079
12080/*******************************************************************************
12081 * QuotaClient
12082 ******************************************************************************/
12083
12084QuotaClient* QuotaClient::sInstance = nullptr;
12085
12086QuotaClient::QuotaClient() : mDeleteTimer(NS_NewTimer()) {
12087 AssertIsOnBackgroundThread();
12088 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12088); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!sInstance"
") (" "We expect this to be a singleton!" ")"); do { *((volatile
int*)__null) = 12088; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false)
;
12089 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12089); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gTelemetryIdMutex"
")"); do { *((volatile int*)__null) = 12089; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12090
12091 // Always create this so that later access to gTelemetryIdHashtable can be
12092 // properly synchronized.
12093 gTelemetryIdMutex = new Mutex("IndexedDB gTelemetryIdMutex");
12094
12095 gStorageDatabaseNameMutex = new Mutex("IndexedDB gStorageDatabaseNameMutex");
12096
12097 sInstance = this;
12098}
12099
12100QuotaClient::~QuotaClient() {
12101 AssertIsOnBackgroundThread();
12102 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!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12102); AnnotateMozCrashReason("MOZ_ASSERT" "(" "sInstance == this"
") (" "We expect this to be a singleton!" ")"); do { *((volatile
int*)__null) = 12102; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false)
;
12103 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12103); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gTelemetryIdMutex"
")"); do { *((volatile int*)__null) = 12103; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12104 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12104); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMaintenanceThreadPool"
")"); do { *((volatile int*)__null) = 12104; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12105
12106 // No one else should be able to touch gTelemetryIdHashtable now that the
12107 // QuotaClient has gone away.
12108 gTelemetryIdHashtable = nullptr;
12109 gTelemetryIdMutex = nullptr;
12110
12111 gStorageDatabaseNameHashtable = nullptr;
12112 gStorageDatabaseNameMutex = nullptr;
12113
12114 sInstance = nullptr;
12115}
12116
12117nsresult QuotaClient::AsyncDeleteFile(DatabaseFileManager* aFileManager,
12118 int64_t aFileId) {
12119 AssertIsOnBackgroundThread();
12120
12121 if (IsShuttingDownOnBackgroundThread()) {
12122 // Whoops! We want to delete an IndexedDB disk-backed File but it's too late
12123 // to actually delete the file! This means we're going to "leak" the file
12124 // and leave it around when we shouldn't! (The file will stay around until
12125 // next storage initialization is triggered when the app is started again).
12126 // Fixing this is tracked by bug 1539377.
12127
12128 return NS_OK;
12129 }
12130
12131 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12131); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteTimer"
")"); do { *((volatile int*)__null) = 12131; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12132 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())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12132); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mDeleteTimer->Cancel())"
")"); do { *((volatile int*)__null) = 12132; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
12133
12134 QM_TRY(MOZ_TO_RESULT(mDeleteTimer->InitWithNamedFuncCallback({auto tryResult1032 = (ToResult(mDeleteTimer->InitWithNamedFuncCallback
( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT
, "dom::indexeddb::QuotaClient::AsyncDeleteFile"))); static_assert
(std::is_empty_v<typename decltype(tryResult1032)::ok_type
>); if ((__builtin_expect(!!(tryResult1032.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->InitWithNamedFuncCallback( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT, \"dom::indexeddb::QuotaClient::AsyncDeleteFile\"))"
, tryResult1032.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12136, mozilla::dom::quota::Severity::Error); return tryResult1032
.propagateErr(); }}
12135 DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT,{auto tryResult1032 = (ToResult(mDeleteTimer->InitWithNamedFuncCallback
( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT
, "dom::indexeddb::QuotaClient::AsyncDeleteFile"))); static_assert
(std::is_empty_v<typename decltype(tryResult1032)::ok_type
>); if ((__builtin_expect(!!(tryResult1032.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->InitWithNamedFuncCallback( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT, \"dom::indexeddb::QuotaClient::AsyncDeleteFile\"))"
, tryResult1032.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12136, mozilla::dom::quota::Severity::Error); return tryResult1032
.propagateErr(); }}
12136 "dom::indexeddb::QuotaClient::AsyncDeleteFile"))){auto tryResult1032 = (ToResult(mDeleteTimer->InitWithNamedFuncCallback
( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT
, "dom::indexeddb::QuotaClient::AsyncDeleteFile"))); static_assert
(std::is_empty_v<typename decltype(tryResult1032)::ok_type
>); if ((__builtin_expect(!!(tryResult1032.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->InitWithNamedFuncCallback( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT, \"dom::indexeddb::QuotaClient::AsyncDeleteFile\"))"
, tryResult1032.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12136, mozilla::dom::quota::Severity::Error); return tryResult1032
.propagateErr(); }}
;
12137
12138 mPendingDeleteInfos.GetOrInsertNew(aFileManager)->AppendElement(aFileId);
12139
12140 return NS_OK;
12141}
12142
12143nsresult QuotaClient::FlushPendingFileDeletions() {
12144 AssertIsOnBackgroundThread();
12145
12146 QM_TRY(MOZ_TO_RESULT(mDeleteTimer->Cancel())){auto tryResult1033 = (ToResult(mDeleteTimer->Cancel())); static_assert
(std::is_empty_v<typename decltype(tryResult1033)::ok_type
>); if ((__builtin_expect(!!(tryResult1033.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->Cancel())"
, tryResult1033.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12146, mozilla::dom::quota::Severity::Error); return tryResult1033
.propagateErr(); }}
;
12147
12148 DeleteTimerCallback(mDeleteTimer, this);
12149
12150 return NS_OK;
12151}
12152
12153RefPtr<BoolPromise> QuotaClient::DoMaintenance() {
12154 AssertIsOnBackgroundThread();
12155 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12155); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsShuttingDownOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 12155; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12156
12157 if (!mBackgroundThread) {
12158 mBackgroundThread = GetCurrentSerialEventTarget();
12159 }
12160
12161 auto maintenance = MakeRefPtr<Maintenance>(this);
12162
12163 mMaintenanceQueue.AppendElement(maintenance);
12164 ProcessMaintenanceQueue();
12165
12166 return maintenance->OnResults();
12167}
12168
12169nsThreadPool* QuotaClient::GetOrCreateThreadPool() {
12170 AssertIsOnBackgroundThread();
12171 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12171); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsShuttingDownOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 12171; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12172
12173 if (!mMaintenanceThreadPool) {
12174 RefPtr<nsThreadPool> threadPool = new nsThreadPool();
12175
12176 // PR_GetNumberOfProcessors() can return -1 on error, so make sure we
12177 // don't set some huge number here. We add 2 in case some threads block on
12178 // the disk I/O.
12179 const uint32_t threadCount =
12180 std::max(int32_t(PR_GetNumberOfProcessors()), int32_t(1)) + 2;
12181
12182 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12182); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetThreadLimit(threadCount))"
")"); do { *((volatile int*)__null) = 12182; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
12183
12184 // Don't keep more than one idle thread.
12185 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12185); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(1))"
")"); do { *((volatile int*)__null) = 12185; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
12186
12187 // Don't keep idle threads alive very long.
12188 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12189); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))"
")"); do { *((volatile int*)__null) = 12189; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
12189 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12189); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))"
")"); do { *((volatile int*)__null) = 12189; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
12190
12191 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12191); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB Mnt\"_ns))"
")"); do { *((volatile int*)__null) = 12191; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
12192
12193 mMaintenanceThreadPool = std::move(threadPool);
12194 }
12195
12196 return mMaintenanceThreadPool;
12197}
12198
12199mozilla::dom::quota::Client::Type QuotaClient::GetType() {
12200 return QuotaClient::IDB;
12201}
12202
12203nsresult QuotaClient::UpgradeStorageFrom1_0To2_0(nsIFile* aDirectory) {
12204 AssertIsOnIOThread();
12205 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { *((volatile int*)__null) = 12205; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12206
12207 QM_TRY_INSPECT((const auto& [subdirsToProcess, databaseFilenames]),auto tryResult1034 = (GetDatabaseFilenames(*aDirectory, AtomicBool
{false})); if ((__builtin_expect(!!(tryResult1034.isErr()), 0
))) { mozilla::dom::quota::HandleError("GetDatabaseFilenames(*aDirectory, AtomicBool{false})"
, tryResult1034.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12209, mozilla::dom::quota::Severity::Error); return tryResult1034
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1034.inspect();
12208 GetDatabaseFilenames(*aDirectory,auto tryResult1034 = (GetDatabaseFilenames(*aDirectory, AtomicBool
{false})); if ((__builtin_expect(!!(tryResult1034.isErr()), 0
))) { mozilla::dom::quota::HandleError("GetDatabaseFilenames(*aDirectory, AtomicBool{false})"
, tryResult1034.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12209, mozilla::dom::quota::Severity::Error); return tryResult1034
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1034.inspect();
12209 /* aCanceled */ AtomicBool{false}))auto tryResult1034 = (GetDatabaseFilenames(*aDirectory, AtomicBool
{false})); if ((__builtin_expect(!!(tryResult1034.isErr()), 0
))) { mozilla::dom::quota::HandleError("GetDatabaseFilenames(*aDirectory, AtomicBool{false})"
, tryResult1034.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12209, mozilla::dom::quota::Severity::Error); return tryResult1034
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1034.inspect();
;
12210
12211 QM_TRY(CollectEachInRange({auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12212 subdirsToProcess,{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12213 [&databaseFilenames = databaseFilenames,{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12214 aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> {{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12215 // If the directory has the correct suffix then it should exist in{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12216 // databaseFilenames.{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12217 nsDependentSubstring subdirNameBase;{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12218 if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix,{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12219 subdirNameBase)) {{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12220 QM_WARNONLY_TRY(OkIf(databaseFilenames.Contains(subdirNameBase)));{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12221 return Ok{};{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12222 }{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12223
12224 // The directory didn't have the right suffix but we might need to{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12225 // rename it. Check to see if we have a database that references this{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12226 // directory.{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12227 QM_TRY_INSPECT({auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12228 const auto& subdirNameWithSuffix,{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12229 ([&databaseFilenames,{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12230 &subdirName]() -> Result<nsAutoString, NotOk> {{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12231 if (databaseFilenames.Contains(subdirName)) {{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12232 return nsAutoString{subdirName +{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12233 kFileManagerDirectoryNameSuffix};{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12234 }{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12235
12236 // Windows doesn't allow a directory to end with a dot ('.'), so{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12237 // we have to check that possibility here too. We do this on all{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12238 // platforms, because the origin directory may have been created{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12239 // on Windows and now accessed on different OS.{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12240 const nsAutoString subdirNameWithDot = subdirName + u"."_ns;{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12241 QM_TRY(OkIf(databaseFilenames.Contains(subdirNameWithDot)),{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12242 Err(NotOk{}));{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12243
12244 return nsAutoString{subdirNameWithDot +{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12245 kFileManagerDirectoryNameSuffix};{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12246 }()),{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12247 Ok{});{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12248
12249 // We do have a database that uses this subdir so we should rename it{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12250 // now.{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12251 QM_TRY_INSPECT(const auto& subdir,{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12252 CloneFileAndAppend(*aDirectory, subdirName));{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12253
12254 DebugOnly<bool> isDirectory;{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12255 MOZ_ASSERT(NS_SUCCEEDED(subdir->IsDirectory(&isDirectory)));{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12256 MOZ_ASSERT(isDirectory);{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12257
12258 // Check if the subdir with suffix already exists before renaming.{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12259 QM_TRY_INSPECT(const auto& subdirWithSuffix,{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12260 CloneFileAndAppend(*aDirectory, subdirNameWithSuffix));{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12261
12262 QM_TRY_INSPECT(const bool& exists,{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12263 MOZ_TO_RESULT_INVOKE_MEMBER(subdirWithSuffix, Exists));{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12264
12265 if (exists) {{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12266 IDB_WARNING("Deleting old %s files directory!",{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12267 NS_ConvertUTF16toUTF8(subdirName).get());{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12268
12269 QM_TRY(MOZ_TO_RESULT(subdir->Remove(/* aRecursive */ true)));{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12270
12271 return Ok{};{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12272 }{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12273
12274 // Finally, rename the subdir.{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12275 QM_TRY(MOZ_TO_RESULT(subdir->RenameTo(nullptr, subdirNameWithSuffix)));{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12276
12277 return Ok{};{auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12278 })){auto tryResult1043 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1035
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1035.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1036
)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12242, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12247, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1038.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); return tryResult1038
.propagateErr(); } const auto& subdir = tryResult1038.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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12255; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1039.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12260, mozilla::dom::quota::Severity::Error); return tryResult1039
.propagateErr(); } const auto& subdirWithSuffix = tryResult1039
.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1040.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12263, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const bool& exists = tryResult1040.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12267); } while (0); {auto tryResult1041 = (ToResult(subdir
->Remove( true))); static_assert(std::is_empty_v<typename
decltype(tryResult1041)::ok_type>); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(subdir->Remove( true))", tryResult1041.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12269, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1042)::ok_type
>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1042.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12275, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect
(!!(tryResult1043.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 tryResult1035 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1035.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12220, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1037 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1037.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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1036 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1036)::ok_type>); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1036.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12242, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1037.inspect();; auto tryResult1038 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1038.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12252, mozilla::dom::quota::Severity::Error); return tryResult1038.propagateErr(); } const auto& subdir = tryResult1038.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)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12255); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12255; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12256); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12256; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1039 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1039.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12260, mozilla::dom::quota::Severity::Error); return tryResult1039.propagateErr(); } const auto& subdirWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1040.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12263, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const bool& exists = tryResult1040.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12267); } while (0); {auto tryResult1041 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1041.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12269, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); }}; return Ok{}; } {auto tryResult1042 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1042.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12275, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12278, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
;
12279
12280 return NS_OK;
12281}
12282
12283nsresult QuotaClient::UpgradeStorageFrom2_1To2_2(nsIFile* aDirectory) {
12284 AssertIsOnIOThread();
12285 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12285); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { *((volatile int*)__null) = 12285; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12286
12287 QM_TRY(CollectEachFile({auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12288 *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> {{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12289 QM_TRY_INSPECT(const auto& dirEntryKind, GetDirEntryKind(*file));{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12290
12291 switch (dirEntryKind) {{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12292 case nsIFileKind::ExistsAsDirectory:{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12293 break;{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12294
12295 case nsIFileKind::ExistsAsFile: {{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12296 QM_TRY_INSPECT({auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12297 const auto& leafName,{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12298 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, file, GetLeafName));{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12299
12300 // It's reported that files ending with ".tmp" somehow live in the{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12301 // indexedDB directories in Bug 1503883. Such files shouldn't exist{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12302 // in the indexedDB directory so remove them in this upgrade.{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12303 if (StringEndsWith(leafName, u".tmp"_ns)) {{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12304 IDB_WARNING("Deleting unknown temporary file!");{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12305
12306 QM_TRY(MOZ_TO_RESULT(file->Remove(false)));{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12307 }{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12308
12309 break;{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12310 }{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12311
12312 case nsIFileKind::DoesNotExist:{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12313 // Ignore files that got removed externally while iterating.{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12314 break;{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12315 }{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12316
12317 return Ok{};{auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12318 })){auto tryResult1047 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1044.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12289, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& dirEntryKind = tryResult1044
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1045.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12298, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const auto& leafName = tryResult1045.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12304); } while (0); {auto tryResult1046 = (ToResult(file->
Remove(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1046.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12306, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect
(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1044 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1044.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12289, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); } const auto& dirEntryKind = tryResult1044.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1045 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1045.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12298, mozilla::dom::quota::Severity::Error); return tryResult1045.propagateErr(); } const auto& leafName = tryResult1045.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12304); } while (0); {auto tryResult1046 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1046)::ok_type>); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1046.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12306, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1047.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12318, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
;
12319
12320 return NS_OK;
12321}
12322
12323Result<UsageInfo, nsresult> QuotaClient::InitOrigin(
12324 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
12325 const AtomicBool& aCanceled) {
12326 AssertIsOnIOThread();
12327
12328 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(this, GetUsageForOriginInternal,{auto tryResult1048 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal, aPersistenceType, aOriginMetadata,
aCanceled, true)); if ((__builtin_expect(!!(tryResult1048.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, true)"
, tryResult1048.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12331, mozilla::dom::quota::Severity::Error); } return tryResult1048
;}
12329 aPersistenceType, aOriginMetadata,{auto tryResult1048 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal, aPersistenceType, aOriginMetadata,
aCanceled, true)); if ((__builtin_expect(!!(tryResult1048.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, true)"
, tryResult1048.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12331, mozilla::dom::quota::Severity::Error); } return tryResult1048
;}
12330 aCanceled,{auto tryResult1048 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal, aPersistenceType, aOriginMetadata,
aCanceled, true)); if ((__builtin_expect(!!(tryResult1048.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, true)"
, tryResult1048.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12331, mozilla::dom::quota::Severity::Error); } return tryResult1048
;}
12331 /* aInitializing*/ true)){auto tryResult1048 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal, aPersistenceType, aOriginMetadata,
aCanceled, true)); if ((__builtin_expect(!!(tryResult1048.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, true)"
, tryResult1048.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12331, mozilla::dom::quota::Severity::Error); } return tryResult1048
;}
;
12332}
12333
12334nsresult QuotaClient::InitOriginWithoutTracking(
12335 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
12336 const AtomicBool& aCanceled) {
12337 AssertIsOnIOThread();
12338
12339 return GetUsageForOriginInternal(aPersistenceType, aOriginMetadata, aCanceled,
12340 /* aInitializing*/ true, nullptr);
12341}
12342
12343Result<UsageInfo, nsresult> QuotaClient::GetUsageForOrigin(
12344 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
12345 const AtomicBool& aCanceled) {
12346 AssertIsOnIOThread();
12347
12348 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(this, GetUsageForOriginInternal,{auto tryResult1049 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal, aPersistenceType, aOriginMetadata,
aCanceled, false)); if ((__builtin_expect(!!(tryResult1049.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, false)"
, tryResult1049.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12351, mozilla::dom::quota::Severity::Error); } return tryResult1049
;}
12349 aPersistenceType, aOriginMetadata,{auto tryResult1049 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal, aPersistenceType, aOriginMetadata,
aCanceled, false)); if ((__builtin_expect(!!(tryResult1049.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, false)"
, tryResult1049.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12351, mozilla::dom::quota::Severity::Error); } return tryResult1049
;}
12350 aCanceled,{auto tryResult1049 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal, aPersistenceType, aOriginMetadata,
aCanceled, false)); if ((__builtin_expect(!!(tryResult1049.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, false)"
, tryResult1049.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12351, mozilla::dom::quota::Severity::Error); } return tryResult1049
;}
12351 /* aInitializing*/ false)){auto tryResult1049 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal, aPersistenceType, aOriginMetadata,
aCanceled, false)); if ((__builtin_expect(!!(tryResult1049.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, false)"
, tryResult1049.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12351, mozilla::dom::quota::Severity::Error); } return tryResult1049
;}
;
12352}
12353
12354nsresult QuotaClient::GetUsageForOriginInternal(
12355 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
12356 const AtomicBool& aCanceled, const bool aInitializing,
12357 UsageInfo* aUsageInfo) {
12358 AssertIsOnIOThread();
12359 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12359); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOriginMetadata.mPersistenceType == aPersistenceType"
")"); do { *((volatile int*)__null) = 12359; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12360
12361 QM_TRY_INSPECT(const nsCOMPtr<nsIFile>& directory,auto tryResult1050 = (GetDirectory(aOriginMetadata)); if ((__builtin_expect
(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirectory(aOriginMetadata)", tryResult1050.inspectErr(),
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12362, mozilla::dom::quota::Severity::Error); return tryResult1050
.propagateErr(); } const nsCOMPtr<nsIFile>& directory
= tryResult1050.inspect();
12362 GetDirectory(aOriginMetadata))auto tryResult1050 = (GetDirectory(aOriginMetadata)); if ((__builtin_expect
(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirectory(aOriginMetadata)", tryResult1050.inspectErr(),
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12362, mozilla::dom::quota::Severity::Error); return tryResult1050
.propagateErr(); } const nsCOMPtr<nsIFile>& directory
= tryResult1050.inspect();
;
12363
12364 // We need to see if there are any files in the directory already. If they
12365 // are database files then we need to cleanup stored files (if it's needed)
12366 // and also get the usage.
12367
12368 // XXX Can we avoid unwrapping into non-const variables here? (Only
12369 // databaseFilenames is currently modified below)
12370 QM_TRY_UNWRAP((auto [subdirsToProcess, databaseFilenames, obsoleteFilenames]),auto tryResult1051 = (GetDatabaseFilenames<ObsoleteFilenamesHandling
::Include>( *directory, aCanceled)); if ((__builtin_expect
(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>( *directory, aCanceled)"
, tryResult1051.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1051
.propagateErr(); } auto [subdirsToProcess, databaseFilenames,
obsoleteFilenames] = tryResult1051.unwrap();
12371 GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>(auto tryResult1051 = (GetDatabaseFilenames<ObsoleteFilenamesHandling
::Include>( *directory, aCanceled)); if ((__builtin_expect
(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>( *directory, aCanceled)"
, tryResult1051.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1051
.propagateErr(); } auto [subdirsToProcess, databaseFilenames,
obsoleteFilenames] = tryResult1051.unwrap();
12372 *directory, aCanceled))auto tryResult1051 = (GetDatabaseFilenames<ObsoleteFilenamesHandling
::Include>( *directory, aCanceled)); if ((__builtin_expect
(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>( *directory, aCanceled)"
, tryResult1051.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1051
.propagateErr(); } auto [subdirsToProcess, databaseFilenames,
obsoleteFilenames] = tryResult1051.unwrap();
;
12373
12374 if (aInitializing) {
12375 QM_TRY(CollectEachInRange({auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12376 subdirsToProcess,{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12377 [&directory, &obsoleteFilenames = obsoleteFilenames,{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12378 &databaseFilenames = databaseFilenames, aPersistenceType,{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12379 &aOriginMetadata]({auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12380 const nsAString& subdirName) -> Result<Ok, nsresult> {{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12381 // The directory must have the correct suffix.{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12382 nsDependentSubstring subdirNameBase;{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12383 QM_TRY(QM_OR_ELSE_WARN({auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12384 // Expression.{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12385 ([&subdirName, &subdirNameBase] {{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12386 QM_TRY_RETURN(OkIf(GetFilenameBase({auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12387 subdirName, kFileManagerDirectoryNameSuffix,{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12388 subdirNameBase)));{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12389 }()),{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12390 // Fallback.{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12391 ([&directory,{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12392 &subdirName](const NotOk) -> Result<Ok, nsresult> {{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12393 // If there is an unexpected directory in the idb{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12394 // directory, trying to delete at first instead of{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12395 // breaking the whole initialization.{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12396 QM_TRY(MOZ_TO_RESULT({auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12397 DeleteFilesNoQuota(directory, subdirName)),{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12398 Err(NS_ERROR_UNEXPECTED));{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12399
12400 return Ok{};{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12401 })),{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12402 Ok{});{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12403
12404 if (obsoleteFilenames.Contains(subdirNameBase)) {{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12405 // If this fails, it probably means we are in a serious situation.{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12406 // e.g. Filesystem corruption. Will handle this in bug 1521541.{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12407 QM_TRY(MOZ_TO_RESULT(RemoveDatabaseFilesAndDirectory({auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12408 *directory, subdirNameBase, /* aQuotaManager */ nullptr,{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12409 aPersistenceType, aOriginMetadata,{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12410 /* aDatabaseName */ u""_ns)),{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12411 Err(NS_ERROR_UNEXPECTED));{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12412
12413 databaseFilenames.Remove(subdirNameBase);{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12414 return Ok{};{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12415 }{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12416
12417 // The directory base must exist in databaseFilenames.{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12418 // If there is an unexpected directory in the idb directory, trying to{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12419 // delete at first instead of breaking the whole initialization.{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12420
12421 // XXX This is still somewhat quirky. It would be nice to make it{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12422 // clear that the warning handler is infallible, which would also{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12423 // remove the need for the error type conversion.{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12424 QM_WARNONLY_TRY(QM_OR_ELSE_WARN({auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12425 // Expression.{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12426 OkIf(databaseFilenames.Contains(subdirNameBase)){auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12427 .mapErr([](const NotOk) { return NS_ERROR_FAILURE; }),{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12428 // Fallback.{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12429 ([&directory,{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12430 &subdirName](const nsresult) -> Result<Ok, nsresult> {{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12431 // XXX It seems if we really got here, we can fail the{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12432 // MOZ_ASSERT(!quotaManager->IsTemporaryStorageInitializedInternal());{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12433 // assertion in DeleteFilesNoQuota.{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12434 QM_TRY(MOZ_TO_RESULT(DeleteFilesNoQuota(directory, subdirName)),{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12435 Err(NS_ERROR_UNEXPECTED));{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12436
12437 return Ok{};{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12438 })));{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12439
12440 return Ok{};{auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12441 })){auto tryResult1058 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1054 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1052.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12401, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12398, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12402, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12411, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 =
((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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1056)::ok_type>); if ((__builtin_expect
(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12435, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1057.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1058
)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1054 = ((([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1052.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12402, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12388, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12401, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1055 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12411, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1057 = ((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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __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(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.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, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12438, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1056 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12435, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1057.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12438, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12441, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
;
12442 }
12443
12444 for (const auto& databaseFilename : databaseFilenames) {
12445 if (aCanceled) {
12446 break;
12447 }
12448
12449 QM_TRY_INSPECT(auto tryResult1059 = (CloneFileAndAppend(*directory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1059.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12452, mozilla::dom::quota::Severity::Error); return tryResult1059
.propagateErr(); } const auto& fmDirectory = tryResult1059
.inspect();
12450 const auto& fmDirectory,auto tryResult1059 = (CloneFileAndAppend(*directory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1059.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12452, mozilla::dom::quota::Severity::Error); return tryResult1059
.propagateErr(); } const auto& fmDirectory = tryResult1059
.inspect();
12451 CloneFileAndAppend(*directory,auto tryResult1059 = (CloneFileAndAppend(*directory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1059.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12452, mozilla::dom::quota::Severity::Error); return tryResult1059
.propagateErr(); } const auto& fmDirectory = tryResult1059
.inspect();
12452 databaseFilename + kFileManagerDirectoryNameSuffix))auto tryResult1059 = (CloneFileAndAppend(*directory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1059.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12452, mozilla::dom::quota::Severity::Error); return tryResult1059
.propagateErr(); } const auto& fmDirectory = tryResult1059
.inspect();
;
12453
12454 QM_TRY_INSPECT(auto tryResult1060 = (CloneFileAndAppend(*directory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)"
, tryResult1060.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); } const auto& databaseFile = tryResult1060
.inspect();
12455 const auto& databaseFile,auto tryResult1060 = (CloneFileAndAppend(*directory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)"
, tryResult1060.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); } const auto& databaseFile = tryResult1060
.inspect();
12456 CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix))auto tryResult1060 = (CloneFileAndAppend(*directory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)"
, tryResult1060.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); } const auto& databaseFile = tryResult1060
.inspect();
;
12457
12458 if (aInitializing) {
12459 QM_TRY(MOZ_TO_RESULT(DatabaseFileManager::InitDirectory({auto tryResult1061 = (ToResult(DatabaseFileManager::InitDirectory
( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile
(databaseFile)))); static_assert(std::is_empty_v<typename decltype
(tryResult1061)::ok_type>); if ((__builtin_expect(!!(tryResult1061
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseFileManager::InitDirectory( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile(databaseFile)))"
, tryResult1061.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12461, mozilla::dom::quota::Severity::Error); return tryResult1061
.propagateErr(); }}
12460 *fmDirectory, *databaseFile, aOriginMetadata.mOrigin,{auto tryResult1061 = (ToResult(DatabaseFileManager::InitDirectory
( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile
(databaseFile)))); static_assert(std::is_empty_v<typename decltype
(tryResult1061)::ok_type>); if ((__builtin_expect(!!(tryResult1061
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseFileManager::InitDirectory( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile(databaseFile)))"
, tryResult1061.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12461, mozilla::dom::quota::Severity::Error); return tryResult1061
.propagateErr(); }}
12461 TelemetryIdForFile(databaseFile)))){auto tryResult1061 = (ToResult(DatabaseFileManager::InitDirectory
( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile
(databaseFile)))); static_assert(std::is_empty_v<typename decltype
(tryResult1061)::ok_type>); if ((__builtin_expect(!!(tryResult1061
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseFileManager::InitDirectory( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile(databaseFile)))"
, tryResult1061.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12461, mozilla::dom::quota::Severity::Error); return tryResult1061
.propagateErr(); }}
;
12462 }
12463
12464 if (aUsageInfo) {
12465 {
12466 QM_TRY_INSPECT(const int64_t& fileSize,auto tryResult1062 = (::mozilla::ToResultInvokeMember( (databaseFile
), &::mozilla::detail::DerefedType<decltype(databaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1062.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (databaseFile), &::mozilla::detail::DerefedType<decltype(databaseFile)>::GetFileSize)"
, tryResult1062.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1062
.propagateErr(); } const int64_t& fileSize = tryResult1062
.inspect();
12467 MOZ_TO_RESULT_INVOKE_MEMBER(databaseFile, GetFileSize))auto tryResult1062 = (::mozilla::ToResultInvokeMember( (databaseFile
), &::mozilla::detail::DerefedType<decltype(databaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1062.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (databaseFile), &::mozilla::detail::DerefedType<decltype(databaseFile)>::GetFileSize)"
, tryResult1062.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1062
.propagateErr(); } const int64_t& fileSize = tryResult1062
.inspect();
;
12468
12469 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12469); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize >= 0"
")"); do { *((volatile int*)__null) = 12469; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12470
12471 *aUsageInfo += DatabaseUsageType(Some(uint64_t(fileSize)));
12472 }
12473
12474 {
12475 QM_TRY_INSPECT(const auto& walFile,auto tryResult1063 = (CloneFileAndAppend(*directory, databaseFilename
+ kSQLiteWALSuffix)); if ((__builtin_expect(!!(tryResult1063
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)"
, tryResult1063.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12477, mozilla::dom::quota::Severity::Error); return tryResult1063
.propagateErr(); } const auto& walFile = tryResult1063.inspect
();
12476 CloneFileAndAppend(*directory,auto tryResult1063 = (CloneFileAndAppend(*directory, databaseFilename
+ kSQLiteWALSuffix)); if ((__builtin_expect(!!(tryResult1063
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)"
, tryResult1063.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12477, mozilla::dom::quota::Severity::Error); return tryResult1063
.propagateErr(); } const auto& walFile = tryResult1063.inspect
();
12477 databaseFilename + kSQLiteWALSuffix))auto tryResult1063 = (CloneFileAndAppend(*directory, databaseFilename
+ kSQLiteWALSuffix)); if ((__builtin_expect(!!(tryResult1063
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)"
, tryResult1063.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12477, mozilla::dom::quota::Severity::Error); return tryResult1063
.propagateErr(); } const auto& walFile = tryResult1063.inspect
();
;
12478
12479 // QM_OR_ELSE_WARN_IF is not used here since we just want to log
12480 // NS_ERROR_FILE_NOT_FOUND result and not spam the reports (the -wal
12481 // file doesn't have to exist).
12482 QM_TRY_INSPECT(const int64_t& walFileSize,auto tryResult1064 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1064.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1064.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
12483 QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult1064 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1064.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1064.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
12484 // Expression.auto tryResult1064 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1064.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1064.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
12485 MOZ_TO_RESULT_INVOKE_MEMBER(walFile, GetFileSize),auto tryResult1064 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1064.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1064.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
12486 // Predicate.auto tryResult1064 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1064.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1064.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
12487 ([](const nsresult rv) {auto tryResult1064 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1064.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1064.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
12488 return rv == NS_ERROR_FILE_NOT_FOUND;auto tryResult1064 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1064.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1064.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
12489 }),auto tryResult1064 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1064.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1064.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
12490 // Fallback.auto tryResult1064 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1064.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1064.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
12491 (ErrToOk<0, int64_t>)))auto tryResult1064 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1064.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12491, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1064.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12491, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
;
12492 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12492); AnnotateMozCrashReason("MOZ_ASSERT" "(" "walFileSize >= 0"
")"); do { *((volatile int*)__null) = 12492; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12493 *aUsageInfo += DatabaseUsageType(Some(uint64_t(walFileSize)));
12494 }
12495
12496 {
12497 QM_TRY_INSPECT(const auto& fileUsage,auto tryResult1065 = (DatabaseFileManager::GetUsage(fmDirectory
)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla
::dom::quota::HandleError("DatabaseFileManager::GetUsage(fmDirectory)"
, tryResult1065.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); } const auto& fileUsage = tryResult1065.
inspect();
12498 DatabaseFileManager::GetUsage(fmDirectory))auto tryResult1065 = (DatabaseFileManager::GetUsage(fmDirectory
)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla
::dom::quota::HandleError("DatabaseFileManager::GetUsage(fmDirectory)"
, tryResult1065.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); } const auto& fileUsage = tryResult1065.
inspect();
;
12499
12500 *aUsageInfo += fileUsage;
12501 }
12502 }
12503 }
12504
12505 return NS_OK;
12506}
12507
12508void QuotaClient::OnOriginClearCompleted(
12509 const OriginMetadata& aOriginMetadata) {
12510 AssertIsOnIOThread();
12511
12512 if (IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get()) {
12513 mgr->InvalidateFileManagers(aOriginMetadata.mPersistenceType,
12514 aOriginMetadata.mOrigin);
12515 }
12516}
12517
12518void QuotaClient::OnRepositoryClearCompleted(PersistenceType aPersistenceType) {
12519 AssertIsOnIOThread();
12520
12521 if (IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get()) {
12522 mgr->InvalidateFileManagers(aPersistenceType);
12523 }
12524}
12525
12526void QuotaClient::ReleaseIOThreadObjects() {
12527 AssertIsOnIOThread();
12528
12529 if (IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get()) {
12530 mgr->InvalidateAllFileManagers();
12531 }
12532}
12533
12534void QuotaClient::AbortOperationsForLocks(
12535 const DirectoryLockIdTable& aDirectoryLockIds) {
12536 AssertIsOnBackgroundThread();
12537
12538 InvalidateLiveDatabasesMatching([&aDirectoryLockIds](const auto& database) {
12539 // If the database is registered in gLiveDatabaseHashtable then it must have
12540 // a directory lock.
12541 return IsLockForObjectContainedInLockTable(database, aDirectoryLockIds);
12542 });
12543}
12544
12545void QuotaClient::AbortOperationsForProcess(ContentParentId aContentParentId) {
12546 AssertIsOnBackgroundThread();
12547
12548 InvalidateLiveDatabasesMatching([&aContentParentId](const auto& database) {
12549 return database.IsOwnedByProcess(aContentParentId);
12550 });
12551}
12552
12553void QuotaClient::AbortAllOperations() {
12554 AssertIsOnBackgroundThread();
12555
12556 AbortAllMaintenances();
12557
12558 InvalidateLiveDatabasesMatching([](const auto&) { return true; });
12559}
12560
12561void QuotaClient::StartIdleMaintenance() {
12562 AssertIsOnBackgroundThread();
12563 if (IsShuttingDownOnBackgroundThread()) {
12564 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()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12564); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!IsShuttingDownOnBackgroundThread()" ")"); do { *((volatile
int*)__null) = 12564; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false)
;
12565 return;
12566 }
12567
12568 DoMaintenance();
12569}
12570
12571void QuotaClient::StopIdleMaintenance() {
12572 AssertIsOnBackgroundThread();
12573
12574 AbortAllMaintenances();
12575}
12576
12577void QuotaClient::InitiateShutdown() {
12578 AssertIsOnBackgroundThread();
12579 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12579); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsShuttingDownOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 12579; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12580
12581 if (mDeleteTimer) {
12582 // QuotaClient::AsyncDeleteFile will not schedule new timers beyond
12583 // shutdown. And we expect all critical (PBM) deletions to have been
12584 // triggered before this point via ClearPrivateRepository (w/out using
12585 // DeleteFilesRunnable at all).
12586 mDeleteTimer->Cancel();
12587 mDeleteTimer = nullptr;
12588 mPendingDeleteInfos.Clear();
12589 }
12590
12591 AbortAllOperations();
12592}
12593
12594bool QuotaClient::IsShutdownCompleted() const {
12595 return (!gFactoryOps || gFactoryOps->IsEmpty()) &&
12596 (!gLiveDatabaseHashtable || !gLiveDatabaseHashtable->Count()) &&
12597 !mCurrentMaintenance && !DeleteFilesRunnable::IsDeletionPending();
12598}
12599
12600void QuotaClient::ForceKillActors() {
12601 // Currently we don't implement force killing actors.
12602}
12603
12604nsCString QuotaClient::GetShutdownStatus() const {
12605 AssertIsOnBackgroundThread();
12606
12607 nsCString data;
12608
12609 if (gFactoryOps && !gFactoryOps->IsEmpty()) {
12610 data.Append("FactoryOperations: "_ns +
12611 IntToCString(static_cast<uint32_t>(gFactoryOps->Length())) +
12612 " ("_ns);
12613
12614 // XXX It might be confusing to remove duplicates here, as the actual list
12615 // won't match the count then.
12616 nsTHashSet<nsCString> ids;
12617 std::transform(gFactoryOps->cbegin(), gFactoryOps->cend(),
12618 MakeInserter(ids), [](const auto& factoryOp) {
12619 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12619); AnnotateMozCrashReason("MOZ_ASSERT" "(" "factoryOp"
")"); do { *((volatile int*)__null) = 12619; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12620
12621 nsCString id;
12622 factoryOp->Stringify(id);
12623 return id;
12624 });
12625
12626 StringJoinAppend(data, ", "_ns, ids);
12627
12628 data.Append(")\n");
12629 }
12630
12631 if (gLiveDatabaseHashtable && gLiveDatabaseHashtable->Count()) {
12632 data.Append("LiveDatabases: "_ns +
12633 IntToCString(gLiveDatabaseHashtable->Count()) + " ("_ns);
12634
12635 // XXX What's the purpose of adding these to a hashtable before joining them
12636 // to the string? (Maybe this used to be an ordered container before???)
12637 nsTHashSet<nsCString> ids;
12638
12639 for (const auto& entry : gLiveDatabaseHashtable->Values()) {
12640 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12640); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry" ")"
); do { *((volatile int*)__null) = 12640; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
12641
12642 std::transform(entry->mLiveDatabases.cbegin(),
12643 entry->mLiveDatabases.cend(), MakeInserter(ids),
12644 [](const auto& database) {
12645 nsCString id;
12646 database->Stringify(id);
12647 return id;
12648 });
12649 }
12650
12651 StringJoinAppend(data, ", "_ns, ids);
12652
12653 data.Append(")\n");
12654 }
12655
12656 if (mCurrentMaintenance) {
12657 data.Append("IdleMaintenance: 1 (");
12658 mCurrentMaintenance->Stringify(data);
12659 data.Append(")\n");
12660 }
12661
12662 return data;
12663}
12664
12665void QuotaClient::FinalizeShutdown() {
12666 RefPtr<ConnectionPool> connectionPool = gConnectionPool.get();
12667 if (connectionPool) {
12668 connectionPool->Shutdown();
12669
12670 gConnectionPool = nullptr;
12671 }
12672
12673 if (mMaintenanceThreadPool) {
12674 mMaintenanceThreadPool->Shutdown();
12675 mMaintenanceThreadPool = nullptr;
12676 }
12677}
12678
12679void QuotaClient::DeleteTimerCallback(nsITimer* aTimer, void* aClosure) {
12680 AssertIsOnBackgroundThread();
12681 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12681); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTimer" ")"
); do { *((volatile int*)__null) = 12681; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
12682
12683 // Even though we do not schedule new timers after shutdown has started,
12684 // an already existing one might fire afterwards (actually we think it
12685 // shouldn't, but there is no reason to enforce this invariant). We can
12686 // just ignore it, the cleanup work is done in InitiateShutdown.
12687 if (NS_WARN_IF(IsShuttingDownOnBackgroundThread())NS_warn_if_impl(IsShuttingDownOnBackgroundThread(), "IsShuttingDownOnBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12687)
) {
12688 return;
12689 }
12690
12691 auto* const self = static_cast<QuotaClient*>(aClosure);
12692 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12692); AnnotateMozCrashReason("MOZ_ASSERT" "(" "self" ")")
; do { *((volatile int*)__null) = 12692; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
12693 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12693); AnnotateMozCrashReason("MOZ_ASSERT" "(" "self->mDeleteTimer"
")"); do { *((volatile int*)__null) = 12693; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12694 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12694); AnnotateMozCrashReason("MOZ_ASSERT" "(" "SameCOMIdentity(self->mDeleteTimer, aTimer)"
")"); do { *((volatile int*)__null) = 12694; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12695
12696 for (const auto& pendingDeleteInfoEntry : self->mPendingDeleteInfos) {
12697 const auto& key = pendingDeleteInfoEntry.GetKey();
12698 const auto& value = pendingDeleteInfoEntry.GetData();
12699 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12699); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!value->IsEmpty()"
")"); do { *((volatile int*)__null) = 12699; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12700
12701 RefPtr<DeleteFilesRunnable> runnable = new DeleteFilesRunnable(
12702 SafeRefPtr{key, AcquireStrongRefFromRawPtr{}}, std::move(*value));
12703
12704 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "value->IsEmpty()"
")"); do { *((volatile int*)__null) = 12704; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12705
12706 runnable->RunImmediately();
12707 }
12708
12709 self->mPendingDeleteInfos.Clear();
12710}
12711
12712void QuotaClient::AbortAllMaintenances() {
12713 if (mCurrentMaintenance) {
12714 mCurrentMaintenance->Abort();
12715 }
12716
12717 for (const auto& maintenance : mMaintenanceQueue) {
12718 maintenance->Abort();
12719 }
12720}
12721
12722Result<nsCOMPtr<nsIFile>, nsresult> QuotaClient::GetDirectory(
12723 const OriginMetadata& aOriginMetadata) {
12724 QuotaManager* const quotaManager = QuotaManager::Get();
12725 NS_ASSERTION(quotaManager, "This should never fail!")do { if (!(quotaManager)) { NS_DebugBreak(NS_DEBUG_ASSERTION,
"This should never fail!", "quotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12725); MOZ_PretendNoReturn(); } } while (0)
;
12726
12727 QM_TRY_INSPECT(const auto& directory,auto tryResult1066 = (quotaManager->GetOriginDirectory(aOriginMetadata
)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(aOriginMetadata)"
, tryResult1066.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12728, mozilla::dom::quota::Severity::Error); return tryResult1066
.propagateErr(); } const auto& directory = tryResult1066.
inspect();
12728 quotaManager->GetOriginDirectory(aOriginMetadata))auto tryResult1066 = (quotaManager->GetOriginDirectory(aOriginMetadata
)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(aOriginMetadata)"
, tryResult1066.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12728, mozilla::dom::quota::Severity::Error); return tryResult1066
.propagateErr(); } const auto& directory = tryResult1066.
inspect();
;
12729
12730 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12730); AnnotateMozCrashReason("MOZ_ASSERT" "(" "directory"
")"); do { *((volatile int*)__null) = 12730; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12731
12732 QM_TRY(MOZ_TO_RESULT({auto tryResult1067 = (ToResult(directory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1067
)::ok_type>); if ((__builtin_expect(!!(tryResult1067.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1067.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12733, mozilla::dom::quota::Severity::Error); return tryResult1067
.propagateErr(); }}
12733 directory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult1067 = (ToResult(directory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1067
)::ok_type>); if ((__builtin_expect(!!(tryResult1067.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1067.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12733, mozilla::dom::quota::Severity::Error); return tryResult1067
.propagateErr(); }}
;
12734
12735 return directory;
12736}
12737
12738template <QuotaClient::ObsoleteFilenamesHandling ObsoleteFilenames>
12739Result<QuotaClient::GetDatabaseFilenamesResult<ObsoleteFilenames>, nsresult>
12740QuotaClient::GetDatabaseFilenames(nsIFile& aDirectory,
12741 const AtomicBool& aCanceled) {
12742 AssertIsOnIOThread();
12743
12744 GetDatabaseFilenamesResult<ObsoleteFilenames> result;
12745
12746 QM_TRY(CollectEachFileAtomicCancelable({auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12747 aDirectory, aCanceled,{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12748 [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> {{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12749 QM_TRY_INSPECT(const auto& leafName, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12750 nsString, file, GetLeafName));{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12751
12752 QM_TRY_INSPECT(const auto& dirEntryKind, GetDirEntryKind(*file));{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12753
12754 switch (dirEntryKind) {{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12755 case nsIFileKind::ExistsAsDirectory:{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12756 result.subdirsToProcess.AppendElement(leafName);{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12757 break;{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12758
12759 case nsIFileKind::ExistsAsFile: {{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12760 if constexpr (ObsoleteFilenames =={auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12761 ObsoleteFilenamesHandling::Include) {{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12762 if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) {{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12763 result.obsoleteFilenames.Insert({auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12764 Substring(leafName, kIdbDeletionMarkerFilePrefix.Length()));{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12765 break;{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12766 }{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12767 }{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12768
12769 // Skip OS metadata files. These files are only used in different{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12770 // platforms, but the profile can be shared across different{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12771 // operating systems, so we check it on all platforms.{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12772 if (QuotaManager::IsOSMetadata(leafName)) {{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12773 break;{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12774 }{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12775
12776 // Skip files starting with ".".{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12777 if (QuotaManager::IsDotFile(leafName)) {{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12778 break;{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12779 }{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12780
12781 // Skip SQLite temporary files. These files take up space on disk{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12782 // but will be deleted as soon as the database is opened, so we{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12783 // don't count them towards quota.{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12784 if (StringEndsWith(leafName, kSQLiteJournalSuffix) ||{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12785 StringEndsWith(leafName, kSQLiteSHMSuffix)) {{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12786 break;{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12787 }{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12788
12789 // The SQLite WAL file does count towards quota, but it is handled{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12790 // below once we find the actual database file.{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12791 if (StringEndsWith(leafName, kSQLiteWALSuffix)) {{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12792 break;{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12793 }{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12794
12795 nsDependentSubstring leafNameBase;{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12796 if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) {{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12797 UNKNOWN_FILE_WARNING(leafName);{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12798 break;{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12799 }{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12800
12801 result.databaseFilenames.Insert(leafNameBase);{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12802 break;{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12803 }{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12804
12805 case nsIFileKind::DoesNotExist:{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12806 // Ignore files that got removed externally while iterating.{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12807 break;{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12808 }{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12809
12810 return Ok{};{auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12811 })){auto tryResult1070 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1068 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12750, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& leafName = tryResult1068.inspect
();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12752, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& dirEntryKind = tryResult1069
.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12797); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1070
)::ok_type>); if ((__builtin_expect(!!(tryResult1070.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1068 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1068.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12750, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); } const auto& leafName = tryResult1068.inspect();; auto tryResult1069 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1069.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12752, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); } const auto& dirEntryKind = tryResult1069.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12797); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12811, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
;
12812
12813 return result;
12814}
12815
12816void QuotaClient::ProcessMaintenanceQueue() {
12817 AssertIsOnBackgroundThread();
12818
12819 if (mCurrentMaintenance || mMaintenanceQueue.IsEmpty()) {
12820 return;
12821 }
12822
12823 mCurrentMaintenance = mMaintenanceQueue[0];
12824 mMaintenanceQueue.RemoveElementAt(0);
12825
12826 mCurrentMaintenance->RunImmediately();
12827}
12828
12829/*******************************************************************************
12830 * DeleteFilesRunnable
12831 ******************************************************************************/
12832
12833uint64_t DeleteFilesRunnable::sPendingRunnables = 0;
12834
12835DeleteFilesRunnable::DeleteFilesRunnable(
12836 SafeRefPtr<DatabaseFileManager> aFileManager, nsTArray<int64_t>&& aFileIds)
12837 : Runnable("dom::indexeddb::DeleteFilesRunnable"),
12838 mOwningEventTarget(GetCurrentSerialEventTarget()),
12839 mFileManager(std::move(aFileManager)),
12840 mFileIds(std::move(aFileIds)),
12841 mState(State_Initial) {}
12842
12843#ifdef DEBUG1
12844DeleteFilesRunnable::~DeleteFilesRunnable() {
12845 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12845); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGCountsAsPending"
")"); do { *((volatile int*)__null) = 12845; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12846}
12847#endif
12848
12849void DeleteFilesRunnable::RunImmediately() {
12850 AssertIsOnBackgroundThread();
12851 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12851); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_Initial"
")"); do { *((volatile int*)__null) = 12851; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12852
12853 Unused << this->Run();
12854}
12855
12856void DeleteFilesRunnable::Open() {
12857 AssertIsOnBackgroundThread();
12858 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12858); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_Initial"
")"); do { *((volatile int*)__null) = 12858; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12859
12860 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12860); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGCountsAsPending"
")"); do { *((volatile int*)__null) = 12860; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12861 sPendingRunnables++;
12862 DEBUGONLY(mDEBUGCountsAsPending = true)mDEBUGCountsAsPending = true;
12863
12864 QuotaManager* const quotaManager = QuotaManager::Get();
12865 if (NS_WARN_IF(!quotaManager)NS_warn_if_impl(!quotaManager, "!quotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12865)
) {
12866 Finish();
12867 return;
12868 }
12869
12870 mState = State_DirectoryOpenPending;
12871
12872 quotaManager
12873 ->OpenClientDirectory(
12874 {mFileManager->OriginMetadata(), quota::Client::IDB})
12875 ->Then(
12876 GetCurrentSerialEventTarget(), __func__,
12877 [self = RefPtr(this)](
12878 const ClientDirectoryLockPromise::ResolveOrRejectValue& aValue) {
12879 if (aValue.IsResolve()) {
12880 self->DirectoryLockAcquired(aValue.ResolveValue());
12881 } else {
12882 self->DirectoryLockFailed();
12883 }
12884 });
12885}
12886
12887void DeleteFilesRunnable::DoDatabaseWork() {
12888 AssertIsOnIOThread();
12889 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12889); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_DatabaseWorkOpen"
")"); do { *((volatile int*)__null) = 12889; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12890
12891 if (!mFileManager->Invalidated()) {
12892 for (int64_t fileId : mFileIds) {
12893 if (NS_FAILED(mFileManager->SyncDeleteFile(fileId))((bool)(__builtin_expect(!!(NS_FAILED_impl(mFileManager->SyncDeleteFile
(fileId))), 0)))
) {
12894 NS_WARNING("Failed to delete file!")NS_DebugBreak(NS_DEBUG_WARNING, "Failed to delete file!", nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12894)
;
12895 }
12896 }
12897 }
12898
12899 Finish();
12900}
12901
12902void DeleteFilesRunnable::Finish() {
12903 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12903); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState != State_UnblockingOpen"
")"); do { *((volatile int*)__null) = 12903; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12904
12905 // Must set mState before dispatching otherwise we will race with the main
12906 // thread.
12907 mState = State_UnblockingOpen;
12908
12909 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12909); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 12909; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
12910}
12911
12912void DeleteFilesRunnable::UnblockOpen() {
12913 AssertIsOnBackgroundThread();
12914 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12914); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_UnblockingOpen"
")"); do { *((volatile int*)__null) = 12914; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12915
12916 SafeDropDirectoryLock(mDirectoryLock);
12917
12918 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12918); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGCountsAsPending"
")"); do { *((volatile int*)__null) = 12918; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12919 sPendingRunnables--;
12920 DEBUGONLY(mDEBUGCountsAsPending = false)mDEBUGCountsAsPending = false;
12921
12922 mState = State_Completed;
12923}
12924
12925NS_IMETHODIMPnsresult
12926DeleteFilesRunnable::Run() {
12927 switch (mState) {
12928 case State_Initial:
12929 Open();
12930 break;
12931
12932 case State_DatabaseWorkOpen:
12933 DoDatabaseWork();
12934 break;
12935
12936 case State_UnblockingOpen:
12937 UnblockOpen();
12938 break;
12939
12940 case State_DirectoryOpenPending:
12941 default:
12942 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12942); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 12942; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
12943 }
12944
12945 return NS_OK;
12946}
12947
12948void DeleteFilesRunnable::DirectoryLockAcquired(ClientDirectoryLock* aLock) {
12949 AssertIsOnBackgroundThread();
12950 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12950); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_DirectoryOpenPending"
")"); do { *((volatile int*)__null) = 12950; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12951 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock"
")"); do { *((volatile int*)__null) = 12951; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12952
12953 mDirectoryLock = aLock;
12954
12955 QuotaManager* const quotaManager = QuotaManager::Get();
12956 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 12956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12957
12958 // Must set this before dispatching otherwise we will race with the IO thread
12959 mState = State_DatabaseWorkOpen;
12960
12961 QM_TRY(MOZ_TO_RESULT({auto tryResult1071 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1071)::ok_type
>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) {
auto tryTempError = tryResult1071.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12963, mozilla::dom::quota::Severity::Error); [this](const nsresult
) { Finish(); }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return ; }}
12962 quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult1071 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1071)::ok_type
>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) {
auto tryTempError = tryResult1071.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12963, mozilla::dom::quota::Severity::Error); [this](const nsresult
) { Finish(); }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return ; }}
12963 QM_VOID, [this](const nsresult) { Finish(); }){auto tryResult1071 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1071)::ok_type
>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) {
auto tryTempError = tryResult1071.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12963, mozilla::dom::quota::Severity::Error); [this](const nsresult
) { Finish(); }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return ; }}
;
12964}
12965
12966void DeleteFilesRunnable::DirectoryLockFailed() {
12967 AssertIsOnBackgroundThread();
12968 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12968); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_DirectoryOpenPending"
")"); do { *((volatile int*)__null) = 12968; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12969 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12969); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock"
")"); do { *((volatile int*)__null) = 12969; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12970
12971 Finish();
12972}
12973
12974void Maintenance::Abort() {
12975 AssertIsOnBackgroundThread();
12976
12977 // Safe because mDatabaseMaintenances is modified
12978 // only in the background thread
12979 for (const auto& aDatabaseMaintenance : mDatabaseMaintenances) {
12980 aDatabaseMaintenance.GetData()->Abort();
12981 }
12982
12983 mAborted = true;
12984}
12985
12986void Maintenance::RegisterDatabaseMaintenance(
12987 DatabaseMaintenance* aDatabaseMaintenance) {
12988 AssertIsOnBackgroundThread();
12989 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12989); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseMaintenance"
")"); do { *((volatile int*)__null) = 12989; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12990 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12990); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginDatabaseMaintenance"
")"); do { *((volatile int*)__null) = 12990; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12991 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())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())"
")"); do { *((volatile int*)__null) = 12992; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
12992 !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())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())"
")"); do { *((volatile int*)__null) = 12992; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12993
12994 mDatabaseMaintenances.InsertOrUpdate(aDatabaseMaintenance->DatabasePath(),
12995 aDatabaseMaintenance);
12996}
12997
12998void Maintenance::UnregisterDatabaseMaintenance(
12999 DatabaseMaintenance* aDatabaseMaintenance) {
13000 AssertIsOnBackgroundThread();
13001 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13001); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseMaintenance"
")"); do { *((volatile int*)__null) = 13001; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13002 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForDatabaseMaintenancesToComplete"
")"); do { *((volatile int*)__null) = 13002; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13003 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())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13003); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath())"
")"); do { *((volatile int*)__null) = 13003; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13004
13005 mDatabaseMaintenances.Remove(aDatabaseMaintenance->DatabasePath());
13006
13007 if (mDatabaseMaintenances.Count()) {
13008 return;
13009 }
13010
13011 for (const auto& completeCallback : mCompleteCallbacks) {
13012 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13012); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(completeCallback))"
")"); do { *((volatile int*)__null) = 13012; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13013 }
13014 mCompleteCallbacks.Clear();
13015
13016 mState = State::Finishing;
13017 Finish();
13018}
13019
13020void Maintenance::Stringify(nsACString& aResult) const {
13021 AssertIsOnBackgroundThread();
13022
13023 aResult.Append("DatabaseMaintenances: "_ns +
13024 IntToCString(mDatabaseMaintenances.Count()) + " ("_ns);
13025
13026 // XXX It might be confusing to remove duplicates here, as the actual list
13027 // won't match the count then.
13028 nsTHashSet<nsCString> ids;
13029 std::transform(mDatabaseMaintenances.Values().cbegin(),
13030 mDatabaseMaintenances.Values().cend(), MakeInserter(ids),
13031 [](const auto& entry) {
13032 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13032); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry" ")"
); do { *((volatile int*)__null) = 13032; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13033
13034 nsCString id;
13035 entry->Stringify(id);
13036
13037 return id;
13038 });
13039
13040 StringJoinAppend(aResult, ", "_ns, ids);
13041
13042 aResult.Append(")");
13043}
13044
13045nsresult Maintenance::Start() {
13046 AssertIsOnBackgroundThread();
13047 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { *((volatile int*)__null) = 13047; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13048
13049 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13049)
||
13050 IsAborted()) {
13051 return NS_ERROR_ABORT;
13052 }
13053
13054 // Make sure that the IndexedDatabaseManager is running so that we can check
13055 // for low disk space mode.
13056
13057 if (IndexedDatabaseManager::Get()) {
13058 OpenDirectory();
13059 return NS_OK;
13060 }
13061
13062 mState = State::CreateIndexedDatabaseManager;
13063 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13063); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToMainThread(this))"
")"); do { *((volatile int*)__null) = 13063; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13064
13065 return NS_OK;
13066}
13067
13068nsresult Maintenance::CreateIndexedDatabaseManager() {
13069 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13069); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 13069; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13070 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13070); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::CreateIndexedDatabaseManager"
")"); do { *((volatile int*)__null) = 13070; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13071
13072 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13072)
||
13073 IsAborted()) {
13074 return NS_ERROR_ABORT;
13075 }
13076
13077 IndexedDatabaseManager* const mgr = IndexedDatabaseManager::GetOrCreate();
13078 if (NS_WARN_IF(!mgr)NS_warn_if_impl(!mgr, "!mgr", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13078)
) {
13079 return NS_ERROR_FAILURE;
13080 }
13081
13082 mState = State::IndexedDatabaseManagerOpen;
13083 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13084); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 13084; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
13084 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13084); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 13084; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13085
13086 return NS_OK;
13087}
13088
13089RefPtr<UniversalDirectoryLockPromise> Maintenance::OpenStorageDirectory(
13090 const PersistenceScope& aPersistenceScope, bool aInitializeOrigins) {
13091 AssertIsOnBackgroundThread();
13092 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13092); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 13092; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13093 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13093); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock"
")"); do { *((volatile int*)__null) = 13093; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13094 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13094); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mAborted"
")"); do { *((volatile int*)__null) = 13094; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13095 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13095); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { *((volatile int*)__null) = 13095; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13096
13097 QuotaManager* quotaManager = QuotaManager::Get();
13098 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13098); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 13098; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13099
13100 // Return a shared lock for <profile>/storage/*/*/idb
13101 return quotaManager->OpenStorageDirectory(
13102 aPersistenceScope, OriginScope::FromNull(),
13103 Nullable<Client::Type>(Client::IDB),
13104 /* aExclusive */ false, aInitializeOrigins, DirectoryLockCategory::None,
13105 SomeRef(mPendingDirectoryLock));
13106}
13107
13108nsresult Maintenance::OpenDirectory() {
13109 AssertIsOnBackgroundThread();
13110 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13111); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::IndexedDatabaseManagerOpen"
")"); do { *((volatile int*)__null) = 13111; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
13111 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13111); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::IndexedDatabaseManagerOpen"
")"); do { *((volatile int*)__null) = 13111; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13112 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13112); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock"
")"); do { *((volatile int*)__null) = 13112; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13113 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13113); AnnotateMozCrashReason("MOZ_ASSERT" "(" "QuotaManager::Get()"
")"); do { *((volatile int*)__null) = 13113; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13114
13115 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13115)
||
13116 IsAborted()) {
13117 return NS_ERROR_ABORT;
13118 }
13119
13120 mState = State::DirectoryOpenPending;
13121
13122 // Since idle maintenance may occur before persistent or temporary storage is
13123 // initialized, make sure it's initialized here (all persistent and
13124 // non-persistent origins need to be cleaned up and quota info needs to be
13125 // loaded for non-persistent origins).
13126
13127 OpenStorageDirectory(PersistenceScope::CreateFromNull(),
13128 /* aInitializeOrigins */ true)
13129 ->Then(
13130 GetCurrentSerialEventTarget(), __func__,
13131 [self = RefPtr(this)](
13132 const UniversalDirectoryLockPromise::ResolveOrRejectValue&
13133 aValue) {
13134 if (aValue.IsResolve()) {
13135 self->DirectoryLockAcquired(aValue.ResolveValue());
13136 return;
13137 }
13138
13139 // Don't fail whole idle maintenance in case of an error, the
13140 // persistent repository can still be processed.
13141
13142 self->mPendingDirectoryLock = nullptr;
13143 self->mOpenStorageForAllRepositoriesFailed = true;
13144
13145 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13145)
||
13146 self->IsAborted()) {
13147 self->DirectoryLockFailed();
13148 return;
13149 }
13150
13151 self->OpenStorageDirectory(PersistenceScope::CreateFromValue(
13152 PERSISTENCE_TYPE_PERSISTENT),
13153 /* aInitializeOrigins */ true)
13154 ->Then(GetCurrentSerialEventTarget(), __func__,
13155 [self](const UniversalDirectoryLockPromise::
13156 ResolveOrRejectValue& aValue) {
13157 if (aValue.IsResolve()) {
13158 self->DirectoryLockAcquired(aValue.ResolveValue());
13159 } else {
13160 self->DirectoryLockFailed();
13161 }
13162 });
13163 });
13164
13165 return NS_OK;
13166}
13167
13168nsresult Maintenance::DirectoryOpen() {
13169 AssertIsOnBackgroundThread();
13170 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13170); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { *((volatile int*)__null) = 13170; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13171 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13171); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock"
")"); do { *((volatile int*)__null) = 13171; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13172
13173 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13173)
||
13174 IsAborted()) {
13175 return NS_ERROR_ABORT;
13176 }
13177
13178 QuotaManager* const quotaManager = QuotaManager::Get();
13179 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13179); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 13179; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13180
13181 mState = State::DirectoryWorkOpen;
13182
13183 QM_TRY(MOZ_TO_RESULT({auto tryResult1072 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1072)::ok_type
>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1072
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13185, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_FAILURE); }}
13184 quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult1072 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1072)::ok_type
>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1072
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13185, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_FAILURE); }}
13185 NS_ERROR_FAILURE){auto tryResult1072 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1072)::ok_type
>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1072
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13185, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_FAILURE); }}
;
13186
13187 return NS_OK;
13188}
13189
13190nsresult Maintenance::DirectoryWork() {
13191 AssertIsOnIOThread();
13192 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13192); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryWorkOpen"
")"); do { *((volatile int*)__null) = 13192; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13193
13194 // The storage directory is structured like this:
13195 //
13196 // <profile>/storage/<persistence>/<origin>/idb/*.sqlite
13197 //
13198 // We have to find all database files that match any persistence type and any
13199 // origin. We ignore anything out of the ordinary for now.
13200
13201 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13201)
||
13202 IsAborted()) {
13203 return NS_ERROR_ABORT;
13204 }
13205
13206 QuotaManager* const quotaManager = QuotaManager::Get();
13207 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13207); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 13207; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13208
13209 const nsCOMPtr<nsIFile> storageDir =
13210 GetFileForPath(quotaManager->GetStoragePath());
13211 QM_TRY(OkIf(storageDir), NS_ERROR_FAILURE){auto tryResult1073 = (OkIf(storageDir)); static_assert(std::
is_empty_v<typename decltype(tryResult1073)::ok_type>);
if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1073.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(storageDir)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13211, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(storageDir)"
, tryTempError, NS_ERROR_FAILURE); }}
;
13212
13213 {
13214 QM_TRY_INSPECT(const bool& exists,auto tryResult1074 = (::mozilla::ToResultInvokeMember( (storageDir
), &::mozilla::detail::DerefedType<decltype(storageDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1074.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::Exists)"
, tryResult1074.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13215, mozilla::dom::quota::Severity::Error); return tryResult1074
.propagateErr(); } const bool& exists = tryResult1074.inspect
();
13215 MOZ_TO_RESULT_INVOKE_MEMBER(storageDir, Exists))auto tryResult1074 = (::mozilla::ToResultInvokeMember( (storageDir
), &::mozilla::detail::DerefedType<decltype(storageDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1074.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::Exists)"
, tryResult1074.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13215, mozilla::dom::quota::Severity::Error); return tryResult1074
.propagateErr(); } const bool& exists = tryResult1074.inspect
();
;
13216
13217 // XXX No warning here?
13218 if (!exists) {
13219 return NS_ERROR_NOT_AVAILABLE;
13220 }
13221 }
13222
13223 {
13224 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1075 = (::mozilla::ToResultInvokeMember( (storageDir
), &::mozilla::detail::DerefedType<decltype(storageDir
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1075.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::IsDirectory)"
, tryResult1075.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, mozilla::dom::quota::Severity::Error); return tryResult1075
.propagateErr(); } const bool& isDirectory = tryResult1075
.inspect();
13225 MOZ_TO_RESULT_INVOKE_MEMBER(storageDir, IsDirectory))auto tryResult1075 = (::mozilla::ToResultInvokeMember( (storageDir
), &::mozilla::detail::DerefedType<decltype(storageDir
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1075.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::IsDirectory)"
, tryResult1075.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, mozilla::dom::quota::Severity::Error); return tryResult1075
.propagateErr(); } const bool& isDirectory = tryResult1075
.inspect();
;
13226
13227 QM_TRY(OkIf(isDirectory), NS_ERROR_FAILURE){auto tryResult1076 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult1076)::ok_type>);
if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1076.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13227, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
13228 }
13229
13230 // There are currently only 4 persistence types, and we want to iterate them
13231 // in this order:
13232 static const PersistenceType kPersistenceTypes[] = {
13233 PERSISTENCE_TYPE_PERSISTENT, PERSISTENCE_TYPE_DEFAULT,
13234 PERSISTENCE_TYPE_TEMPORARY, PERSISTENCE_TYPE_PRIVATE};
13235
13236 static_assert(
13237 std::size(kPersistenceTypes) == size_t(PERSISTENCE_TYPE_INVALID),
13238 "Something changed with available persistence types!");
13239
13240 constexpr auto idbDirName =
13241 NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)static_cast<const nsLiteralString&>( nsLiteralString
(u"" "idb"))
;
13242
13243 for (const PersistenceType persistenceType : kPersistenceTypes) {
13244 // Loop over "<persistence>" directories.
13245 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13245)
||
13246 IsAborted()) {
13247 return NS_ERROR_ABORT;
13248 }
13249
13250 // Don't do any maintenance for private browsing databases, which are only
13251 // temporary.
13252 if (persistenceType == PERSISTENCE_TYPE_PRIVATE) {
13253 continue;
13254 }
13255
13256 const bool persistent = persistenceType == PERSISTENCE_TYPE_PERSISTENT;
13257
13258 if (!persistent && mOpenStorageForAllRepositoriesFailed) {
13259 // Non-persistent (best effort) repositories can't be processed if
13260 // temporary storage initialization failed.
13261 continue;
13262 }
13263
13264 // XXX persistenceType == PERSISTENCE_TYPE_PERSISTENT shouldn't be a special
13265 // case...
13266 const auto persistenceTypeString =
13267 persistenceType == PERSISTENCE_TYPE_PERSISTENT
13268 ? "permanent"_ns
13269 : PersistenceTypeToString(persistenceType);
13270
13271 QM_TRY_INSPECT(const auto& persistenceDir,auto tryResult1077 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16
( persistenceTypeString))); if ((__builtin_expect(!!(tryResult1077
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))"
, tryResult1077.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13273, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); } const auto& persistenceDir = tryResult1077
.inspect();
13272 CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16(auto tryResult1077 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16
( persistenceTypeString))); if ((__builtin_expect(!!(tryResult1077
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))"
, tryResult1077.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13273, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); } const auto& persistenceDir = tryResult1077
.inspect();
13273 persistenceTypeString)))auto tryResult1077 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16
( persistenceTypeString))); if ((__builtin_expect(!!(tryResult1077
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))"
, tryResult1077.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13273, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); } const auto& persistenceDir = tryResult1077
.inspect();
;
13274
13275 {
13276 QM_TRY_INSPECT(const bool& exists,auto tryResult1078 = (::mozilla::ToResultInvokeMember( (persistenceDir
), &::mozilla::detail::DerefedType<decltype(persistenceDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1078.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::Exists)"
, tryResult1078.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13277, mozilla::dom::quota::Severity::Error); return tryResult1078
.propagateErr(); } const bool& exists = tryResult1078.inspect
();
13277 MOZ_TO_RESULT_INVOKE_MEMBER(persistenceDir, Exists))auto tryResult1078 = (::mozilla::ToResultInvokeMember( (persistenceDir
), &::mozilla::detail::DerefedType<decltype(persistenceDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1078.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::Exists)"
, tryResult1078.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13277, mozilla::dom::quota::Severity::Error); return tryResult1078
.propagateErr(); } const bool& exists = tryResult1078.inspect
();
;
13278
13279 if (!exists) {
13280 continue;
13281 }
13282
13283 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1079 = (::mozilla::ToResultInvokeMember( (persistenceDir
), &::mozilla::detail::DerefedType<decltype(persistenceDir
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1079.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::IsDirectory)"
, tryResult1079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13284, mozilla::dom::quota::Severity::Error); return tryResult1079
.propagateErr(); } const bool& isDirectory = tryResult1079
.inspect();
13284 MOZ_TO_RESULT_INVOKE_MEMBER(persistenceDir, IsDirectory))auto tryResult1079 = (::mozilla::ToResultInvokeMember( (persistenceDir
), &::mozilla::detail::DerefedType<decltype(persistenceDir
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1079.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::IsDirectory)"
, tryResult1079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13284, mozilla::dom::quota::Severity::Error); return tryResult1079
.propagateErr(); } const bool& isDirectory = tryResult1079
.inspect();
;
13285
13286 if (NS_WARN_IF(!isDirectory)NS_warn_if_impl(!isDirectory, "!isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286)
) {
13287 continue;
13288 }
13289 }
13290
13291 // Loop over "<origin>/idb" directories.
13292 QM_TRY(CollectEachFile({auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13293 *persistenceDir,{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13294 [this, &quotaManager, persistenceType, &idbDirName]({auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13295 const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> {{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13296 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread()) ||{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13297 IsAborted()) {{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13298 return Err(NS_ERROR_ABORT);{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13299 }{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13300
13301 QM_TRY_INSPECT(const auto& dirEntryKind, GetDirEntryKind(*originDir));{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13302
13303 switch (dirEntryKind) {{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13304 case nsIFileKind::ExistsAsFile:{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13305 break;{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13306
13307 case nsIFileKind::ExistsAsDirectory: {{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13308 // Get the necessary information about the origin{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13309 // (GetOriginMetadata also checks if it's a valid origin).{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13310
13311 QM_TRY_INSPECT(const auto& metadata,{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13312 quotaManager->GetOriginMetadata(originDir),{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13313 // Not much we can do here...{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13314 Ok{});{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13315
13316 // We now use a dedicated repository for private browsing{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13317 // databases, but there could be some forgotten private browsing{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13318 // databases in other repositories, so it's better to check for{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13319 // that and don't do any maintenance for such databases.{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13320 if (metadata.mIsPrivate) {{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13321 return Ok{};{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13322 }{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13323
13324 QM_TRY_INSPECT(const auto& idbDir,{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13325 CloneFileAndAppend(*originDir, idbDirName));{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13326
13327 QM_TRY_INSPECT(const bool& exists,{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13328 MOZ_TO_RESULT_INVOKE_MEMBER(idbDir, Exists));{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13329
13330 if (!exists) {{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13331 return Ok{};{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13332 }{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13333
13334 QM_TRY_INSPECT(const bool& isDirectory,{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13335 MOZ_TO_RESULT_INVOKE_MEMBER(idbDir, IsDirectory));{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13336
13337 QM_TRY(OkIf(isDirectory), Ok{});{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13338
13339 nsTArray<nsString> databasePaths;{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13340
13341 // Loop over files in the "idb" directory.{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13342 QM_TRY(CollectEachFile({auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13343 *idbDir,{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13344 [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile){auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13345 -> Result<Ok, nsresult> {{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13346 if (NS_WARN_IF(QuotaClient::{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13347 IsShuttingDownOnNonBackgroundThread()) ||{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13348 IsAborted()) {{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13349 return Err(NS_ERROR_ABORT);{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13350 }{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13351
13352 QM_TRY_UNWRAP(auto idbFilePath,{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13353 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13354 nsString, idbDirFile, GetPath));{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13355
13356 if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) {{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13357 return Ok{};{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13358 }{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13359
13360 QM_TRY_INSPECT(const auto& dirEntryKind,{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13361 GetDirEntryKind(*idbDirFile));{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13362
13363 switch (dirEntryKind) {{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13364 case nsIFileKind::ExistsAsDirectory:{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13365 break;{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13366
13367 case nsIFileKind::ExistsAsFile:{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13368 // Found a database.{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13369
13370 MOZ_ASSERT(!databasePaths.Contains(idbFilePath));{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13371
13372 databasePaths.AppendElement(std::move(idbFilePath));{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13373 break;{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13374
13375 case nsIFileKind::DoesNotExist:{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13376 // Ignore files that got removed externally while{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13377 // iterating.{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13378 break;{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13379 }{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13380
13381 return Ok{};{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13382 }));{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13383
13384 if (!databasePaths.IsEmpty()) {{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13385 mDirectoryInfos.EmplaceBack(persistenceType, metadata,{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13386 std::move(databasePaths));{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13387 }{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13388
13389 break;{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13390 }{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13391
13392 case nsIFileKind::DoesNotExist:{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13393 // Ignore files that got removed externally while iterating.{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13394 break;{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13395 }{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13396
13397 return Ok{};{auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
13398 })){auto tryResult1089 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, &idbDirName]( const
nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult
> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13301, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& dirEntryKind = tryResult1080
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } const auto& metadata = tryResult1081
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1082.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& idbDir = tryResult1082.inspect
();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13328, mozilla::dom::quota::Severity::Error); return tryResult1083
.propagateErr(); } const bool& exists = tryResult1083.inspect
();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13335, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const bool& isDirectory = tryResult1084
.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1085)::ok_type
>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1085
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13337, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1086 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13354, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1087
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13361, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const auto& dirEntryKind = tryResult1087
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13370; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1088)::ok_type>);
if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13382, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos
.EmplaceBack(persistenceType, metadata, std::move(databasePaths
)); } break; } case nsIFileKind::DoesNotExist: break; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13296) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1080 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1080.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1081 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult1081.inspect();; if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1082 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1082.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13325, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& idbDir = tryResult1082.inspect();; auto tryResult1083 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1083.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13328, mozilla::dom::quota::Severity::Error); return tryResult1083.propagateErr(); } const bool& exists = tryResult1083.inspect();; if (!exists) { return Ok{}; } auto tryResult1084 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13335, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const bool& isDirectory = tryResult1084.inspect();; {auto tryResult1085 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1085)::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1085.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13337, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1088 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1087.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13370); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13347) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1086 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1086.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13354, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } auto idbFilePath = tryResult1086.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1087 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1087.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13361, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const auto& dirEntryKind = tryResult1087.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13370); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13370; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13382, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13398, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
;
13399 }
13400
13401 mState = State::BeginDatabaseMaintenance;
13402
13403 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13404); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 13404; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
13404 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13404); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 13404; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13405
13406 return NS_OK;
13407}
13408
13409nsresult Maintenance::BeginDatabaseMaintenance() {
13410 AssertIsOnBackgroundThread();
13411 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13411); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginDatabaseMaintenance"
")"); do { *((volatile int*)__null) = 13411; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13412
13413 class MOZ_STACK_CLASS Helper final {
13414 public:
13415 static bool IsSafeToRunMaintenance(const nsAString& aDatabasePath) {
13416 if (gFactoryOps) {
13417 for (uint32_t index = gFactoryOps->Length(); index > 0; index--) {
13418 CheckedUnsafePtr<FactoryOp>& existingOp = (*gFactoryOps)[index - 1];
13419
13420 if (existingOp->DatabaseNameRef().isNothing()) {
13421 return false;
13422 }
13423
13424 if (!existingOp->DatabaseFilePathIsKnown()) {
13425 continue;
13426 }
13427
13428 if (existingOp->DatabaseFilePath() == aDatabasePath) {
13429 return false;
13430 }
13431 }
13432 }
13433
13434 if (gLiveDatabaseHashtable) {
13435 return std::all_of(
13436 gLiveDatabaseHashtable->Values().cbegin(),
13437 gLiveDatabaseHashtable->Values().cend(),
13438 [&aDatabasePath](const auto& liveDatabasesEntry) {
13439 const auto& liveDatabases = liveDatabasesEntry->mLiveDatabases;
13440 return std::all_of(liveDatabases.cbegin(), liveDatabases.cend(),
13441 [&aDatabasePath](const auto& database) {
13442 return database->FilePath() != aDatabasePath;
13443 });
13444 });
13445 }
13446
13447 return true;
13448 }
13449 };
13450
13451 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13451)
||
13452 IsAborted()) {
13453 return NS_ERROR_ABORT;
13454 }
13455
13456 RefPtr<nsThreadPool> threadPool;
13457
13458 for (DirectoryInfo& directoryInfo : mDirectoryInfos) {
13459 for (const nsAString& databasePath : *directoryInfo.mDatabasePaths) {
13460 if (Helper::IsSafeToRunMaintenance(databasePath)) {
13461 RefPtr<ClientDirectoryLock> directoryLock =
13462 mDirectoryLock->SpecializeForClient(directoryInfo.mPersistenceType,
13463 *directoryInfo.mOriginMetadata,
13464 Client::IDB);
13465 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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13465); AnnotateMozCrashReason("MOZ_ASSERT" "(" "directoryLock"
")"); do { *((volatile int*)__null) = 13465; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13466
13467 // No key needs to be passed here, because we skip encrypted databases
13468 // in DoDirectoryWork as long as they are only used in private browsing
13469 // mode.
13470 const auto databaseMaintenance = MakeRefPtr<DatabaseMaintenance>(
13471 this, std::move(directoryLock), directoryInfo.mPersistenceType,
13472 *directoryInfo.mOriginMetadata, databasePath, Nothing{});
13473
13474 if (!threadPool) {
13475 threadPool = mQuotaClient->GetOrCreateThreadPool();
13476 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13476); AnnotateMozCrashReason("MOZ_ASSERT" "(" "threadPool"
")"); do { *((volatile int*)__null) = 13476; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13477 }
13478
13479 // Perform database maintenance on a TaskQueue, as database connections
13480 // require a serial event target when being opened in order to allow
13481 // memory pressure notifications to clear caches (bug 1806751).
13482 const auto taskQueue = TaskQueue::Create(
13483 do_AddRef(threadPool), "IndexedDB Database Maintenance");
13484
13485 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13486); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 13486; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
13486 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13486); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 13486; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13487
13488 RegisterDatabaseMaintenance(databaseMaintenance);
13489 }
13490 }
13491 }
13492
13493 mDirectoryInfos.Clear();
13494
13495 DropDirectoryLock(mDirectoryLock);
13496
13497 if (mDatabaseMaintenances.Count()) {
13498 mState = State::WaitingForDatabaseMaintenancesToComplete;
13499 } else {
13500 mState = State::Finishing;
13501 Finish();
13502 }
13503
13504 return NS_OK;
13505}
13506
13507void Maintenance::Finish() {
13508 AssertIsOnBackgroundThread();
13509 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13509); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Finishing"
")"); do { *((volatile int*)__null) = 13509; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13510
13511 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
13512 mPromiseHolder.ResolveIfExists(true, __func__);
13513 } else {
13514 mPromiseHolder.RejectIfExists(mResultCode, __func__);
13515
13516 nsCString errorName;
13517 GetErrorName(mResultCode, errorName);
13518
13519 IDB_WARNING("Maintenance finished with error: %s", errorName.get())do { nsPrintfCString s("Maintenance finished with error: %s",
errorName.get()); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13519, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13519); } while (0)
;
13520 }
13521
13522 SafeDropDirectoryLock(mDirectoryLock);
13523
13524 // It can happen that we are only referenced by mCurrentMaintenance which is
13525 // cleared in NoteFinishedMaintenance()
13526 const RefPtr<Maintenance> kungFuDeathGrip = this;
13527
13528 mQuotaClient->NoteFinishedMaintenance(this);
13529
13530 mState = State::Complete;
13531}
13532
13533NS_IMETHODIMPnsresult
13534Maintenance::Run() {
13535 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13535); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState != State::Complete"
")"); do { *((volatile int*)__null) = 13535; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13536
13537 const auto handleError = [this](const nsresult rv) {
13538 if (mState != State::Finishing) {
13539 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
13540 mResultCode = rv;
13541 }
13542
13543 // Must set mState before dispatching otherwise we will race with the
13544 // owning thread.
13545 mState = State::Finishing;
13546
13547 if (IsOnBackgroundThread()) {
13548 Finish();
13549 } else {
13550 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13551); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 13551; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
13551 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13551); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 13551; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13552 }
13553 }
13554 };
13555
13556 switch (mState) {
13557 case State::Initial:
13558 QM_TRY(MOZ_TO_RESULT(Start()), NS_OK, handleError){auto tryResult1090 = (ToResult(Start())); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { auto
tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(Start())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13558, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ToResult(Start())", tryTempError, NS_OK); }}
;
13559 break;
13560
13561 case State::CreateIndexedDatabaseManager:
13562 QM_TRY(MOZ_TO_RESULT(CreateIndexedDatabaseManager()), NS_OK, handleError){auto tryResult1091 = (ToResult(CreateIndexedDatabaseManager(
))); static_assert(std::is_empty_v<typename decltype(tryResult1091
)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr
()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(CreateIndexedDatabaseManager())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13562, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ToResult(CreateIndexedDatabaseManager())", tryTempError, NS_OK
); }}
;
13563 break;
13564
13565 case State::IndexedDatabaseManagerOpen:
13566 QM_TRY(MOZ_TO_RESULT(OpenDirectory()), NS_OK, handleError){auto tryResult1092 = (ToResult(OpenDirectory())); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(OpenDirectory())", tryTempError,
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13566, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ToResult(OpenDirectory())", tryTempError, NS_OK); }}
;
13567 break;
13568
13569 case State::DirectoryWorkOpen:
13570 QM_TRY(MOZ_TO_RESULT(DirectoryWork()), NS_OK, handleError){auto tryResult1093 = (ToResult(DirectoryWork())); static_assert
(std::is_empty_v<typename decltype(tryResult1093)::ok_type
>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) {
auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DirectoryWork())", tryTempError,
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13570, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ToResult(DirectoryWork())", tryTempError, NS_OK); }}
;
13571 break;
13572
13573 case State::BeginDatabaseMaintenance:
13574 QM_TRY(MOZ_TO_RESULT(BeginDatabaseMaintenance()), NS_OK, handleError){auto tryResult1094 = (ToResult(BeginDatabaseMaintenance()));
static_assert(std::is_empty_v<typename decltype(tryResult1094
)::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr
()), 0))) { auto tryTempError = tryResult1094.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(BeginDatabaseMaintenance())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13574, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ToResult(BeginDatabaseMaintenance())", tryTempError, NS_OK
); }}
;
13575 break;
13576
13577 case State::Finishing:
13578 Finish();
13579 break;
13580
13581 default:
13582 MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13582); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")"
); do { *((volatile int*)__null) = 13582; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
13583 }
13584
13585 return NS_OK;
13586}
13587
13588void Maintenance::DirectoryLockAcquired(UniversalDirectoryLock* aLock) {
13589 AssertIsOnBackgroundThread();
13590 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13590); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { *((volatile int*)__null) = 13590; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13591 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13591); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock"
")"); do { *((volatile int*)__null) = 13591; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13592
13593 mDirectoryLock = std::exchange(mPendingDirectoryLock, nullptr);
13594
13595 nsresult rv = DirectoryOpen();
13596 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13596)
) {
13597 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
13598 mResultCode = rv;
13599 }
13600
13601 mState = State::Finishing;
13602 Finish();
13603
13604 return;
13605 }
13606}
13607
13608void Maintenance::DirectoryLockFailed() {
13609 AssertIsOnBackgroundThread();
13610 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13610); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { *((volatile int*)__null) = 13610; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13611 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13611); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock"
")"); do { *((volatile int*)__null) = 13611; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13612
13613 mPendingDirectoryLock = nullptr;
13614
13615 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
13616 mResultCode = NS_ERROR_FAILURE;
13617 }
13618
13619 mState = State::Finishing;
13620 Finish();
13621}
13622
13623void DatabaseMaintenance::Stringify(nsACString& aResult) const {
13624 AssertIsOnBackgroundThread();
13625
13626 aResult.AppendLiteral("Origin:");
13627 aResult.Append(AnonymizedOriginString(mOriginMetadata.mOrigin));
13628 aResult.Append(kQuotaGenericDelimiter);
13629
13630 aResult.AppendLiteral("PersistenceType:");
13631 aResult.Append(PersistenceTypeToString(mPersistenceType));
13632 aResult.Append(kQuotaGenericDelimiter);
13633
13634 aResult.AppendLiteral("Duration:");
13635 aResult.AppendInt((PR_Now() - mMaintenance->StartTime()) / PR_USEC_PER_MSEC1000L);
13636}
13637
13638nsresult DatabaseMaintenance::Abort() {
13639 AssertIsOnBackgroundThread();
13640
13641 // StopIdleMaintenance and AbortAllOperations may request abort independently
13642 if (!mAborted.compareExchange(false, true)) {
13643 return NS_OK;
13644 }
13645
13646 {
13647 auto shardStorageConnectionLocked = mSharedStorageConnection.Lock();
13648 if (nsCOMPtr<mozIStorageConnection> connection =
13649 *shardStorageConnectionLocked) {
13650 QM_TRY(MOZ_TO_RESULT(connection->Interrupt())){auto tryResult1095 = (ToResult(connection->Interrupt()));
static_assert(std::is_empty_v<typename decltype(tryResult1095
)::ok_type>); if ((__builtin_expect(!!(tryResult1095.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->Interrupt())"
, tryResult1095.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13650, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); }}
;
13651 }
13652 }
13653
13654 return NS_OK;
13655}
13656
13657void DatabaseMaintenance::PerformMaintenanceOnDatabase() {
13658 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 13658; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13659 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13659); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 13659; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13660 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13660); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaintenance"
")"); do { *((volatile int*)__null) = 13660; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13661 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13661); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaintenance->StartTime()"
")"); do { *((volatile int*)__null) = 13661; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13662 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13662); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock"
")"); do { *((volatile int*)__null) = 13662; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13663 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13663); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasePath.IsEmpty()"
")"); do { *((volatile int*)__null) = 13663; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13664 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata.mGroup.IsEmpty()"
")"); do { *((volatile int*)__null) = 13664; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13665 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13665); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata.mOrigin.IsEmpty()"
")"); do { *((volatile int*)__null) = 13665; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13666
13667 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13667)
) {
13668 return;
13669 }
13670
13671 const nsCOMPtr<nsIFile> databaseFile = GetFileForPath(mDatabasePath);
13672 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13672); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFile"
")"); do { *((volatile int*)__null) = 13672; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13673
13674 QM_TRY_UNWRAP(auto tryResult1096 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1096.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1096.unwrapErr(); mozilla::dom::quota
::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13678, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1096.unwrap();
13675 const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1096 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1096.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1096.unwrapErr(); mozilla::dom::quota
::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13678, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1096.unwrap();
13676 GetStorageConnection(*databaseFile, mDirectoryLockId,auto tryResult1096 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1096.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1096.unwrapErr(); mozilla::dom::quota
::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13678, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1096.unwrap();
13677 TelemetryIdForFile(databaseFile), mMaybeKey),auto tryResult1096 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1096.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1096.unwrapErr(); mozilla::dom::quota
::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13678, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1096.unwrap();
13678 QM_VOID)auto tryResult1096 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1096.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1096.unwrapErr(); mozilla::dom::quota
::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13678, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1096.unwrap();
;
13679
13680 auto autoClearConnection = MakeScopeExit([&]() {
13681 auto sharedStorageConnectionLocked = mSharedStorageConnection.Lock();
13682 sharedStorageConnectionLocked.ref() = nullptr;
13683 connection->Close();
13684 });
13685
13686 {
13687 auto sharedStorageConnectionLocked = mSharedStorageConnection.Lock();
13688 sharedStorageConnectionLocked.ref() = connection;
13689 }
13690
13691 auto databaseIsOk = false;
13692 QM_TRY(MOZ_TO_RESULT(CheckIntegrity(*connection, &databaseIsOk)), QM_VOID){auto tryResult1097 = (ToResult(CheckIntegrity(*connection, &
databaseIsOk))); static_assert(std::is_empty_v<typename decltype
(tryResult1097)::ok_type>); if ((__builtin_expect(!!(tryResult1097
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1097.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(CheckIntegrity(*connection, &databaseIsOk))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13692, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}
;
13693
13694 QM_TRY(OkIf(databaseIsOk), QM_VOID, [](auto result) {{auto tryResult1098 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1098)::ok_type>
); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { auto
tryTempError = tryResult1098.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13698, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"Database corruption detected!" ")"); do { *((volatile int*)
__null) = 13697; __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return ; }
}
13695 // XXX Handle this somehow! Probably need to clear all storage for the{auto tryResult1098 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1098)::ok_type>
); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { auto
tryTempError = tryResult1098.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13698, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"Database corruption detected!" ")"); do { *((volatile int*)
__null) = 13697; __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return ; }
}
13696 // origin. See Bug 1760612.{auto tryResult1098 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1098)::ok_type>
); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { auto
tryTempError = tryResult1098.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13698, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"Database corruption detected!" ")"); do { *((volatile int*)
__null) = 13697; __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return ; }
}
13697 MOZ_ASSERT(false, "Database corruption detected!");{auto tryResult1098 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1098)::ok_type>
); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { auto
tryTempError = tryResult1098.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13698, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"Database corruption detected!" ")"); do { *((volatile int*)
__null) = 13697; __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return ; }
}
13698 }){auto tryResult1098 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1098)::ok_type>
); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { auto
tryTempError = tryResult1098.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13698, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"Database corruption detected!" ")"); do { *((volatile int*)
__null) = 13697; __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return ; }
}
;
13699
13700 MaintenanceAction maintenanceAction;
13701 QM_TRY(MOZ_TO_RESULT(DetermineMaintenanceAction(*connection, databaseFile,{auto tryResult1099 = (ToResult(DetermineMaintenanceAction(*connection
, databaseFile, &maintenanceAction))); static_assert(std::
is_empty_v<typename decltype(tryResult1099)::ok_type>);
if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1099.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(DetermineMaintenanceAction(*connection, databaseFile, &maintenanceAction))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13703, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}
13702 &maintenanceAction)),{auto tryResult1099 = (ToResult(DetermineMaintenanceAction(*connection
, databaseFile, &maintenanceAction))); static_assert(std::
is_empty_v<typename decltype(tryResult1099)::ok_type>);
if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1099.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(DetermineMaintenanceAction(*connection, databaseFile, &maintenanceAction))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13703, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}
13703 QM_VOID){auto tryResult1099 = (ToResult(DetermineMaintenanceAction(*connection
, databaseFile, &maintenanceAction))); static_assert(std::
is_empty_v<typename decltype(tryResult1099)::ok_type>);
if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1099.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(DetermineMaintenanceAction(*connection, databaseFile, &maintenanceAction))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13703, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}
;
13704
13705 switch (maintenanceAction) {
13706 case MaintenanceAction::Nothing:
13707 break;
13708
13709 case MaintenanceAction::IncrementalVacuum:
13710 IncrementalVacuum(*connection);
13711 break;
13712
13713 case MaintenanceAction::FullVacuum:
13714 FullVacuum(*connection, databaseFile);
13715 break;
13716
13717 default:
13718 MOZ_CRASH("Unknown MaintenanceAction!")do { do { } while (false); MOZ_ReportCrash("" "Unknown MaintenanceAction!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13718); AnnotateMozCrashReason("MOZ_CRASH(" "Unknown MaintenanceAction!"
")"); do { *((volatile int*)__null) = 13718; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
13719 }
13720}
13721
13722nsresult DatabaseMaintenance::CheckIntegrity(mozIStorageConnection& aConnection,
13723 bool* aOk) {
13724 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13724); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 13724; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13725 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13725); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 13725; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13726 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13726); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOk" ")");
do { *((volatile int*)__null) = 13726; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13727
13728 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13728)
) {
13729 return NS_ERROR_ABORT;
13730 }
13731
13732 // First do a full integrity_check. Scope statements tightly here because
13733 // later operations require zero live statements.
13734 {
13735 QM_TRY_INSPECT(const auto& stmt,auto tryResult1100 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA integrity_check(1);"_ns)); if ((__builtin_expect(!!
(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA integrity_check(1);\"_ns)"
, tryResult1100.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13737, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); } const auto& stmt = tryResult1100.inspect
();
13736 CreateAndExecuteSingleStepStatement(auto tryResult1100 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA integrity_check(1);"_ns)); if ((__builtin_expect(!!
(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA integrity_check(1);\"_ns)"
, tryResult1100.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13737, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); } const auto& stmt = tryResult1100.inspect
();
13737 aConnection, "PRAGMA integrity_check(1);"_ns))auto tryResult1100 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA integrity_check(1);"_ns)); if ((__builtin_expect(!!
(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA integrity_check(1);\"_ns)"
, tryResult1100.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13737, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); } const auto& stmt = tryResult1100.inspect
();
;
13738
13739 QM_TRY_INSPECT(const auto& result, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1101 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetString), (*stmt), 0)); if ((__builtin_expect(
!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetString), (*stmt), 0)"
, tryResult1101.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13740, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& result = tryResult1101.inspect
();
13740 nsString, *stmt, GetString, 0))auto tryResult1101 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetString), (*stmt), 0)); if ((__builtin_expect(
!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetString), (*stmt), 0)"
, tryResult1101.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13740, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& result = tryResult1101.inspect
();
;
13741
13742 QM_TRY(OkIf(result.EqualsLiteral("ok")), NS_OK,{auto tryResult1102 = (OkIf(result.EqualsLiteral("ok"))); static_assert
(std::is_empty_v<typename decltype(tryResult1102)::ok_type
>); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) {
auto tryTempError = tryResult1102.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(result.EqualsLiteral(\"ok\"))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13743, mozilla::dom::quota::Severity::Error); [&aOk](const
auto) { *aOk = false; }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(result.EqualsLiteral(\"ok\"))"
, tryTempError, NS_OK); }}
13743 [&aOk](const auto) { *aOk = false; }){auto tryResult1102 = (OkIf(result.EqualsLiteral("ok"))); static_assert
(std::is_empty_v<typename decltype(tryResult1102)::ok_type
>); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) {
auto tryTempError = tryResult1102.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(result.EqualsLiteral(\"ok\"))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13743, mozilla::dom::quota::Severity::Error); [&aOk](const
auto) { *aOk = false; }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(result.EqualsLiteral(\"ok\"))"
, tryTempError, NS_OK); }}
;
13744 }
13745
13746 // Now enable and check for foreign key constraints.
13747 {
13748 QM_TRY_INSPECT(auto tryResult1105 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1103 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1103.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13753, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); } const auto& stmt = tryResult1103.inspect
();; {auto tryResult1104 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1104.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1104.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13755, mozilla::dom::quota::Severity::Error); } return tryResult1104
;}; }())); if ((__builtin_expect(!!(tryResult1105.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1103 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1103.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13753, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); } const auto& stmt = tryResult1103.inspect();; {auto tryResult1104 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1104.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13755, mozilla::dom::quota::Severity::Error); } return tryResult1104;}; }())"
, tryResult1105.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13756, mozilla::dom::quota::Severity::Error); return tryResult1105
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1105.inspect();
13749 const int32_t& foreignKeysWereEnabled,auto tryResult1105 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1103 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1103.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13753, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); } const auto& stmt = tryResult1103.inspect
();; {auto tryResult1104 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1104.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1104.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13755, mozilla::dom::quota::Severity::Error); } return tryResult1104
;}; }())); if ((__builtin_expect(!!(tryResult1105.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1103 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1103.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13753, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); } const auto& stmt = tryResult1103.inspect();; {auto tryResult1104 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1104.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13755, mozilla::dom::quota::Severity::Error); } return tryResult1104;}; }())"
, tryResult1105.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13756, mozilla::dom::quota::Severity::Error); return tryResult1105
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1105.inspect();
13750 ([&aConnection]() -> Result<int32_t, nsresult> {auto tryResult1105 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1103 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1103.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13753, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); } const auto& stmt = tryResult1103.inspect
();; {auto tryResult1104 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1104.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1104.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13755, mozilla::dom::quota::Severity::Error); } return tryResult1104
;}; }())); if ((__builtin_expect(!!(tryResult1105.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1103 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1103.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13753, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); } const auto& stmt = tryResult1103.inspect();; {auto tryResult1104 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1104.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13755, mozilla::dom::quota::Severity::Error); } return tryResult1104;}; }())"
, tryResult1105.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13756, mozilla::dom::quota::Severity::Error); return tryResult1105
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1105.inspect();
13751 QM_TRY_INSPECT(const auto& stmt,auto tryResult1105 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1103 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1103.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13753, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); } const auto& stmt = tryResult1103.inspect
();; {auto tryResult1104 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1104.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1104.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13755, mozilla::dom::quota::Severity::Error); } return tryResult1104
;}; }())); if ((__builtin_expect(!!(tryResult1105.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1103 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1103.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13753, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); } const auto& stmt = tryResult1103.inspect();; {auto tryResult1104 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1104.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13755, mozilla::dom::quota::Severity::Error); } return tryResult1104;}; }())"
, tryResult1105.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13756, mozilla::dom::quota::Severity::Error); return tryResult1105
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1105.inspect();
13752 CreateAndExecuteSingleStepStatement(auto tryResult1105 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1103 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1103.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13753, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); } const auto& stmt = tryResult1103.inspect
();; {auto tryResult1104 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1104.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1104.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13755, mozilla::dom::quota::Severity::Error); } return tryResult1104
;}; }())); if ((__builtin_expect(!!(tryResult1105.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1103 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1103.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13753, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); } const auto& stmt = tryResult1103.inspect();; {auto tryResult1104 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1104.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13755, mozilla::dom::quota::Severity::Error); } return tryResult1104;}; }())"
, tryResult1105.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13756, mozilla::dom::quota::Severity::Error); return tryResult1105
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1105.inspect();
13753 aConnection, "PRAGMA foreign_keys;"_ns));auto tryResult1105 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1103 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1103.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13753, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); } const auto& stmt = tryResult1103.inspect
();; {auto tryResult1104 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1104.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1104.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13755, mozilla::dom::quota::Severity::Error); } return tryResult1104
;}; }())); if ((__builtin_expect(!!(tryResult1105.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1103 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1103.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13753, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); } const auto& stmt = tryResult1103.inspect();; {auto tryResult1104 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1104.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13755, mozilla::dom::quota::Severity::Error); } return tryResult1104;}; }())"
, tryResult1105.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13756, mozilla::dom::quota::Severity::Error); return tryResult1105
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1105.inspect();
13754
13755 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0));auto tryResult1105 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1103 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1103.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13753, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); } const auto& stmt = tryResult1103.inspect
();; {auto tryResult1104 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1104.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1104.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13755, mozilla::dom::quota::Severity::Error); } return tryResult1104
;}; }())); if ((__builtin_expect(!!(tryResult1105.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1103 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1103.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13753, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); } const auto& stmt = tryResult1103.inspect();; {auto tryResult1104 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1104.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13755, mozilla::dom::quota::Severity::Error); } return tryResult1104;}; }())"
, tryResult1105.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13756, mozilla::dom::quota::Severity::Error); return tryResult1105
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1105.inspect();
13756 }()))auto tryResult1105 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1103 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1103.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13753, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); } const auto& stmt = tryResult1103.inspect
();; {auto tryResult1104 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1104.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1104.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13755, mozilla::dom::quota::Severity::Error); } return tryResult1104
;}; }())); if ((__builtin_expect(!!(tryResult1105.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1103 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1103.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13753, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); } const auto& stmt = tryResult1103.inspect();; {auto tryResult1104 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1104.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13755, mozilla::dom::quota::Severity::Error); } return tryResult1104;}; }())"
, tryResult1105.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13756, mozilla::dom::quota::Severity::Error); return tryResult1105
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1105.inspect();
;
13757
13758 if (!foreignKeysWereEnabled) {
13759 QM_TRY(MOZ_TO_RESULT({auto tryResult1106 = (ToResult(aConnection.ExecuteSimpleSQL(
"PRAGMA foreign_keys = ON;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1106)::ok_type>); if ((__builtin_expect
(!!(tryResult1106.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = ON;\"_ns))"
, tryResult1106.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13760, mozilla::dom::quota::Severity::Error); return tryResult1106
.propagateErr(); }}
13760 aConnection.ExecuteSimpleSQL("PRAGMA foreign_keys = ON;"_ns))){auto tryResult1106 = (ToResult(aConnection.ExecuteSimpleSQL(
"PRAGMA foreign_keys = ON;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1106)::ok_type>); if ((__builtin_expect
(!!(tryResult1106.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = ON;\"_ns))"
, tryResult1106.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13760, mozilla::dom::quota::Severity::Error); return tryResult1106
.propagateErr(); }}
;
13761 }
13762
13763 QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult1107 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)"
, tryResult1107.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13766, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const bool& foreignKeyError = tryResult1107
.inspect();
13764 CreateAndExecuteSingleStepStatement<auto tryResult1107 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)"
, tryResult1107.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13766, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const bool& foreignKeyError = tryResult1107
.inspect();
13765 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1107 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)"
, tryResult1107.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13766, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const bool& foreignKeyError = tryResult1107
.inspect();
13766 aConnection, "PRAGMA foreign_key_check;"_ns))auto tryResult1107 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)"
, tryResult1107.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13766, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const bool& foreignKeyError = tryResult1107
.inspect();
;
13767
13768 if (!foreignKeysWereEnabled) {
13769 QM_TRY(MOZ_TO_RESULT({auto tryResult1108 = (ToResult(aConnection.ExecuteSimpleSQL(
"PRAGMA foreign_keys = OFF;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1108)::ok_type>); if ((__builtin_expect
(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
, tryResult1108.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13770, mozilla::dom::quota::Severity::Error); return tryResult1108
.propagateErr(); }}
13770 aConnection.ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns))){auto tryResult1108 = (ToResult(aConnection.ExecuteSimpleSQL(
"PRAGMA foreign_keys = OFF;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1108)::ok_type>); if ((__builtin_expect
(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
, tryResult1108.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13770, mozilla::dom::quota::Severity::Error); return tryResult1108
.propagateErr(); }}
;
13771 }
13772
13773 if (foreignKeyError) {
13774 *aOk = false;
13775 return NS_OK;
13776 }
13777 }
13778
13779 *aOk = true;
13780 return NS_OK;
13781}
13782
13783nsresult DatabaseMaintenance::DetermineMaintenanceAction(
13784 mozIStorageConnection& aConnection, nsIFile* aDatabaseFile,
13785 MaintenanceAction* aMaintenanceAction) {
13786 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13786); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 13786; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13787 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13787); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 13787; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13788 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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13788); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseFile"
")"); do { *((volatile int*)__null) = 13788; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13789 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13789); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMaintenanceAction"
")"); do { *((volatile int*)__null) = 13789; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13790
13791 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13791)
) {
13792 return NS_ERROR_ABORT;
13793 }
13794
13795 QM_TRY_INSPECT(const int32_t& schemaVersion,auto tryResult1109 = (::mozilla::ToResultInvokeMember( (aConnection
), &::mozilla::detail::DerefedType<decltype(aConnection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult1109
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aConnection), &::mozilla::detail::DerefedType<decltype(aConnection)>::GetSchemaVersion)"
, tryResult1109.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13796, mozilla::dom::quota::Severity::Error); return tryResult1109
.propagateErr(); } const int32_t& schemaVersion = tryResult1109
.inspect();
13796 MOZ_TO_RESULT_INVOKE_MEMBER(aConnection, GetSchemaVersion))auto tryResult1109 = (::mozilla::ToResultInvokeMember( (aConnection
), &::mozilla::detail::DerefedType<decltype(aConnection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult1109
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aConnection), &::mozilla::detail::DerefedType<decltype(aConnection)>::GetSchemaVersion)"
, tryResult1109.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13796, mozilla::dom::quota::Severity::Error); return tryResult1109
.propagateErr(); } const int32_t& schemaVersion = tryResult1109
.inspect();
;
13797
13798 // Don't do anything if the schema version is less than 18; before that
13799 // version no databases had |auto_vacuum == INCREMENTAL| set and we didn't
13800 // track the values needed for the heuristics below.
13801 if (schemaVersion < MakeSchemaVersion(18, 0)) {
13802 *aMaintenanceAction = MaintenanceAction::Nothing;
13803 return NS_OK;
13804 }
13805
13806 // This method shouldn't make any permanent changes to the database, so make
13807 // sure everything gets rolled back when we leave.
13808 mozStorageTransaction transaction(&aConnection,
13809 /* aCommitOnComplete */ false);
13810
13811 QM_TRY(MOZ_TO_RESULT(transaction.Start())){auto tryResult1110 = (ToResult(transaction.Start())); static_assert
(std::is_empty_v<typename decltype(tryResult1110)::ok_type
>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(transaction.Start())"
, tryResult1110.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13811, mozilla::dom::quota::Severity::Error); return tryResult1110
.propagateErr(); }}
13812
13813 // Check to see when we last vacuumed this database.
13814 QM_TRY_INSPECT(const auto& stmt,auto tryResult1111 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1111.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13818, mozilla::dom::quota::Severity::Error); return tryResult1111
.propagateErr(); } const auto& stmt = tryResult1111.inspect
();
13815 CreateAndExecuteSingleStepStatement(auto tryResult1111 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1111.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13818, mozilla::dom::quota::Severity::Error); return tryResult1111
.propagateErr(); } const auto& stmt = tryResult1111.inspect
();
13816 aConnection,auto tryResult1111 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1111.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13818, mozilla::dom::quota::Severity::Error); return tryResult1111
.propagateErr(); } const auto& stmt = tryResult1111.inspect
();
13817 "SELECT last_vacuum_time, last_vacuum_size "auto tryResult1111 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1111.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13818, mozilla::dom::quota::Severity::Error); return tryResult1111
.propagateErr(); } const auto& stmt = tryResult1111.inspect
();
13818 "FROM database;"_ns))auto tryResult1111 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1111.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13818, mozilla::dom::quota::Severity::Error); return tryResult1111
.propagateErr(); } const auto& stmt = tryResult1111.inspect
();
;
13819
13820 QM_TRY_INSPECT(const PRTime& lastVacuumTime,auto tryResult1112 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1112.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64, 0)"
, tryResult1112.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13821, mozilla::dom::quota::Severity::Error); return tryResult1112
.propagateErr(); } const PRTime& lastVacuumTime = tryResult1112
.inspect();
13821 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt64, 0))auto tryResult1112 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1112.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64, 0)"
, tryResult1112.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13821, mozilla::dom::quota::Severity::Error); return tryResult1112
.propagateErr(); } const PRTime& lastVacuumTime = tryResult1112
.inspect();
;
13822
13823 QM_TRY_INSPECT(const int64_t& lastVacuumSize,auto tryResult1113 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1113.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64, 1)"
, tryResult1113.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13824, mozilla::dom::quota::Severity::Error); return tryResult1113
.propagateErr(); } const int64_t& lastVacuumSize = tryResult1113
.inspect();
13824 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt64, 1))auto tryResult1113 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1113.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64, 1)"
, tryResult1113.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13824, mozilla::dom::quota::Severity::Error); return tryResult1113
.propagateErr(); } const int64_t& lastVacuumSize = tryResult1113
.inspect();
;
13825
13826 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13828); MOZ_PretendNoReturn(); } } while (0)
13827 "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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13828); MOZ_PretendNoReturn(); } } while (0)
13828 "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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13828); MOZ_PretendNoReturn(); } } while (0)
;
13829
13830 const PRTime startTime = mMaintenance->StartTime();
13831
13832 // This shouldn't really be possible...
13833 if (NS_WARN_IF(startTime <= lastVacuumTime)NS_warn_if_impl(startTime <= lastVacuumTime, "startTime <= lastVacuumTime"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13833)
) {
13834 *aMaintenanceAction = MaintenanceAction::Nothing;
13835 return NS_OK;
13836 }
13837
13838 if (startTime - lastVacuumTime < kMinVacuumAge) {
13839 *aMaintenanceAction = MaintenanceAction::IncrementalVacuum;
13840 return NS_OK;
13841 }
13842
13843 // It has been more than a week since the database was vacuumed, so gather
13844 // statistics on its usage to see if vacuuming is worthwhile.
13845
13846 // Create a temporary copy of the dbstat table to speed up the queries that
13847 // come later.
13848 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL({auto tryResult1114 = (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(tryResult1114
)::ok_type>); if ((__builtin_expect(!!(tryResult1114.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))"
, tryResult1114.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13850, mozilla::dom::quota::Severity::Error); return tryResult1114
.propagateErr(); }}
13849 "CREATE VIRTUAL TABLE __stats__ USING dbstat;"{auto tryResult1114 = (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(tryResult1114
)::ok_type>); if ((__builtin_expect(!!(tryResult1114.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))"
, tryResult1114.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13850, mozilla::dom::quota::Severity::Error); return tryResult1114
.propagateErr(); }}
13850 "CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;"_ns))){auto tryResult1114 = (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(tryResult1114
)::ok_type>); if ((__builtin_expect(!!(tryResult1114.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))"
, tryResult1114.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13850, mozilla::dom::quota::Severity::Error); return tryResult1114
.propagateErr(); }}
;
13851
13852 { // Calculate the percentage of the database pages that are not in
13853 // contiguous order.
13854 QM_TRY_INSPECT(auto tryResult1115 = (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(!!(tryResult1115.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)"
, tryResult1115.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13862, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); } const auto& stmt = tryResult1115.inspect
();
13855 const auto& stmt,auto tryResult1115 = (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(!!(tryResult1115.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)"
, tryResult1115.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13862, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); } const auto& stmt = tryResult1115.inspect
();
13856 CreateAndExecuteSingleStepStatement(auto tryResult1115 = (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(!!(tryResult1115.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)"
, tryResult1115.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13862, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); } const auto& stmt = tryResult1115.inspect
();
13857 aConnection,auto tryResult1115 = (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(!!(tryResult1115.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)"
, tryResult1115.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13862, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); } const auto& stmt = tryResult1115.inspect
();
13858 "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "auto tryResult1115 = (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(!!(tryResult1115.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)"
, tryResult1115.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13862, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); } const auto& stmt = tryResult1115.inspect
();
13859 "COUNT(*) "auto tryResult1115 = (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(!!(tryResult1115.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)"
, tryResult1115.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13862, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); } const auto& stmt = tryResult1115.inspect
();
13860 "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "auto tryResult1115 = (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(!!(tryResult1115.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)"
, tryResult1115.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13862, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); } const auto& stmt = tryResult1115.inspect
();
13861 "WHERE __ts1__.name = __ts2__.name "auto tryResult1115 = (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(!!(tryResult1115.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)"
, tryResult1115.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13862, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); } const auto& stmt = tryResult1115.inspect
();
13862 "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns))auto tryResult1115 = (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(!!(tryResult1115.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)"
, tryResult1115.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13862, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); } const auto& stmt = tryResult1115.inspect
();
;
13863
13864 QM_TRY_INSPECT(const int32_t& percentUnordered,auto tryResult1116 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1116.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1116.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13865, mozilla::dom::quota::Severity::Error); return tryResult1116
.propagateErr(); } const int32_t& percentUnordered = tryResult1116
.inspect();
13865 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult1116 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1116.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1116.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13865, mozilla::dom::quota::Severity::Error); return tryResult1116
.propagateErr(); } const int32_t& percentUnordered = tryResult1116
.inspect();
;
13866
13867 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13867); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnordered >= 0"
")"); do { *((volatile int*)__null) = 13867; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13868 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13868); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnordered <= 100"
")"); do { *((volatile int*)__null) = 13868; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13869
13870 if (percentUnordered >= kPercentUnorderedThreshold) {
13871 *aMaintenanceAction = MaintenanceAction::FullVacuum;
13872 return NS_OK;
13873 }
13874 }
13875
13876 // Don't try a full vacuum if the file hasn't grown by 10%.
13877 QM_TRY_INSPECT(const int64_t& currentFileSize,auto tryResult1117 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1117.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1117.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13878, mozilla::dom::quota::Severity::Error); return tryResult1117
.propagateErr(); } const int64_t& currentFileSize = tryResult1117
.inspect();
13878 MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, GetFileSize))auto tryResult1117 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1117.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1117.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13878, mozilla::dom::quota::Severity::Error); return tryResult1117
.propagateErr(); } const int64_t& currentFileSize = tryResult1117
.inspect();
;
13879
13880 if (currentFileSize <= lastVacuumSize ||
13881 (((currentFileSize - lastVacuumSize) * 100 / currentFileSize) <
13882 kPercentFileSizeGrowthThreshold)) {
13883 *aMaintenanceAction = MaintenanceAction::IncrementalVacuum;
13884 return NS_OK;
13885 }
13886
13887 { // See if there are any free pages that we can reclaim.
13888 QM_TRY_INSPECT(const auto& stmt,auto tryResult1118 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult1118
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)"
, tryResult1118.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13890, mozilla::dom::quota::Severity::Error); return tryResult1118
.propagateErr(); } const auto& stmt = tryResult1118.inspect
();
13889 CreateAndExecuteSingleStepStatement(auto tryResult1118 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult1118
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)"
, tryResult1118.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13890, mozilla::dom::quota::Severity::Error); return tryResult1118
.propagateErr(); } const auto& stmt = tryResult1118.inspect
();
13890 aConnection, "PRAGMA freelist_count;"_ns))auto tryResult1118 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult1118
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)"
, tryResult1118.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13890, mozilla::dom::quota::Severity::Error); return tryResult1118
.propagateErr(); } const auto& stmt = tryResult1118.inspect
();
;
13891
13892 QM_TRY_INSPECT(const int32_t& freelistCount,auto tryResult1119 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1119.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1119.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13893, mozilla::dom::quota::Severity::Error); return tryResult1119
.propagateErr(); } const int32_t& freelistCount = tryResult1119
.inspect();
13893 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult1119 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1119.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1119.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13893, mozilla::dom::quota::Severity::Error); return tryResult1119
.propagateErr(); } const int32_t& freelistCount = tryResult1119
.inspect();
;
13894
13895 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13895); AnnotateMozCrashReason("MOZ_ASSERT" "(" "freelistCount >= 0"
")"); do { *((volatile int*)__null) = 13895; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13896
13897 // If we have too many free pages then we should try an incremental
13898 // vacuum. If that causes too much fragmentation then we'll try a full
13899 // vacuum later.
13900 if (freelistCount > kMaxFreelistThreshold) {
13901 *aMaintenanceAction = MaintenanceAction::IncrementalVacuum;
13902 return NS_OK;
13903 }
13904 }
13905
13906 { // Calculate the percentage of unused bytes on pages in the database.
13907 QM_TRY_INSPECT(auto tryResult1120 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1120.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13911, mozilla::dom::quota::Severity::Error); return tryResult1120
.propagateErr(); } const auto& stmt = tryResult1120.inspect
();
13908 const auto& stmt,auto tryResult1120 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1120.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13911, mozilla::dom::quota::Severity::Error); return tryResult1120
.propagateErr(); } const auto& stmt = tryResult1120.inspect
();
13909 CreateAndExecuteSingleStepStatement(auto tryResult1120 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1120.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13911, mozilla::dom::quota::Severity::Error); return tryResult1120
.propagateErr(); } const auto& stmt = tryResult1120.inspect
();
13910 aConnection,auto tryResult1120 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1120.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13911, mozilla::dom::quota::Severity::Error); return tryResult1120
.propagateErr(); } const auto& stmt = tryResult1120.inspect
();
13911 "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns))auto tryResult1120 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1120.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13911, mozilla::dom::quota::Severity::Error); return tryResult1120
.propagateErr(); } const auto& stmt = tryResult1120.inspect
();
;
13912
13913 QM_TRY_INSPECT(const int32_t& percentUnused,auto tryResult1121 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1121.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1121.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13914, mozilla::dom::quota::Severity::Error); return tryResult1121
.propagateErr(); } const int32_t& percentUnused = tryResult1121
.inspect();
13914 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult1121 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1121.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1121.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13914, mozilla::dom::quota::Severity::Error); return tryResult1121
.propagateErr(); } const int32_t& percentUnused = tryResult1121
.inspect();
;
13915
13916 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnused >= 0"
")"); do { *((volatile int*)__null) = 13916; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13917 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13917); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnused <= 100"
")"); do { *((volatile int*)__null) = 13917; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13918
13919 *aMaintenanceAction = percentUnused >= kPercentUnusedThreshold
13920 ? MaintenanceAction::FullVacuum
13921 : MaintenanceAction::IncrementalVacuum;
13922 }
13923
13924 return NS_OK;
13925}
13926
13927void DatabaseMaintenance::IncrementalVacuum(
13928 mozIStorageConnection& aConnection) {
13929 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13929); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 13929; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13930 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13930); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 13930; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13931
13932 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13932)
) {
13933 return;
13934 }
13935
13936 nsresult rv = aConnection.ExecuteSimpleSQL("PRAGMA incremental_vacuum;"_ns);
13937 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13937)
) {
13938 return;
13939 }
13940}
13941
13942void DatabaseMaintenance::FullVacuum(mozIStorageConnection& aConnection,
13943 nsIFile* aDatabaseFile) {
13944 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13944); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 13944; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13945 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13945); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 13945; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13946 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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13946); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseFile"
")"); do { *((volatile int*)__null) = 13946; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13947
13948 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13948)
) {
13949 return;
13950 }
13951
13952 QM_WARNONLY_TRY(([&]() -> Result<Ok, nsresult> {{auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
13953 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL("VACUUM;"_ns)));{auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
13954
13955 const PRTime vacuumTime = PR_Now();{auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
13956 MOZ_ASSERT(vacuumTime > 0);{auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
13957
13958 QM_TRY_INSPECT(const int64_t& fileSize,{auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
13959 MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, GetFileSize));{auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
13960
13961 MOZ_ASSERT(fileSize > 0);{auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
13962
13963 // The parameter names are not used, parameters are bound by index only{auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
13964 // locally in the same function.{auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
13965 QM_TRY_INSPECT(const auto& stmt, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
13966 nsCOMPtr<mozIStorageStatement>,{auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
13967 aConnection, CreateStatement,{auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
13968 "UPDATE database "{auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
13969 "SET last_vacuum_time = :time"{auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
13970 ", last_vacuum_size = :size;"_ns));{auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
13971
13972 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByIndex(0, vacuumTime)));{auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
13973
13974 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByIndex(1, fileSize)));{auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
13975
13976 QM_TRY(MOZ_TO_RESULT(stmt->Execute()));{auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
13977 return Ok{};{auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
13978 }())){auto tryResult1128 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13953, mozilla::dom::quota::Severity::Error); return tryResult1122
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13959, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int64_t& fileSize = tryResult1123
.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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13961; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1124 = (::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(!!(tryResult1124.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)"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13970, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13972, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect
(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1126
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13974, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13976, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1122 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1122)::ok_type>); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1122.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13953, mozilla::dom::quota::Severity::Error); return tryResult1122.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13956); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13956; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1123 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1123.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13959, mozilla::dom::quota::Severity::Error); return tryResult1123.propagateErr(); } const int64_t& fileSize = tryResult1123.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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13961; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1124 = (::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(!!(tryResult1124.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)\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13970, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& stmt = tryResult1124.inspect();; {auto tryResult1125 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1125)::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13972, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); }}; {auto tryResult1126 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13974, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; {auto tryResult1127 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13976, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; return Ok{}; }())"
, tryResult1128.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Warning); }}
;
13979}
13980
13981void DatabaseMaintenance::RunOnOwningThread() {
13982 AssertIsOnBackgroundThread();
13983
13984 DropDirectoryLock(mDirectoryLock);
13985
13986 if (mCompleteCallback) {
13987 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()))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13987); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(mCompleteCallback.forget()))"
")"); do { *((volatile int*)__null) = 13987; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13988 }
13989
13990 mMaintenance->UnregisterDatabaseMaintenance(this);
13991}
13992
13993void DatabaseMaintenance::RunOnConnectionThread() {
13994 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13994); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 13994; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13995 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13995); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 13995; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13996
13997 PerformMaintenanceOnDatabase();
13998
13999 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14000); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 14000; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
14000 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14000); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 14000; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
14001}
14002
14003NS_IMETHODIMPnsresult
14004DatabaseMaintenance::Run() {
14005 if (IsOnBackgroundThread()) {
14006 RunOnOwningThread();
14007 } else {
14008 RunOnConnectionThread();
14009 }
14010
14011 return NS_OK;
14012}
14013
14014/*******************************************************************************
14015 * Local class implementations
14016 ******************************************************************************/
14017
14018// static
14019nsAutoCString DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
14020 const Maybe<SerializedKeyRange>& aOptionalKeyRange,
14021 const nsACString& aKeyColumnName) {
14022 return aOptionalKeyRange.isSome()
14023 ? GetBindingClauseForKeyRange(aOptionalKeyRange.ref(),
14024 aKeyColumnName)
14025 : nsAutoCString{};
14026}
14027
14028// static
14029nsAutoCString DatabaseOperationBase::GetBindingClauseForKeyRange(
14030 const SerializedKeyRange& aKeyRange, const nsACString& aKeyColumnName) {
14031 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14031); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 14031; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14032 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14032); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aKeyColumnName.IsEmpty()"
")"); do { *((volatile int*)__null) = 14032; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14033
14034 constexpr auto andStr = " AND "_ns;
14035 constexpr auto spacecolon = " :"_ns;
14036
14037 nsAutoCString result;
14038 if (aKeyRange.isOnly()) {
14039 // Both keys equal.
14040 result =
14041 andStr + aKeyColumnName + " ="_ns + spacecolon + kStmtParamNameLowerKey;
14042 } else {
14043 if (!aKeyRange.lower().IsUnset()) {
14044 // Lower key is set.
14045 result.Append(andStr + aKeyColumnName);
14046 result.AppendLiteral(" >");
14047 if (!aKeyRange.lowerOpen()) {
14048 result.AppendLiteral("=");
14049 }
14050 result.Append(spacecolon + kStmtParamNameLowerKey);
14051 }
14052
14053 if (!aKeyRange.upper().IsUnset()) {
14054 // Upper key is set.
14055 result.Append(andStr + aKeyColumnName);
14056 result.AppendLiteral(" <");
14057 if (!aKeyRange.upperOpen()) {
14058 result.AppendLiteral("=");
14059 }
14060 result.Append(spacecolon + kStmtParamNameUpperKey);
14061 }
14062 }
14063
14064 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14064); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!result.IsEmpty()"
")"); do { *((volatile int*)__null) = 14064; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14065
14066 return result;
14067}
14068
14069// static
14070uint64_t DatabaseOperationBase::ReinterpretDoubleAsUInt64(double aDouble) {
14071 // This is a duplicate of the js engine's byte munging in StructuredClone.cpp
14072 return BitwiseCast<uint64_t>(aDouble);
14073}
14074
14075// static
14076template <typename KeyTransformation>
14077nsresult DatabaseOperationBase::MaybeBindKeyToStatement(
14078 const Key& aKey, mozIStorageStatement* const aStatement,
14079 const nsACString& aParameterName,
14080 const KeyTransformation& aKeyTransformation) {
14081 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14081); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 14081; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14082 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14082); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aStatement"
")"); do { *((volatile int*)__null) = 14082; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14083
14084 if (!aKey.IsUnset()) {
14085 // XXX This case distinction could be avoided if QM_TRY_INSPECT would also
14086 // work with a function not returning a Result<V, E> but simply a V (which
14087 // is const Key& here) and then assuming it is always a success. Or the
14088 // transformation could be changed to return Result<const V&, void> but I
14089 // don't think that Result supports that at the moment.
14090 if constexpr (std::is_reference_v<
14091 std::invoke_result_t<KeyTransformation, Key>>) {
14092 QM_TRY(MOZ_TO_RESULT(aKeyTransformation(aKey).BindToStatement({auto tryResult1129 = (ToResult(aKeyTransformation(aKey).BindToStatement
( aStatement, aParameterName))); static_assert(std::is_empty_v
<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect
(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aKeyTransformation(aKey).BindToStatement( aStatement, aParameterName))"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14093, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}
14093 aStatement, aParameterName))){auto tryResult1129 = (ToResult(aKeyTransformation(aKey).BindToStatement
( aStatement, aParameterName))); static_assert(std::is_empty_v
<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect
(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aKeyTransformation(aKey).BindToStatement( aStatement, aParameterName))"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14093, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}
;
14094 } else {
14095 QM_TRY_INSPECT(const auto& transformedKey, aKeyTransformation(aKey))auto tryResult1130 = (aKeyTransformation(aKey)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("aKeyTransformation(aKey)", tryResult1130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14095, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& transformedKey = tryResult1130
.inspect();
;
14096 QM_TRY(MOZ_TO_RESULT({auto tryResult1131 = (ToResult(transformedKey.BindToStatement
(aStatement, aParameterName))); static_assert(std::is_empty_v
<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect
(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(transformedKey.BindToStatement(aStatement, aParameterName))"
, tryResult1131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14097, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
14097 transformedKey.BindToStatement(aStatement, aParameterName))){auto tryResult1131 = (ToResult(transformedKey.BindToStatement
(aStatement, aParameterName))); static_assert(std::is_empty_v
<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect
(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(transformedKey.BindToStatement(aStatement, aParameterName))"
, tryResult1131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14097, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
;
14098 }
14099 }
14100
14101 return NS_OK;
14102}
14103
14104// static
14105template <typename KeyTransformation>
14106nsresult DatabaseOperationBase::BindTransformedKeyRangeToStatement(
14107 const SerializedKeyRange& aKeyRange, mozIStorageStatement* const aStatement,
14108 const KeyTransformation& aKeyTransformation) {
14109 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14109); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 14109; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14110 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14110); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aStatement"
")"); do { *((volatile int*)__null) = 14110; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14111
14112 QM_TRY(MOZ_TO_RESULT(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement,{auto tryResult1132 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1132
)::ok_type>); if ((__builtin_expect(!!(tryResult1132.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))"
, tryResult1132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14114, mozilla::dom::quota::Severity::Error); return tryResult1132
.propagateErr(); }}
14113 kStmtParamNameLowerKey,{auto tryResult1132 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1132
)::ok_type>); if ((__builtin_expect(!!(tryResult1132.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))"
, tryResult1132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14114, mozilla::dom::quota::Severity::Error); return tryResult1132
.propagateErr(); }}
14114 aKeyTransformation))){auto tryResult1132 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1132
)::ok_type>); if ((__builtin_expect(!!(tryResult1132.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))"
, tryResult1132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14114, mozilla::dom::quota::Severity::Error); return tryResult1132
.propagateErr(); }}
;
14115
14116 if (aKeyRange.isOnly()) {
14117 return NS_OK;
14118 }
14119
14120 QM_TRY(MOZ_TO_RESULT(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement,{auto tryResult1133 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1133
)::ok_type>); if ((__builtin_expect(!!(tryResult1133.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))"
, tryResult1133.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14122, mozilla::dom::quota::Severity::Error); return tryResult1133
.propagateErr(); }}
14121 kStmtParamNameUpperKey,{auto tryResult1133 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1133
)::ok_type>); if ((__builtin_expect(!!(tryResult1133.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))"
, tryResult1133.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14122, mozilla::dom::quota::Severity::Error); return tryResult1133
.propagateErr(); }}
14122 aKeyTransformation))){auto tryResult1133 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1133
)::ok_type>); if ((__builtin_expect(!!(tryResult1133.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))"
, tryResult1133.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14122, mozilla::dom::quota::Severity::Error); return tryResult1133
.propagateErr(); }}
;
14123
14124 return NS_OK;
14125}
14126
14127// static
14128nsresult DatabaseOperationBase::BindKeyRangeToStatement(
14129 const SerializedKeyRange& aKeyRange,
14130 mozIStorageStatement* const aStatement) {
14131 return BindTransformedKeyRangeToStatement(
14132 aKeyRange, aStatement, [](const Key& key) -> const auto& { return key; });
14133}
14134
14135// static
14136nsresult DatabaseOperationBase::BindKeyRangeToStatement(
14137 const SerializedKeyRange& aKeyRange, mozIStorageStatement* const aStatement,
14138 const nsCString& aLocale) {
14139 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14139); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aLocale.IsEmpty()"
")"); do { *((volatile int*)__null) = 14139; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14140
14141 return BindTransformedKeyRangeToStatement(
14142 aKeyRange, aStatement,
14143 [&aLocale](const Key& key) { return key.ToLocaleAwareKey(aLocale); });
14144}
14145
14146// static
14147void CommonOpenOpHelperBase::AppendConditionClause(
14148 const nsACString& aColumnName, const nsACString& aStatementParameterName,
14149 bool aLessThan, bool aEquals, nsCString& aResult) {
14150 aResult += " AND "_ns + aColumnName + " "_ns;
14151
14152 if (aLessThan) {
14153 aResult.Append('<');
14154 } else {
14155 aResult.Append('>');
14156 }
14157
14158 if (aEquals) {
14159 aResult.Append('=');
14160 }
14161
14162 aResult += " :"_ns + aStatementParameterName;
14163}
14164
14165// static
14166Result<IndexDataValuesAutoArray, nsresult>
14167DatabaseOperationBase::IndexDataValuesFromUpdateInfos(
14168 const nsTArray<IndexUpdateInfo>& aUpdateInfos,
14169 const UniqueIndexTable& aUniqueIndexTable) {
14170 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14170); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aUniqueIndexTable.Count()"
")"); do { *((volatile int*)__null) = 14170; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
14171
14172 AUTO_PROFILER_LABEL("DatabaseOperationBase::IndexDataValuesFromUpdateInfos",mozilla::AutoProfilerLabel raiiObject14173( "DatabaseOperationBase::IndexDataValuesFromUpdateInfos"
, nullptr, JS::ProfilingCategoryPair::DOM)
14173 DOM)mozilla::AutoProfilerLabel raiiObject14173( "DatabaseOperationBase::IndexDataValuesFromUpdateInfos"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14174
14175 // XXX We could use TransformIntoNewArray here if it allowed to specify that
14176 // an AutoArray should be created.
14177 IndexDataValuesAutoArray indexValues;
14178
14179 if (NS_WARN_IF(!indexValues.SetCapacity(aUpdateInfos.Length(), fallible))NS_warn_if_impl(!indexValues.SetCapacity(aUpdateInfos.Length(
), fallible), "!indexValues.SetCapacity(aUpdateInfos.Length(), fallible)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14179)
) {
14180 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14180, "UnknownErr")
;
14181 return Err(NS_ERROR_OUT_OF_MEMORY);
14182 }
14183
14184 std::transform(aUpdateInfos.cbegin(), aUpdateInfos.cend(),
14185 MakeBackInserter(indexValues),
14186 [&aUniqueIndexTable](const IndexUpdateInfo& updateInfo) {
14187 const IndexOrObjectStoreId& indexId = updateInfo.indexId();
14188
14189 bool unique = false;
14190 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)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14190); AnnotateMozCrashReason("MOZ_CRASH(" "aUniqueIndexTable.Get(indexId, &unique)"
")"); do { *((volatile int*)__null) = 14190; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
14191
14192 return IndexDataValue{indexId, unique, updateInfo.value(),
14193 updateInfo.localizedValue()};
14194 });
14195 indexValues.Sort();
14196
14197 return indexValues;
14198}
14199
14200// static
14201nsresult DatabaseOperationBase::InsertIndexTableRows(
14202 DatabaseConnection* aConnection, const IndexOrObjectStoreId aObjectStoreId,
14203 const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues) {
14204 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14204); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 14204; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14205 aConnection->AssertIsOnConnectionThread();
14206 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14206); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()"
")"); do { *((volatile int*)__null) = 14206; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14207
14208 AUTO_PROFILER_LABEL("DatabaseOperationBase::InsertIndexTableRows", DOM)mozilla::AutoProfilerLabel raiiObject14208( "DatabaseOperationBase::InsertIndexTableRows"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14209
14210 const uint32_t count = aIndexValues.Length();
14211 if (!count) {
14212 return NS_OK;
14213 }
14214
14215 auto insertUniqueStmt = DatabaseConnection::LazyStatement{
14216 *aConnection,
14217 "INSERT INTO unique_index_data "
14218 "(index_id, value, object_store_id, "
14219 "object_data_key, value_locale) "
14220 "VALUES (:"_ns +
14221 kStmtParamNameIndexId + ", :"_ns + kStmtParamNameValue + ", :"_ns +
14222 kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameObjectDataKey +
14223 ", :"_ns + kStmtParamNameValueLocale + ");"_ns};
14224 auto insertStmt = DatabaseConnection::LazyStatement{
14225 *aConnection,
14226 "INSERT OR IGNORE INTO index_data "
14227 "(index_id, value, object_data_key, "
14228 "object_store_id, value_locale) "
14229 "VALUES (:"_ns +
14230 kStmtParamNameIndexId + ", :"_ns + kStmtParamNameValue + ", :"_ns +
14231 kStmtParamNameObjectDataKey + ", :"_ns + kStmtParamNameObjectStoreId +
14232 ", :"_ns + kStmtParamNameValueLocale + ");"_ns};
14233
14234 for (uint32_t index = 0; index < count; index++) {
14235 const IndexDataValue& info = aIndexValues[index];
14236
14237 auto& stmt = info.mUnique ? insertUniqueStmt : insertStmt;
14238
14239 QM_TRY_INSPECT(const auto& borrowedStmt, stmt.Borrow())auto tryResult1134 = (stmt.Borrow()); if ((__builtin_expect(!
!(tryResult1134.isErr()), 0))) { mozilla::dom::quota::HandleError
("stmt.Borrow()", tryResult1134.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14239, mozilla::dom::quota::Severity::Error); return tryResult1134
.propagateErr(); } const auto& borrowedStmt = tryResult1134
.inspect();
;
14240
14241 QM_TRY(MOZ_TO_RESULT({auto tryResult1135 = (ToResult(borrowedStmt->BindInt64ByName
(kStmtParamNameIndexId, info.mIndexId))); static_assert(std::
is_empty_v<typename decltype(tryResult1135)::ok_type>);
if ((__builtin_expect(!!(tryResult1135.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))"
, tryResult1135.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14242, mozilla::dom::quota::Severity::Error); return tryResult1135
.propagateErr(); }}
14242 borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))){auto tryResult1135 = (ToResult(borrowedStmt->BindInt64ByName
(kStmtParamNameIndexId, info.mIndexId))); static_assert(std::
is_empty_v<typename decltype(tryResult1135)::ok_type>);
if ((__builtin_expect(!!(tryResult1135.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))"
, tryResult1135.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14242, mozilla::dom::quota::Severity::Error); return tryResult1135
.propagateErr(); }}
;
14243 QM_TRY(MOZ_TO_RESULT({auto tryResult1136 = (ToResult(info.mPosition.BindToStatement
(&*borrowedStmt, kStmtParamNameValue))); static_assert(std
::is_empty_v<typename decltype(tryResult1136)::ok_type>
); if ((__builtin_expect(!!(tryResult1136.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))"
, tryResult1136.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14244, mozilla::dom::quota::Severity::Error); return tryResult1136
.propagateErr(); }}
14244 info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))){auto tryResult1136 = (ToResult(info.mPosition.BindToStatement
(&*borrowedStmt, kStmtParamNameValue))); static_assert(std
::is_empty_v<typename decltype(tryResult1136)::ok_type>
); if ((__builtin_expect(!!(tryResult1136.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))"
, tryResult1136.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14244, mozilla::dom::quota::Severity::Error); return tryResult1136
.propagateErr(); }}
;
14245 QM_TRY(MOZ_TO_RESULT(info.mLocaleAwarePosition.BindToStatement({auto tryResult1137 = (ToResult(info.mLocaleAwarePosition.BindToStatement
( &*borrowedStmt, kStmtParamNameValueLocale))); static_assert
(std::is_empty_v<typename decltype(tryResult1137)::ok_type
>); if ((__builtin_expect(!!(tryResult1137.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(info.mLocaleAwarePosition.BindToStatement( &*borrowedStmt, kStmtParamNameValueLocale))"
, tryResult1137.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14246, mozilla::dom::quota::Severity::Error); return tryResult1137
.propagateErr(); }}
14246 &*borrowedStmt, kStmtParamNameValueLocale))){auto tryResult1137 = (ToResult(info.mLocaleAwarePosition.BindToStatement
( &*borrowedStmt, kStmtParamNameValueLocale))); static_assert
(std::is_empty_v<typename decltype(tryResult1137)::ok_type
>); if ((__builtin_expect(!!(tryResult1137.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(info.mLocaleAwarePosition.BindToStatement( &*borrowedStmt, kStmtParamNameValueLocale))"
, tryResult1137.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14246, mozilla::dom::quota::Severity::Error); return tryResult1137
.propagateErr(); }}
;
14247 QM_TRY(MOZ_TO_RESULT(borrowedStmt->BindInt64ByName({auto tryResult1138 = (ToResult(borrowedStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1138)::ok_type
>); if ((__builtin_expect(!!(tryResult1138.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1138.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14248, mozilla::dom::quota::Severity::Error); return tryResult1138
.propagateErr(); }}
14248 kStmtParamNameObjectStoreId, aObjectStoreId))){auto tryResult1138 = (ToResult(borrowedStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1138)::ok_type
>); if ((__builtin_expect(!!(tryResult1138.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1138.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14248, mozilla::dom::quota::Severity::Error); return tryResult1138
.propagateErr(); }}
;
14249 QM_TRY(MOZ_TO_RESULT(aObjectStoreKey.BindToStatement({auto tryResult1139 = (ToResult(aObjectStoreKey.BindToStatement
( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1139)::ok_type
>); if ((__builtin_expect(!!(tryResult1139.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))"
, tryResult1139.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14250, mozilla::dom::quota::Severity::Error); return tryResult1139
.propagateErr(); }}
14250 &*borrowedStmt, kStmtParamNameObjectDataKey))){auto tryResult1139 = (ToResult(aObjectStoreKey.BindToStatement
( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1139)::ok_type
>); if ((__builtin_expect(!!(tryResult1139.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))"
, tryResult1139.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14250, mozilla::dom::quota::Severity::Error); return tryResult1139
.propagateErr(); }}
;
14251
14252 // QM_OR_ELSE_WARN_IF is not used here since we just want to log the
14253 // collision and not spam the reports.
14254 QM_TRY(QM_OR_ELSE_LOG_VERBOSE_IF({auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14255 // Expression.{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14256 MOZ_TO_RESULT(borrowedStmt->Execute()),{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14257 // Predicate.{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14258 ([&info, index, &aIndexValues](nsresult rv) {{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14259 if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) {{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14260 // If we're inserting multiple entries for the same unique{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14261 // index, then we might have failed to insert due to{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14262 // colliding with another entry for the same index in which{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14263 // case we should ignore it.{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14264 for (int32_t index2 = int32_t(index) - 1;{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14265 index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId;{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14266 --index2) {{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14267 if (info.mPosition == aIndexValues[index2].mPosition) {{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14268 // We found a key with the same value for the same{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14269 // index. So we must have had a collision with a value{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14270 // we just inserted.{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14271 return true;{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14272 }{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14273 }{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14274 }{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14275
14276 return false;{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14277 }),{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14278 // Fallback.{auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14279 ErrToDefaultOk<>)){auto tryResult1140 = (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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140
.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, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14279, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14279, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
;
14280 }
14281
14282 return NS_OK;
14283}
14284
14285// static
14286nsresult DatabaseOperationBase::DeleteIndexDataTableRows(
14287 DatabaseConnection* aConnection, const Key& aObjectStoreKey,
14288 const nsTArray<IndexDataValue>& aIndexValues) {
14289 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14289); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 14289; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14290 aConnection->AssertIsOnConnectionThread();
14291 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14291); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()"
")"); do { *((volatile int*)__null) = 14291; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14292
14293 AUTO_PROFILER_LABEL("DatabaseOperationBase::DeleteIndexDataTableRows", DOM)mozilla::AutoProfilerLabel raiiObject14293( "DatabaseOperationBase::DeleteIndexDataTableRows"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14294
14295 const uint32_t count = aIndexValues.Length();
14296 if (!count) {
14297 return NS_OK;
14298 }
14299
14300 auto deleteUniqueStmt = DatabaseConnection::LazyStatement{
14301 *aConnection, "DELETE FROM unique_index_data WHERE index_id = :"_ns +
14302 kStmtParamNameIndexId + " AND value = :"_ns +
14303 kStmtParamNameValue + ";"_ns};
14304 auto deleteStmt = DatabaseConnection::LazyStatement{
14305 *aConnection, "DELETE FROM index_data WHERE index_id = :"_ns +
14306 kStmtParamNameIndexId + " AND value = :"_ns +
14307 kStmtParamNameValue + " AND object_data_key = :"_ns +
14308 kStmtParamNameObjectDataKey + ";"_ns};
14309
14310 for (uint32_t index = 0; index < count; index++) {
14311 const IndexDataValue& indexValue = aIndexValues[index];
14312
14313 auto& stmt = indexValue.mUnique ? deleteUniqueStmt : deleteStmt;
14314
14315 QM_TRY_INSPECT(const auto& borrowedStmt, stmt.Borrow())auto tryResult1141 = (stmt.Borrow()); if ((__builtin_expect(!
!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("stmt.Borrow()", tryResult1141.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14315, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& borrowedStmt = tryResult1141
.inspect();
;
14316
14317 QM_TRY(MOZ_TO_RESULT(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1142 = (ToResult(borrowedStmt->BindInt64ByName
(kStmtParamNameIndexId, indexValue.mIndexId))); static_assert
(std::is_empty_v<typename decltype(tryResult1142)::ok_type
>); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, indexValue.mIndexId))"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14318, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14318 indexValue.mIndexId))){auto tryResult1142 = (ToResult(borrowedStmt->BindInt64ByName
(kStmtParamNameIndexId, indexValue.mIndexId))); static_assert
(std::is_empty_v<typename decltype(tryResult1142)::ok_type
>); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, indexValue.mIndexId))"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14318, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
;
14319
14320 QM_TRY(MOZ_TO_RESULT(indexValue.mPosition.BindToStatement({auto tryResult1143 = (ToResult(indexValue.mPosition.BindToStatement
( &*borrowedStmt, kStmtParamNameValue))); static_assert(std
::is_empty_v<typename decltype(tryResult1143)::ok_type>
); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(indexValue.mPosition.BindToStatement( &*borrowedStmt, kStmtParamNameValue))"
, tryResult1143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14321, mozilla::dom::quota::Severity::Error); return tryResult1143
.propagateErr(); }}
14321 &*borrowedStmt, kStmtParamNameValue))){auto tryResult1143 = (ToResult(indexValue.mPosition.BindToStatement
( &*borrowedStmt, kStmtParamNameValue))); static_assert(std
::is_empty_v<typename decltype(tryResult1143)::ok_type>
); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(indexValue.mPosition.BindToStatement( &*borrowedStmt, kStmtParamNameValue))"
, tryResult1143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14321, mozilla::dom::quota::Severity::Error); return tryResult1143
.propagateErr(); }}
;
14322
14323 if (!indexValue.mUnique) {
14324 QM_TRY(MOZ_TO_RESULT(aObjectStoreKey.BindToStatement({auto tryResult1144 = (ToResult(aObjectStoreKey.BindToStatement
( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))"
, tryResult1144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14325, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14325 &*borrowedStmt, kStmtParamNameObjectDataKey))){auto tryResult1144 = (ToResult(aObjectStoreKey.BindToStatement
( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))"
, tryResult1144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14325, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
;
14326 }
14327
14328 QM_TRY(MOZ_TO_RESULT(borrowedStmt->Execute())){auto tryResult1145 = (ToResult(borrowedStmt->Execute()));
static_assert(std::is_empty_v<typename decltype(tryResult1145
)::ok_type>); if ((__builtin_expect(!!(tryResult1145.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->Execute())"
, tryResult1145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); }}
;
14329 }
14330
14331 return NS_OK;
14332}
14333
14334// static
14335nsresult DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes(
14336 DatabaseConnection* aConnection, const IndexOrObjectStoreId aObjectStoreId,
14337 const Maybe<SerializedKeyRange>& aKeyRange) {
14338 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14338); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 14338; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14339 aConnection->AssertIsOnConnectionThread();
14340 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14340); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId"
")"); do { *((volatile int*)__null) = 14340; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14341
14342#ifdef DEBUG1
14343 {
14344 QM_TRY_INSPECT(const bool& hasIndexes,auto tryResult1146 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId
)); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { auto
tryTempError = tryResult1146.unwrapErr(); mozilla::dom::quota
::HandleError("ObjectStoreHasIndexes(*aConnection, aObjectStoreId)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14346, 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14346); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")"
); do { *((volatile int*)__null) = 14346; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ObjectStoreHasIndexes(*aConnection, aObjectStoreId)", tryTempError
, Err(tryTempError)); } const bool& hasIndexes = tryResult1146
.inspect();
14345 ObjectStoreHasIndexes(*aConnection, aObjectStoreId),auto tryResult1146 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId
)); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { auto
tryTempError = tryResult1146.unwrapErr(); mozilla::dom::quota
::HandleError("ObjectStoreHasIndexes(*aConnection, aObjectStoreId)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14346, 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14346); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")"
); do { *((volatile int*)__null) = 14346; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ObjectStoreHasIndexes(*aConnection, aObjectStoreId)", tryTempError
, Err(tryTempError)); } const bool& hasIndexes = tryResult1146
.inspect();
14346 QM_PROPAGATE, [](const auto&) { MOZ_ASSERT(false); })auto tryResult1146 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId
)); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { auto
tryTempError = tryResult1146.unwrapErr(); mozilla::dom::quota
::HandleError("ObjectStoreHasIndexes(*aConnection, aObjectStoreId)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14346, 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14346); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")"
); do { *((volatile int*)__null) = 14346; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ObjectStoreHasIndexes(*aConnection, aObjectStoreId)", tryTempError
, Err(tryTempError)); } const bool& hasIndexes = tryResult1146
.inspect();
;
14347 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14348); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes"
") (" "Don't use this slow method if there are no indexes!" ")"
); do { *((volatile int*)__null) = 14348; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
14348 "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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14348); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes"
") (" "Don't use this slow method if there are no indexes!" ")"
); do { *((volatile int*)__null) = 14348; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14349 }
14350#endif
14351
14352 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject14353( "DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes"
, nullptr, JS::ProfilingCategoryPair::DOM)
14353 "DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes", DOM)mozilla::AutoProfilerLabel raiiObject14353( "DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14354
14355 const bool singleRowOnly = aKeyRange.isSome() && aKeyRange.ref().isOnly();
14356
14357 const auto keyRangeClause =
14358 MaybeGetBindingClauseForKeyRange(aKeyRange, kColumnNameKey);
14359
14360 Key objectStoreKey;
14361 QM_TRY_INSPECT(auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14362 const auto& selectStmt,auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14363 ([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange,auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14364 &keyRangeClause]()auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14365 -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> {auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14366 if (singleRowOnly) {auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14367 QM_TRY_UNWRAP(auto selectStmt,auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14368 aConnection->BorrowCachedStatement(auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14369 "SELECT index_data_values "auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14370 "FROM object_data "auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14371 "WHERE object_store_id = :"_ns +auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14372 kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14373 kStmtParamNameKey + ";"_ns));auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14374
14375 objectStoreKey = aKeyRange.ref().lower();auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14376
14377 QM_TRY(MOZ_TO_RESULT(auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14378 objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey)));auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14379
14380 return selectStmt;auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14381 }auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14382
14383 QM_TRY_UNWRAP(auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14384 auto selectStmt,auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14385 aConnection->BorrowCachedStatement(auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14386 "SELECT index_data_values, "_ns + kColumnNameKey +auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14387 " FROM object_data WHERE object_store_id = :"_ns +auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14388 kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns));auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14389
14390 if (aKeyRange.isSome()) {auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14391 QM_TRY(MOZ_TO_RESULT(auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14392 BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt)));auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14393 }auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14394
14395 return selectStmt;auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
14396 }()))auto tryResult1151 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1147 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1147.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)"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } auto selectStmt = tryResult1147.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1148)::ok_type>); if ((__builtin_expect
(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14378, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}; return selectStmt; } auto tryResult1149 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14388, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14392, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1147 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1147.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)\", tryResult1147.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14373, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } auto selectStmt = tryResult1147.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1148 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1148.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14378, mozilla::dom::quota::Severity::Error); return tryResult1148.propagateErr(); }}; return selectStmt; } auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14388, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1150 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14392, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; } return selectStmt; }())"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14396, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } const auto& selectStmt = tryResult1151
.inspect();
;
14397
14398 QM_TRY(MOZ_TO_RESULT(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId,{auto tryResult1152 = (ToResult(selectStmt->BindInt64ByName
(kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1152)::ok_type
>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14399, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}
14399 aObjectStoreId))){auto tryResult1152 = (ToResult(selectStmt->BindInt64ByName
(kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1152)::ok_type
>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14399, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}
;
14400
14401 DebugOnly<uint32_t> resultCountDEBUG = 0;
14402
14403 QM_TRY(CollectWhileHasResult({auto tryResult1156 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1153)::ok_type>); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1155)::ok_type>
); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14418, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1153)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1153.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1154.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14416, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14418, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14423, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}
14404 *selectStmt,{auto tryResult1156 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1153)::ok_type>); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1155)::ok_type>
); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14418, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1153)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1153.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1154.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14416, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14418, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14423, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}
14405 [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG,{auto tryResult1156 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1153)::ok_type>); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1155)::ok_type>
); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14418, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1153)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1153.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1154.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14416, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14418, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14423, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}
14406 indexValues = IndexDataValuesAutoArray{}]({auto tryResult1156 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1153)::ok_type>); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1155)::ok_type>
); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14418, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1153)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1153.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1154.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14416, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14418, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14423, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}
14407 auto& selectStmt) mutable -> Result<Ok, nsresult> {{auto tryResult1156 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1153)::ok_type>); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1155)::ok_type>
); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14418, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1153)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1153.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1154.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14416, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14418, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14423, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}
14408 if (!singleRowOnly) {{auto tryResult1156 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1153)::ok_type>); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1155)::ok_type>
); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14418, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1153)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1153.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1154.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14416, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14418, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14423, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}
14409 QM_TRY({auto tryResult1156 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1153)::ok_type>); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1155)::ok_type>
); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14418, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1153)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1153.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1154.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14416, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14418, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14423, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}
14410 MOZ_TO_RESULT(objectStoreKey.SetFromStatement(&selectStmt, 1)));{auto tryResult1156 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1153)::ok_type>); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1155)::ok_type>
); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14418, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1153)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1153.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1154.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14416, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14418, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14423, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}
14411
14412 indexValues.ClearAndRetainStorage();{auto tryResult1156 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1153)::ok_type>); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1155)::ok_type>
); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14418, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1153)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1153.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1154.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14416, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14418, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14423, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}
14413 }{auto tryResult1156 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1153)::ok_type>); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1155)::ok_type>
); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14418, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1153)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1153.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1154.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14416, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14418, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14423, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}
14414
14415 QM_TRY(MOZ_TO_RESULT({auto tryResult1156 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1153)::ok_type>); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1155)::ok_type>
); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14418, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1153)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1153.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1154.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14416, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14418, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14423, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}
14416 ReadCompressedIndexDataValues(selectStmt, 0, indexValues)));{auto tryResult1156 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1153)::ok_type>); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1155)::ok_type>
); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14418, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1153)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1153.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1154.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14416, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14418, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14423, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}
14417 QM_TRY(MOZ_TO_RESULT(DeleteIndexDataTableRows({auto tryResult1156 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1153)::ok_type>); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1155)::ok_type>
); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14418, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1153)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1153.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1154.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14416, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14418, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14423, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}
14418 aConnection, objectStoreKey, indexValues)));{auto tryResult1156 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1153)::ok_type>); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1155)::ok_type>
); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14418, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1153)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1153.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1154.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14416, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14418, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14423, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}
14419
14420 resultCountDEBUG++;{auto tryResult1156 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1153)::ok_type>); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1155)::ok_type>
); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14418, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1153)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1153.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1154.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14416, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14418, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14423, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}
14421
14422 return Ok{};{auto tryResult1156 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1153)::ok_type>); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1155)::ok_type>
); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14418, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1153)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1153.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1154.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14416, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14418, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14423, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}
14423 })){auto tryResult1156 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1153)::ok_type>); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1155)::ok_type>
); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14418, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1153 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1153)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1153.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1154 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1154.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14416, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14418, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14423, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}
;
14424
14425 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14425); AnnotateMozCrashReason("MOZ_ASSERT" "(" "resultCountDEBUG <= 1"
")"); do { *((volatile int*)__null) = 14425; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
14426
14427 QM_TRY_UNWRAP(auto tryResult1157 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1157
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14431, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); } auto deleteManyStmt = tryResult1157.unwrap
();
14428 auto deleteManyStmt,auto tryResult1157 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1157
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14431, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); } auto deleteManyStmt = tryResult1157.unwrap
();
14429 aConnection->BorrowCachedStatement(auto tryResult1157 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1157
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14431, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); } auto deleteManyStmt = tryResult1157.unwrap
();
14430 "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns +auto tryResult1157 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1157
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14431, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); } auto deleteManyStmt = tryResult1157.unwrap
();
14431 kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns))auto tryResult1157 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1157
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14431, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); } auto deleteManyStmt = tryResult1157.unwrap
();
;
14432
14433 QM_TRY(MOZ_TO_RESULT(deleteManyStmt->BindInt64ByName({auto tryResult1158 = (ToResult(deleteManyStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1158)::ok_type
>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14434, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}
14434 kStmtParamNameObjectStoreId, aObjectStoreId))){auto tryResult1158 = (ToResult(deleteManyStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1158)::ok_type
>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14434, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}
;
14435
14436 if (aKeyRange.isSome()) {
14437 QM_TRY(MOZ_TO_RESULT({auto tryResult1159 = (ToResult(BindKeyRangeToStatement(aKeyRange
.ref(), &*deleteManyStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1159)::ok_type>); if ((__builtin_expect
(!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))"
, tryResult1159.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14438, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}
14438 BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))){auto tryResult1159 = (ToResult(BindKeyRangeToStatement(aKeyRange
.ref(), &*deleteManyStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1159)::ok_type>); if ((__builtin_expect
(!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))"
, tryResult1159.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14438, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}
;
14439 }
14440
14441 QM_TRY(MOZ_TO_RESULT(deleteManyStmt->Execute())){auto tryResult1160 = (ToResult(deleteManyStmt->Execute())
); static_assert(std::is_empty_v<typename decltype(tryResult1160
)::ok_type>); if ((__builtin_expect(!!(tryResult1160.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->Execute())"
, tryResult1160.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14441, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
;
14442
14443 return NS_OK;
14444}
14445
14446// static
14447nsresult DatabaseOperationBase::UpdateIndexValues(
14448 DatabaseConnection* aConnection, const IndexOrObjectStoreId aObjectStoreId,
14449 const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues) {
14450 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14450); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 14450; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14451 aConnection->AssertIsOnConnectionThread();
14452 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14452); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()"
")"); do { *((volatile int*)__null) = 14452; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14453
14454 AUTO_PROFILER_LABEL("DatabaseOperationBase::UpdateIndexValues", DOM)mozilla::AutoProfilerLabel raiiObject14454( "DatabaseOperationBase::UpdateIndexValues"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14455
14456 QM_TRY_UNWRAP((auto [indexDataValues, indexDataValuesLength]),auto tryResult1161 = (MakeCompressedIndexDataValues(aIndexValues
)); if ((__builtin_expect(!!(tryResult1161.isErr()), 0))) { mozilla
::dom::quota::HandleError("MakeCompressedIndexDataValues(aIndexValues)"
, tryResult1161.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14457, mozilla::dom::quota::Severity::Error); return tryResult1161
.propagateErr(); } auto [indexDataValues, indexDataValuesLength
] = tryResult1161.unwrap();
14457 MakeCompressedIndexDataValues(aIndexValues))auto tryResult1161 = (MakeCompressedIndexDataValues(aIndexValues
)); if ((__builtin_expect(!!(tryResult1161.isErr()), 0))) { mozilla
::dom::quota::HandleError("MakeCompressedIndexDataValues(aIndexValues)"
, tryResult1161.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14457, mozilla::dom::quota::Severity::Error); return tryResult1161
.propagateErr(); } auto [indexDataValues, indexDataValuesLength
] = tryResult1161.unwrap();
;
14458
14459 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())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14459); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexDataValuesLength == !(indexDataValues.get())"
")"); do { *((volatile int*)__null) = 14459; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14460
14461 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14462 "UPDATE object_data SET index_data_values = :"_ns +{auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14463 kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns +{auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14464 kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey +{auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14465 ";"_ns,{auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14466 [&indexDataValues = indexDataValues,{auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14467 indexDataValuesLength = indexDataValuesLength, aObjectStoreId,{auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14468 &aObjectStoreKey]({auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14469 mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> {{auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14470 QM_TRY(MOZ_TO_RESULT({auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14471 indexDataValues{auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14472 ? updateStmt.BindAdoptedBlobByName({auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14473 kStmtParamNameIndexDataValues, indexDataValues.release(),{auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14474 indexDataValuesLength){auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14475 : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)));{auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14476
14477 QM_TRY(MOZ_TO_RESULT(updateStmt.BindInt64ByName({auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14478 kStmtParamNameObjectStoreId, aObjectStoreId)));{auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14479
14480 QM_TRY(MOZ_TO_RESULT({auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14481 aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey)));{auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14482
14483 return Ok{};{auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
14484 }))){auto tryResult1165 = (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 tryResult1162
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1163
)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1164)::ok_type
>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.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 tryResult1162 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1162)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1162.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14475, mozilla::dom::quota::Severity::Error); return tryResult1162.propagateErr(); }}; {auto tryResult1163 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1163.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14478, mozilla::dom::quota::Severity::Error); return tryResult1163.propagateErr(); }}; {auto tryResult1164 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14481, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; return Ok{}; }))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14484, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}
;
14485
14486 return NS_OK;
14487}
14488
14489// static
14490Result<bool, nsresult> DatabaseOperationBase::ObjectStoreHasIndexes(
14491 DatabaseConnection& aConnection,
14492 const IndexOrObjectStoreId aObjectStoreId) {
14493 aConnection.AssertIsOnConnectionThread();
14494 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId"
")"); do { *((volatile int*)__null) = 14494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14495
14496 QM_TRY_RETURN(aConnection{auto tryResult1167 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1166)::ok_type>); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14504, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14504, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14507, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}
14497 .BorrowAndExecuteSingleStepStatement({auto tryResult1167 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1166)::ok_type>); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14504, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14504, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14507, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}
14498 "SELECT id "{auto tryResult1167 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1166)::ok_type>); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14504, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14504, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14507, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}
14499 "FROM object_store_index "{auto tryResult1167 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1166)::ok_type>); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14504, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14504, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14507, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}
14500 "WHERE object_store_id = :"_ns +{auto tryResult1167 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1166)::ok_type>); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14504, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14504, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14507, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}
14501 kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns,{auto tryResult1167 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1166)::ok_type>); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14504, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14504, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14507, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}
14502 [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult1167 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1166)::ok_type>); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14504, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14504, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14507, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}
14503 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName({auto tryResult1167 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1166)::ok_type>); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14504, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14504, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14507, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}
14504 kStmtParamNameObjectStoreId, aObjectStoreId)));{auto tryResult1167 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1166)::ok_type>); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14504, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14504, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14507, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}
14505 return Ok{};{auto tryResult1167 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1166)::ok_type>); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14504, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14504, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14507, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}
14506 }){auto tryResult1167 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1166)::ok_type>); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14504, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14504, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14507, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}
14507 .map(IsSome)){auto tryResult1167 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1166)::ok_type>); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14504, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14504, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14507, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}
;
14508}
14509
14510NS_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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14511); 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; }
14511 mozIStorageProgressHandler)nsresult DatabaseOperationBase::QueryInterface(const nsIID&
aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak
(NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!"
, "aInstancePtr", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14511); 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; }
14512
14513NS_IMETHODIMPnsresult
14514DatabaseOperationBase::OnProgress(mozIStorageConnection* aConnection,
14515 bool* _retval) {
14516 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14516); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 14516; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14517 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14517); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")"
); do { *((volatile int*)__null) = 14517; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14518
14519 // This is intentionally racy.
14520 *_retval = QuotaClient::IsShuttingDownOnNonBackgroundThread() ||
14521 !OperationMayProceed();
14522 return NS_OK;
14523}
14524
14525DatabaseOperationBase::AutoSetProgressHandler::AutoSetProgressHandler()
14526 : mConnection(Nothing())
14527#ifdef DEBUG1
14528 ,
14529 mDEBUGDatabaseOp(nullptr)
14530#endif
14531{
14532 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14532); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 14532; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14533}
14534
14535DatabaseOperationBase::AutoSetProgressHandler::~AutoSetProgressHandler() {
14536 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14536); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 14536; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14537
14538 if (mConnection) {
14539 Unregister();
14540 }
14541}
14542
14543nsresult DatabaseOperationBase::AutoSetProgressHandler::Register(
14544 mozIStorageConnection& aConnection, DatabaseOperationBase* aDatabaseOp) {
14545 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14545); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 14545; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14546 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14546); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseOp"
")"); do { *((volatile int*)__null) = 14546; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14547 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14547); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection"
")"); do { *((volatile int*)__null) = 14547; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14548
14549 QM_TRY_UNWRAP(auto tryResult1168 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1168.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14553, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1168
.unwrap();
14550 const DebugOnly oldProgressHandler,auto tryResult1168 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1168.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14553, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1168
.unwrap();
14551 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1168 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1168.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14553, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1168
.unwrap();
14552 nsCOMPtr<mozIStorageProgressHandler>, aConnection, SetProgressHandler,auto tryResult1168 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1168.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14553, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1168
.unwrap();
14553 kStorageProgressGranularity, aDatabaseOp))auto tryResult1168 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1168.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14553, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1168
.unwrap();
;
14554
14555 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14555); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!oldProgressHandler.inspect()"
")"); do { *((volatile int*)__null) = 14555; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14556
14557 mConnection = SomeRef(aConnection);
14558#ifdef DEBUG1
14559 mDEBUGDatabaseOp = aDatabaseOp;
14560#endif
14561
14562 return NS_OK;
14563}
14564
14565void DatabaseOperationBase::AutoSetProgressHandler::Unregister() {
14566 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14566); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 14566; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14567 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14567); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 14567; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14568
14569 nsCOMPtr<mozIStorageProgressHandler> oldHandler;
14570 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14571); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))"
")"); do { *((volatile int*)__null) = 14571; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
14571 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14571); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))"
")"); do { *((volatile int*)__null) = 14571; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
14572 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14572); AnnotateMozCrashReason("MOZ_ASSERT" "(" "oldHandler == mDEBUGDatabaseOp"
")"); do { *((volatile int*)__null) = 14572; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14573
14574 mConnection = Nothing();
14575}
14576
14577FactoryOp::FactoryOp(SafeRefPtr<Factory> aFactory,
14578 const Maybe<ContentParentId>& aContentParentId,
14579 const PersistenceType aPersistenceType,
14580 const PrincipalInfo& aPrincipalInfo,
14581 const Maybe<nsString>& aDatabaseName, bool aDeleting)
14582 : DatabaseOperationBase(aFactory->GetLoggingInfo()->Id(),
14583 aFactory->GetLoggingInfo()->NextRequestSN()),
14584 mFactory(std::move(aFactory)),
14585 mContentParentId(aContentParentId),
14586 mPrincipalInfo(aPrincipalInfo),
14587 mDatabaseName(aDatabaseName),
14588 mDirectoryLockId(-1),
14589 mPersistenceType(aPersistenceType),
14590 mState(State::Initial),
14591 mWaitingForPermissionRetry(false),
14592 mEnforcingQuota(true),
14593 mDeleting(aDeleting) {
14594 AssertIsOnBackgroundThread();
14595 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14595); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")"
); do { *((volatile int*)__null) = 14595; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14596 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14596); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 14596; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14597}
14598
14599nsresult FactoryOp::DispatchThisAfterProcessingCurrentEvent(
14600 nsCOMPtr<nsIEventTarget> aEventTarget) {
14601 QM_TRY(MOZ_TO_RESULT(RunAfterProcessingCurrentEvent({auto tryResult1170 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1169 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1169)::ok_type
>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1169.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14604, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1170)::ok_type
>); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1169 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1169.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14604, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1170.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14605, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); }}
14602 [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable {{auto tryResult1170 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1169 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1169)::ok_type
>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1169.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14604, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1170)::ok_type
>); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1169 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1169.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14604, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1170.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14605, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); }}
14603 QM_WARNONLY_TRY(MOZ_TO_RESULT({auto tryResult1170 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1169 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1169)::ok_type
>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1169.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14604, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1170)::ok_type
>); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1169 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1169.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14604, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1170.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14605, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); }}
14604 eventTarget->Dispatch(self.forget(), NS_DISPATCH_NORMAL)));{auto tryResult1170 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1169 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1169)::ok_type
>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1169.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14604, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1170)::ok_type
>); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1169 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1169.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14604, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1170.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14605, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); }}
14605 }))){auto tryResult1170 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1169 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1169)::ok_type
>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1169.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14604, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1170)::ok_type
>); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1169 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1169.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14604, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1170.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14605, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); }}
;
14606
14607 return NS_OK;
14608}
14609
14610void FactoryOp::NoteDatabaseBlocked(Database* aDatabase) {
14611 AssertIsOnOwningThread();
14612 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14612); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabase"
")"); do { *((volatile int*)__null) = 14612; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14613 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14613); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose"
")"); do { *((volatile int*)__null) = 14613; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14614 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14614); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 14614; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14615 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14615); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.Contains(aDatabase)"
")"); do { *((volatile int*)__null) = 14615; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14616
14617 // Only send the blocked event if all databases have reported back. If the
14618 // database was closed then it will have been removed from the array.
14619 // Otherwise if it was blocked its |mBlocked| flag will be true.
14620 bool sendBlockedEvent = true;
14621
14622 for (auto& info : mMaybeBlockedDatabases) {
14623 if (info == aDatabase) {
14624 // This database was blocked, mark accordingly.
14625 info.mBlocked = true;
14626 } else if (!info.mBlocked) {
14627 // A database has not yet reported back yet, don't send the event yet.
14628 sendBlockedEvent = false;
14629 }
14630 }
14631
14632 if (sendBlockedEvent) {
14633 SendBlockedNotification();
14634 }
14635}
14636
14637void FactoryOp::NoteDatabaseClosed(Database* const aDatabase) {
14638 AssertIsOnOwningThread();
14639 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14639); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabase"
")"); do { *((volatile int*)__null) = 14639; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14640 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14640); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose"
")"); do { *((volatile int*)__null) = 14640; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14641 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14641); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 14641; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14642 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.Contains(aDatabase)"
")"); do { *((volatile int*)__null) = 14642; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14643
14644 mMaybeBlockedDatabases.RemoveElement(aDatabase);
14645
14646 if (!mMaybeBlockedDatabases.IsEmpty()) {
14647 return;
14648 }
14649
14650 DatabaseActorInfo* info;
14651 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14651); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)"
")"); do { *((volatile int*)__null) = 14651; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
14652 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14652); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mWaitingFactoryOp == this"
")"); do { *((volatile int*)__null) = 14652; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14653
14654 if (AreActorsAlive()) {
14655 // The IPDL strong reference has not yet been released, so we can clear
14656 // mWaitingFactoryOp immediately.
14657 info->mWaitingFactoryOp = nullptr;
14658
14659 WaitForTransactions();
14660 return;
14661 }
14662
14663 // The IPDL strong reference has been released, mWaitingFactoryOp holds the
14664 // last strong reference to us, so we need to move it to a stack variable
14665 // instead of clearing it immediately (We could clear it immediately if only
14666 // the other actor is destroyed, but we don't need to optimize for that, and
14667 // move it anyway).
14668 const RefPtr<FactoryOp> waitingFactoryOp = std::move(info->mWaitingFactoryOp);
14669
14670 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14670, "UnknownErr")
;
14671 SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
14672
14673 // We hold a strong ref in waitingFactoryOp, so it's safe to call Run()
14674 // directly.
14675
14676 mState = State::SendingResults;
14677 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())", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14677); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(Run())"
")"); do { *((volatile int*)__null) = 14677; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
14678}
14679
14680void FactoryOp::StringifyState(nsACString& aResult) const {
14681 AssertIsOnOwningThread();
14682
14683 switch (mState) {
14684 case State::Initial:
14685 aResult.AppendLiteral("Initial");
14686 return;
14687
14688 case State::DirectoryOpenPending:
14689 aResult.AppendLiteral("DirectoryOpenPending");
14690 return;
14691
14692 case State::DirectoryWorkOpen:
14693 aResult.AppendLiteral("DirectoryWorkOpen");
14694 return;
14695
14696 case State::DirectoryWorkDone:
14697 aResult.AppendLiteral("DirectoryWorkDone");
14698 return;
14699
14700 case State::DatabaseOpenPending:
14701 aResult.AppendLiteral("DatabaseOpenPending");
14702 return;
14703
14704 case State::DatabaseWorkOpen:
14705 aResult.AppendLiteral("DatabaseWorkOpen");
14706 return;
14707
14708 case State::BeginVersionChange:
14709 aResult.AppendLiteral("BeginVersionChange");
14710 return;
14711
14712 case State::WaitingForOtherDatabasesToClose:
14713 aResult.AppendLiteral("WaitingForOtherDatabasesToClose");
14714 return;
14715
14716 case State::WaitingForTransactionsToComplete:
14717 aResult.AppendLiteral("WaitingForTransactionsToComplete");
14718 return;
14719
14720 case State::DatabaseWorkVersionChange:
14721 aResult.AppendLiteral("DatabaseWorkVersionChange");
14722 return;
14723
14724 case State::SendingResults:
14725 aResult.AppendLiteral("SendingResults");
14726 return;
14727
14728 case State::Completed:
14729 aResult.AppendLiteral("Completed");
14730 return;
14731
14732 default:
14733 MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14733); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")"
); do { *((volatile int*)__null) = 14733; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
14734 }
14735}
14736
14737void FactoryOp::Stringify(nsACString& aResult) const {
14738 AssertIsOnOwningThread();
14739
14740 aResult.AppendLiteral("PersistenceType:");
14741 aResult.Append(PersistenceTypeToString(mPersistenceType));
14742 aResult.Append(kQuotaGenericDelimiter);
14743
14744 aResult.AppendLiteral("Origin:");
14745 aResult.Append(AnonymizedOriginString(mOriginMetadata.mOrigin));
14746 aResult.Append(kQuotaGenericDelimiter);
14747
14748 aResult.AppendLiteral("State:");
14749 StringifyState(aResult);
14750}
14751
14752nsresult FactoryOp::Open() {
14753 AssertIsOnOwningThread();
14754 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14754); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { *((volatile int*)__null) = 14754; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14755 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14755); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mOrigin.IsEmpty()"
")"); do { *((volatile int*)__null) = 14755; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14756 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14756); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock"
")"); do { *((volatile int*)__null) = 14756; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14757
14758 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14758)
||
14759 IsActorDestroyed()) {
14760 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14760, "UnknownErr")
;
14761 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
14762 }
14763
14764 QM_TRY(QuotaManager::EnsureCreated()){auto tryResult1171 = (QuotaManager::EnsureCreated()); static_assert
(std::is_empty_v<typename decltype(tryResult1171)::ok_type
>); if ((__builtin_expect(!!(tryResult1171.isErr()), 0))) {
mozilla::dom::quota::HandleError("QuotaManager::EnsureCreated()"
, tryResult1171.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14764, mozilla::dom::quota::Severity::Error); return tryResult1171
.propagateErr(); }}
;
14765
14766 QuotaManager* const quotaManager = QuotaManager::Get();
14767 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 14767; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14768
14769 QM_TRY_UNWRAP(auto tryResult1172 = (quota::GetInfoFromValidatedPrincipalInfo
(*quotaManager, mPrincipalInfo)); if ((__builtin_expect(!!(tryResult1172
.isErr()), 0))) { mozilla::dom::quota::HandleError("quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo)"
, tryResult1172.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14771, mozilla::dom::quota::Severity::Error); return tryResult1172
.propagateErr(); } auto principalMetadata = tryResult1172.unwrap
();
14770 auto principalMetadata,auto tryResult1172 = (quota::GetInfoFromValidatedPrincipalInfo
(*quotaManager, mPrincipalInfo)); if ((__builtin_expect(!!(tryResult1172
.isErr()), 0))) { mozilla::dom::quota::HandleError("quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo)"
, tryResult1172.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14771, mozilla::dom::quota::Severity::Error); return tryResult1172
.propagateErr(); } auto principalMetadata = tryResult1172.unwrap
();
14771 quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo))auto tryResult1172 = (quota::GetInfoFromValidatedPrincipalInfo
(*quotaManager, mPrincipalInfo)); if ((__builtin_expect(!!(tryResult1172
.isErr()), 0))) { mozilla::dom::quota::HandleError("quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo)"
, tryResult1172.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14771, mozilla::dom::quota::Severity::Error); return tryResult1172
.propagateErr(); } auto principalMetadata = tryResult1172.unwrap
();
;
14772
14773 mOriginMetadata = {std::move(principalMetadata), mPersistenceType};
14774
14775 if (mPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo) {
14776 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14776); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 14776; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14777
14778 mEnforcingQuota = false;
14779 } else if (mPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo) {
14780 const ContentPrincipalInfo& contentPrincipalInfo =
14781 mPrincipalInfo.get_ContentPrincipalInfo();
14782
14783 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14785); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 14785; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
14784 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14785); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 14785; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
14785 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14785); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 14785; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
14786
14787 mEnforcingQuota = mPersistenceType != PERSISTENCE_TYPE_PERSISTENT;
14788
14789 if (mOriginMetadata.mIsPrivate) {
14790 if (StaticPrefs::dom_indexedDB_privateBrowsing_enabled()) {
14791 // Explicitly disallow moz-extension urls from using the encrypted
14792 // indexedDB storage mode when the caller is an extension (see Bug
14793 // 1841806).
14794 if (StringBeginsWith(contentPrincipalInfo.originNoSuffix(),
14795 "moz-extension:"_ns)) {
14796 return NS_ERROR_DOM_INDEXEDDB_NOT_ALLOWED_ERR;
14797 }
14798
14799 mInPrivateBrowsing.Flip();
14800 } else {
14801 return NS_ERROR_DOM_INDEXEDDB_NOT_ALLOWED_ERR;
14802 }
14803 }
14804 } else {
14805 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14805); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")"
); do { *((volatile int*)__null) = 14805; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14806 }
14807
14808 if (mDatabaseName.isSome()) {
14809 nsCString databaseId;
14810
14811 QuotaManager::GetStorageId(mPersistenceType, mOriginMetadata.mOrigin,
14812 Client::IDB, databaseId);
14813
14814 databaseId.Append('*');
14815 databaseId.Append(NS_ConvertUTF16toUTF8(mDatabaseName.ref()));
14816
14817 mDatabaseId = Some(std::move(databaseId));
14818
14819 // Need to get database file path before opening the directory.
14820 // XXX: For what reason?
14821 QM_TRY_UNWRAP(auto tryResult1177 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1173 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1173
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14825, mozilla::dom::quota::Severity::Error); return tryResult1173
.propagateErr(); } const auto& dbFile = tryResult1173.inspect
();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1174
)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14828, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1175.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14833, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176
;}; }())); if ((__builtin_expect(!!(tryResult1177.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1173 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1173.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14825, mozilla::dom::quota::Severity::Error); return tryResult1173.propagateErr(); } const auto& dbFile = tryResult1173.inspect();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1174)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1174.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14828, mozilla::dom::quota::Severity::Error); return tryResult1174.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14833, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176;}; }())"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14837, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } auto databaseFilePath = tryResult1177.unwrap
();
14822 auto databaseFilePath,auto tryResult1177 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1173 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1173
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14825, mozilla::dom::quota::Severity::Error); return tryResult1173
.propagateErr(); } const auto& dbFile = tryResult1173.inspect
();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1174
)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14828, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1175.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14833, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176
;}; }())); if ((__builtin_expect(!!(tryResult1177.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1173 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1173.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14825, mozilla::dom::quota::Severity::Error); return tryResult1173.propagateErr(); } const auto& dbFile = tryResult1173.inspect();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1174)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1174.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14828, mozilla::dom::quota::Severity::Error); return tryResult1174.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14833, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176;}; }())"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14837, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } auto databaseFilePath = tryResult1177.unwrap
();
14823 ([this, quotaManager]() -> mozilla::Result<nsString, nsresult> {auto tryResult1177 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1173 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1173
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14825, mozilla::dom::quota::Severity::Error); return tryResult1173
.propagateErr(); } const auto& dbFile = tryResult1173.inspect
();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1174
)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14828, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1175.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14833, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176
;}; }())); if ((__builtin_expect(!!(tryResult1177.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1173 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1173.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14825, mozilla::dom::quota::Severity::Error); return tryResult1173.propagateErr(); } const auto& dbFile = tryResult1173.inspect();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1174)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1174.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14828, mozilla::dom::quota::Severity::Error); return tryResult1174.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14833, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176;}; }())"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14837, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } auto databaseFilePath = tryResult1177.unwrap
();
14824 QM_TRY_INSPECT(const auto& dbFile,auto tryResult1177 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1173 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1173
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14825, mozilla::dom::quota::Severity::Error); return tryResult1173
.propagateErr(); } const auto& dbFile = tryResult1173.inspect
();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1174
)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14828, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1175.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14833, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176
;}; }())); if ((__builtin_expect(!!(tryResult1177.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1173 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1173.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14825, mozilla::dom::quota::Severity::Error); return tryResult1173.propagateErr(); } const auto& dbFile = tryResult1173.inspect();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1174)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1174.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14828, mozilla::dom::quota::Severity::Error); return tryResult1174.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14833, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176;}; }())"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14837, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } auto databaseFilePath = tryResult1177.unwrap
();
14825 quotaManager->GetOriginDirectory(mOriginMetadata));auto tryResult1177 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1173 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1173
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14825, mozilla::dom::quota::Severity::Error); return tryResult1173
.propagateErr(); } const auto& dbFile = tryResult1173.inspect
();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1174
)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14828, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1175.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14833, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176
;}; }())); if ((__builtin_expect(!!(tryResult1177.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1173 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1173.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14825, mozilla::dom::quota::Severity::Error); return tryResult1173.propagateErr(); } const auto& dbFile = tryResult1173.inspect();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1174)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1174.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14828, mozilla::dom::quota::Severity::Error); return tryResult1174.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14833, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176;}; }())"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14837, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } auto databaseFilePath = tryResult1177.unwrap
();
14826
14827 QM_TRY(MOZ_TO_RESULT(dbFile->Append(auto tryResult1177 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1173 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1173
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14825, mozilla::dom::quota::Severity::Error); return tryResult1173
.propagateErr(); } const auto& dbFile = tryResult1173.inspect
();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1174
)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14828, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1175.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14833, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176
;}; }())); if ((__builtin_expect(!!(tryResult1177.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1173 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1173.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14825, mozilla::dom::quota::Severity::Error); return tryResult1173.propagateErr(); } const auto& dbFile = tryResult1173.inspect();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1174)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1174.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14828, mozilla::dom::quota::Severity::Error); return tryResult1174.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14833, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176;}; }())"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14837, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } auto databaseFilePath = tryResult1177.unwrap
();
14828 NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME))));auto tryResult1177 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1173 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1173
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14825, mozilla::dom::quota::Severity::Error); return tryResult1173
.propagateErr(); } const auto& dbFile = tryResult1173.inspect
();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1174
)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14828, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1175.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14833, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176
;}; }())); if ((__builtin_expect(!!(tryResult1177.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1173 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1173.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14825, mozilla::dom::quota::Severity::Error); return tryResult1173.propagateErr(); } const auto& dbFile = tryResult1173.inspect();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1174)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1174.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14828, mozilla::dom::quota::Severity::Error); return tryResult1174.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14833, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176;}; }())"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14837, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } auto databaseFilePath = tryResult1177.unwrap
();
14829
14830 QM_TRY(MOZ_TO_RESULT(dbFile->Append(auto tryResult1177 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1173 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1173
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14825, mozilla::dom::quota::Severity::Error); return tryResult1173
.propagateErr(); } const auto& dbFile = tryResult1173.inspect
();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1174
)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14828, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1175.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14833, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176
;}; }())); if ((__builtin_expect(!!(tryResult1177.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1173 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1173.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14825, mozilla::dom::quota::Severity::Error); return tryResult1173.propagateErr(); } const auto& dbFile = tryResult1173.inspect();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1174)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1174.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14828, mozilla::dom::quota::Severity::Error); return tryResult1174.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14833, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176;}; }())"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14837, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } auto databaseFilePath = tryResult1177.unwrap
();
14831 GetDatabaseFilenameBase(mDatabaseName.ref(),auto tryResult1177 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1173 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1173
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14825, mozilla::dom::quota::Severity::Error); return tryResult1173
.propagateErr(); } const auto& dbFile = tryResult1173.inspect
();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1174
)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14828, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1175.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14833, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176
;}; }())); if ((__builtin_expect(!!(tryResult1177.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1173 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1173.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14825, mozilla::dom::quota::Severity::Error); return tryResult1173.propagateErr(); } const auto& dbFile = tryResult1173.inspect();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1174)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1174.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14828, mozilla::dom::quota::Severity::Error); return tryResult1174.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14833, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176;}; }())"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14837, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } auto databaseFilePath = tryResult1177.unwrap
();
14832 mOriginMetadata.mIsPrivate) +auto tryResult1177 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1173 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1173
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14825, mozilla::dom::quota::Severity::Error); return tryResult1173
.propagateErr(); } const auto& dbFile = tryResult1173.inspect
();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1174
)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14828, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1175.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14833, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176
;}; }())); if ((__builtin_expect(!!(tryResult1177.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1173 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1173.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14825, mozilla::dom::quota::Severity::Error); return tryResult1173.propagateErr(); } const auto& dbFile = tryResult1173.inspect();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1174)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1174.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14828, mozilla::dom::quota::Severity::Error); return tryResult1174.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14833, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176;}; }())"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14837, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } auto databaseFilePath = tryResult1177.unwrap
();
14833 kSQLiteSuffix)));auto tryResult1177 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1173 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1173
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14825, mozilla::dom::quota::Severity::Error); return tryResult1173
.propagateErr(); } const auto& dbFile = tryResult1173.inspect
();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1174
)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14828, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1175.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14833, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176
;}; }())); if ((__builtin_expect(!!(tryResult1177.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1173 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1173.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14825, mozilla::dom::quota::Severity::Error); return tryResult1173.propagateErr(); } const auto& dbFile = tryResult1173.inspect();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1174)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1174.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14828, mozilla::dom::quota::Severity::Error); return tryResult1174.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14833, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176;}; }())"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14837, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } auto databaseFilePath = tryResult1177.unwrap
();
14834
14835 QM_TRY_RETURN(auto tryResult1177 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1173 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1173
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14825, mozilla::dom::quota::Severity::Error); return tryResult1173
.propagateErr(); } const auto& dbFile = tryResult1173.inspect
();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1174
)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14828, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1175.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14833, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176
;}; }())); if ((__builtin_expect(!!(tryResult1177.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1173 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1173.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14825, mozilla::dom::quota::Severity::Error); return tryResult1173.propagateErr(); } const auto& dbFile = tryResult1173.inspect();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1174)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1174.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14828, mozilla::dom::quota::Severity::Error); return tryResult1174.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14833, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176;}; }())"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14837, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } auto databaseFilePath = tryResult1177.unwrap
();
14836 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath));auto tryResult1177 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1173 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1173
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14825, mozilla::dom::quota::Severity::Error); return tryResult1173
.propagateErr(); } const auto& dbFile = tryResult1173.inspect
();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1174
)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14828, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1175.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14833, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176
;}; }())); if ((__builtin_expect(!!(tryResult1177.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1173 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1173.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14825, mozilla::dom::quota::Severity::Error); return tryResult1173.propagateErr(); } const auto& dbFile = tryResult1173.inspect();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1174)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1174.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14828, mozilla::dom::quota::Severity::Error); return tryResult1174.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14833, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176;}; }())"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14837, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } auto databaseFilePath = tryResult1177.unwrap
();
14837 }()))auto tryResult1177 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1173 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1173
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14825, mozilla::dom::quota::Severity::Error); return tryResult1173
.propagateErr(); } const auto& dbFile = tryResult1173.inspect
();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1174
)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14828, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1175.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14833, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176
;}; }())); if ((__builtin_expect(!!(tryResult1177.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1173 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1173.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14825, mozilla::dom::quota::Severity::Error); return tryResult1173.propagateErr(); } const auto& dbFile = tryResult1173.inspect();; {auto tryResult1174 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1174)::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1174.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14828, mozilla::dom::quota::Severity::Error); return tryResult1174.propagateErr(); }}; {auto tryResult1175 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1175)::ok_type>); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14833, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); }}; {auto tryResult1176 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14836, mozilla::dom::quota::Severity::Error); } return tryResult1176;}; }())"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14837, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } auto databaseFilePath = tryResult1177.unwrap
();
;
14838
14839 mDatabaseFilePath = Some(std::move(databaseFilePath));
14840 }
14841
14842 // Open directory
14843 mState = State::DirectoryOpenPending;
14844
14845 quotaManager->OpenClientDirectory({mOriginMetadata, Client::IDB})
14846 ->Then(
14847 GetCurrentSerialEventTarget(), __func__,
14848 [self = RefPtr(this)](
14849 const ClientDirectoryLockPromise::ResolveOrRejectValue& aValue) {
14850 if (aValue.IsResolve()) {
14851 self->DirectoryLockAcquired(aValue.ResolveValue());
14852 } else {
14853 self->DirectoryLockFailed();
14854 }
14855 });
14856
14857 return NS_OK;
14858}
14859
14860nsresult FactoryOp::DirectoryOpen() {
14861 AssertIsOnOwningThread();
14862 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14862); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { *((volatile int*)__null) = 14862; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14863 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14863); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock"
")"); do { *((volatile int*)__null) = 14863; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14864
14865 if (mDatabaseName.isNothing()) {
14866 QuotaManager* const quotaManager = QuotaManager::Get();
14867 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14867); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 14867; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14868
14869 // Must set this before dispatching otherwise we will race with the IO
14870 // thread.
14871 mState = State::DirectoryWorkOpen;
14872
14873 QM_TRY(MOZ_TO_RESULT({auto tryResult1178 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1178)::ok_type
>); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) {
auto tryTempError = tryResult1178.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14875, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14875, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
14874 quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult1178 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1178)::ok_type
>); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) {
auto tryTempError = tryResult1178.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14875, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14875, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
14875 NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1178 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1178)::ok_type
>); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) {
auto tryTempError = tryResult1178.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14875, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14875, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
14876
14877 return NS_OK;
14878 }
14879
14880 mState = State::DirectoryWorkDone;
14881 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())", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14881); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(Run())"
")"); do { *((volatile int*)__null) = 14881; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
14882
14883 return NS_OK;
14884}
14885
14886nsresult FactoryOp::DirectoryWorkDone() {
14887 AssertIsOnOwningThread();
14888 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryWorkDone"
")"); do { *((volatile int*)__null) = 14888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14889 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14889); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock"
")"); do { *((volatile int*)__null) = 14889; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14890 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14890); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps"
")"); do { *((volatile int*)__null) = 14890; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14891
14892 // See if this FactoryOp needs to wait.
14893 const bool blocked = [&self = *this] {
14894 bool foundThis = false;
14895 bool blocked = false;
14896
14897 for (const auto& existingOp : Reversed(*gFactoryOps)) {
14898 if (existingOp == &self) {
14899 foundThis = true;
14900 continue;
14901 }
14902
14903 if (foundThis && self.MustWaitFor(*existingOp)) {
14904 existingOp->AddBlockingOp(self);
14905 self.AddBlockedOnOp(*existingOp);
14906 blocked = true;
14907 }
14908 }
14909
14910 return blocked;
14911 }() || [&self = *this] {
14912 QuotaClient* quotaClient = QuotaClient::GetInstance();
14913 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14913); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaClient"
")"); do { *((volatile int*)__null) = 14913; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14914
14915 if (RefPtr<Maintenance> currentMaintenance =
14916 quotaClient->GetCurrentMaintenance()) {
14917 if (self.mDatabaseName.isSome()) {
14918 if (RefPtr<DatabaseMaintenance> databaseMaintenance =
14919 currentMaintenance->GetDatabaseMaintenance(
14920 self.mDatabaseFilePath.ref())) {
14921 databaseMaintenance->WaitForCompletion(&self);
14922 return true;
14923 }
14924 } else if (currentMaintenance->HasDatabaseMaintenances()) {
14925 currentMaintenance->WaitForCompletion(&self);
14926 return true;
14927 }
14928 }
14929
14930 return false;
14931 }();
14932
14933 mState = State::DatabaseOpenPending;
14934 if (!blocked) {
14935 QM_TRY(MOZ_TO_RESULT(DatabaseOpen())){auto tryResult1179 = (ToResult(DatabaseOpen())); static_assert
(std::is_empty_v<typename decltype(tryResult1179)::ok_type
>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(DatabaseOpen())",
tryResult1179.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14935, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); }}
;
14936 }
14937
14938 return NS_OK;
14939}
14940
14941nsresult FactoryOp::SendToIOThread() {
14942 AssertIsOnOwningThread();
14943 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14943); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending"
")"); do { *((volatile int*)__null) = 14943; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14944
14945 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14945)
||
14946 !OperationMayProceed()) {
14947 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14947, "UnknownErr")
;
14948 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
14949 }
14950
14951 QuotaManager* const quotaManager = QuotaManager::Get();
14952 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14952); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 14952; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14953
14954 // Must set this before dispatching otherwise we will race with the IO thread.
14955 mState = State::DatabaseWorkOpen;
14956
14957 QM_TRY(MOZ_TO_RESULT({auto tryResult1180 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1180)::ok_type
>); if ((__builtin_expect(!!(tryResult1180.isErr()), 0))) {
auto tryTempError = tryResult1180.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14959, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14959, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
14958 quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult1180 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1180)::ok_type
>); if ((__builtin_expect(!!(tryResult1180.isErr()), 0))) {
auto tryTempError = tryResult1180.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14959, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14959, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
14959 NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1180 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1180)::ok_type
>); if ((__builtin_expect(!!(tryResult1180.isErr()), 0))) {
auto tryTempError = tryResult1180.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14959, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14959, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
14960
14961 NotifyDatabaseWorkStarted();
14962
14963 return NS_OK;
14964}
14965
14966void FactoryOp::WaitForTransactions() {
14967 AssertIsOnOwningThread();
14968 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14969); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose"
")"); do { *((volatile int*)__null) = 14969; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
14969 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14969); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose"
")"); do { *((volatile int*)__null) = 14969; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14970 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.ref().IsEmpty()"
")"); do { *((volatile int*)__null) = 14970; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14971 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14971); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 14971; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14972
14973 mState = State::WaitingForTransactionsToComplete;
14974
14975 RefPtr<WaitForTransactionsHelper> helper =
14976 new WaitForTransactionsHelper(mDatabaseId.ref(), this);
14977 helper->WaitForTransactions();
14978}
14979
14980void FactoryOp::CleanupMetadata() {
14981 AssertIsOnOwningThread();
14982
14983 for (const NotNull<RefPtr<FactoryOp>>& blockingOp : mBlocking) {
14984 blockingOp->MaybeUnblock(*this);
14985 }
14986 mBlocking.Clear();
14987
14988 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14988); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps"
")"); do { *((volatile int*)__null) = 14988; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14989 gFactoryOps->RemoveElement(this);
14990
14991 // We might get here even after QuotaManagerOpen failed, so we need to check
14992 // if we have a quota manager.
14993 quota::QuotaManager::SafeMaybeRecordQuotaClientShutdownStep(
14994 quota::Client::IDB, "An element was removed from gFactoryOps"_ns);
14995
14996 // Match the IncreaseBusyCount in AllocPBackgroundIDBFactoryRequestParent().
14997 DecreaseBusyCount();
14998}
14999
15000void FactoryOp::FinishSendResults() {
15001 AssertIsOnOwningThread();
15002 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults"
")"); do { *((volatile int*)__null) = 15002; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15003 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15003); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")"
); do { *((volatile int*)__null) = 15003; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
15004
15005 mState = State::Completed;
15006
15007 // Make sure to release the factory on this thread.
15008 mFactory = nullptr;
15009}
15010
15011nsresult FactoryOp::SendVersionChangeMessages(
15012 DatabaseActorInfo* aDatabaseActorInfo, Maybe<Database&> aOpeningDatabase,
15013 uint64_t aOldVersion, const Maybe<uint64_t>& aNewVersion) {
15014 AssertIsOnOwningThread();
15015 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15015); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseActorInfo"
")"); do { *((volatile int*)__null) = 15015; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15016 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15016); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange"
")"); do { *((volatile int*)__null) = 15016; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15017 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15017); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 15017; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15018 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15018); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 15018; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15019
15020 const uint32_t expectedCount = mDeleting ? 0 : 1;
15021 const uint32_t liveCount = aDatabaseActorInfo->mLiveDatabases.Length();
15022 if (liveCount > expectedCount) {
15023 nsTArray<MaybeBlockedDatabaseInfo> maybeBlockedDatabases;
15024 for (const auto& database : aDatabaseActorInfo->mLiveDatabases) {
15025 if ((!aOpeningDatabase || database.get() != &aOpeningDatabase.ref()) &&
15026 !database->IsClosed() &&
15027 NS_WARN_IF(!maybeBlockedDatabases.AppendElement(NS_warn_if_impl(!maybeBlockedDatabases.AppendElement( SafeRefPtr
{database.get(), AcquireStrongRefFromRawPtr{}}, fallible), "!maybeBlockedDatabases.AppendElement( SafeRefPtr{database.get(), AcquireStrongRefFromRawPtr{}}, fallible)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15029)
15028 SafeRefPtr{database.get(), AcquireStrongRefFromRawPtr{}},NS_warn_if_impl(!maybeBlockedDatabases.AppendElement( SafeRefPtr
{database.get(), AcquireStrongRefFromRawPtr{}}, fallible), "!maybeBlockedDatabases.AppendElement( SafeRefPtr{database.get(), AcquireStrongRefFromRawPtr{}}, fallible)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15029)
15029 fallible))NS_warn_if_impl(!maybeBlockedDatabases.AppendElement( SafeRefPtr
{database.get(), AcquireStrongRefFromRawPtr{}}, fallible), "!maybeBlockedDatabases.AppendElement( SafeRefPtr{database.get(), AcquireStrongRefFromRawPtr{}}, fallible)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15029)
) {
15030 return NS_ERROR_OUT_OF_MEMORY;
15031 }
15032 }
15033
15034 mMaybeBlockedDatabases = std::move(maybeBlockedDatabases);
15035 }
15036
15037 // We don't want to wait forever if we were not able to send the
15038 // message.
15039 mMaybeBlockedDatabases.RemoveLastElements(
15040 mMaybeBlockedDatabases.end() -
15041 std::remove_if(mMaybeBlockedDatabases.begin(),
15042 mMaybeBlockedDatabases.end(),
15043 [aOldVersion, &aNewVersion](auto& maybeBlockedDatabase) {
15044 return !maybeBlockedDatabase->SendVersionChange(
15045 aOldVersion, aNewVersion);
15046 }));
15047
15048 return NS_OK;
15049} // namespace indexedDB
15050
15051bool FactoryOp::MustWaitFor(const FactoryOp& aExistingOp) {
15052 AssertIsOnOwningThread();
15053
15054 // If the persistence types don't overlap, the op can proceed.
15055 if (aExistingOp.mPersistenceType != mPersistenceType) {
15056 return false;
15057 }
15058
15059 // If the origins don't overlap, the op can proceed.
15060 if (aExistingOp.mOriginMetadata.mOrigin != mOriginMetadata.mOrigin) {
15061 return false;
15062 }
15063
15064 // If the database ids don't overlap, the op can proceed.
15065 if (!aExistingOp.mDatabaseId.isNothing() && !mDatabaseId.isNothing() &&
15066 aExistingOp.mDatabaseId.ref() != mDatabaseId.ref()) {
15067 return false;
15068 }
15069
15070 return true;
15071}
15072
15073// Run() assumes that the caller holds a strong reference to the object that
15074// can't be cleared while Run() is being executed.
15075// So if you call Run() directly (as opposed to dispatching to an event queue)
15076// you need to make sure there's such a reference.
15077// See bug 1356824 for more details.
15078NS_IMETHODIMPnsresult
15079FactoryOp::Run() {
15080 const auto handleError = [this](const nsresult rv) {
15081 if (mState != State::SendingResults) {
15082 SetFailureCodeIfUnset(rv);
15083
15084 // Must set mState before dispatching otherwise we will race with the
15085 // owning thread.
15086 mState = State::SendingResults;
15087
15088 if (IsOnOwningThread()) {
15089 SendResults();
15090 } else {
15091 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15092); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
")"); do { *((volatile int*)__null) = 15092; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
15092 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15092); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
")"); do { *((volatile int*)__null) = 15092; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
15093 }
15094 }
15095 };
15096
15097 switch (mState) {
15098 case State::Initial:
15099 QM_WARNONLY_TRY(MOZ_TO_RESULT(Open()), handleError){auto tryResult1181 = (ToResult(Open())); static_assert(std::
is_empty_v<typename decltype(tryResult1181)::ok_type>);
if ((__builtin_expect(!!(tryResult1181.isErr()), 0))) { auto
tryTempError = tryResult1181.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(Open())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15099, mozilla::dom::quota::Severity::Warning); handleError
(tryTempError); }}
;
15100 break;
15101
15102 case State::DirectoryWorkOpen:
15103 QM_WARNONLY_TRY(MOZ_TO_RESULT(DoDirectoryWork()), handleError){auto tryResult1182 = (ToResult(DoDirectoryWork())); static_assert
(std::is_empty_v<typename decltype(tryResult1182)::ok_type
>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) {
auto tryTempError = tryResult1182.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DoDirectoryWork())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15103, mozilla::dom::quota::Severity::Warning); handleError
(tryTempError); }}
;
15104 break;
15105
15106 case State::DirectoryWorkDone:
15107 QM_WARNONLY_TRY(MOZ_TO_RESULT(DirectoryWorkDone()), handleError){auto tryResult1183 = (ToResult(DirectoryWorkDone())); static_assert
(std::is_empty_v<typename decltype(tryResult1183)::ok_type
>); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) {
auto tryTempError = tryResult1183.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DirectoryWorkDone())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15107, mozilla::dom::quota::Severity::Warning); handleError
(tryTempError); }}
;
15108 break;
15109
15110 case State::DatabaseOpenPending:
15111 QM_WARNONLY_TRY(MOZ_TO_RESULT(DatabaseOpen()), handleError){auto tryResult1184 = (ToResult(DatabaseOpen())); static_assert
(std::is_empty_v<typename decltype(tryResult1184)::ok_type
>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) {
auto tryTempError = tryResult1184.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DatabaseOpen())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15111, mozilla::dom::quota::Severity::Warning); handleError
(tryTempError); }}
;
15112 break;
15113
15114 case State::DatabaseWorkOpen:
15115 QM_WARNONLY_TRY(MOZ_TO_RESULT(DoDatabaseWork()), handleError){auto tryResult1185 = (ToResult(DoDatabaseWork())); static_assert
(std::is_empty_v<typename decltype(tryResult1185)::ok_type
>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) {
auto tryTempError = tryResult1185.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DoDatabaseWork())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15115, mozilla::dom::quota::Severity::Warning); handleError
(tryTempError); }}
;
15116 break;
15117
15118 case State::BeginVersionChange:
15119 QM_WARNONLY_TRY(MOZ_TO_RESULT(BeginVersionChange()), handleError){auto tryResult1186 = (ToResult(BeginVersionChange())); static_assert
(std::is_empty_v<typename decltype(tryResult1186)::ok_type
>); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) {
auto tryTempError = tryResult1186.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(BeginVersionChange())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15119, mozilla::dom::quota::Severity::Warning); handleError
(tryTempError); }}
;
15120 break;
15121
15122 case State::WaitingForTransactionsToComplete:
15123 QM_WARNONLY_TRY(MOZ_TO_RESULT(DispatchToWorkThread()), handleError){auto tryResult1187 = (ToResult(DispatchToWorkThread())); static_assert
(std::is_empty_v<typename decltype(tryResult1187)::ok_type
>); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) {
auto tryTempError = tryResult1187.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DispatchToWorkThread())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15123, mozilla::dom::quota::Severity::Warning); handleError
(tryTempError); }}
;
15124 break;
15125
15126 case State::DatabaseWorkVersionUpdate:
15127 QM_WARNONLY_TRY(MOZ_TO_RESULT(DoVersionUpdate()), handleError){auto tryResult1188 = (ToResult(DoVersionUpdate())); static_assert
(std::is_empty_v<typename decltype(tryResult1188)::ok_type
>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) {
auto tryTempError = tryResult1188.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DoVersionUpdate())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15127, mozilla::dom::quota::Severity::Warning); handleError
(tryTempError); }}
;
15128 break;
15129
15130 case State::SendingResults:
15131 SendResults();
15132 break;
15133
15134 default:
15135 MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15135); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")"
); do { *((volatile int*)__null) = 15135; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
15136 }
15137
15138 return NS_OK;
15139}
15140
15141void FactoryOp::DirectoryLockAcquired(ClientDirectoryLock* aLock) {
15142 AssertIsOnOwningThread();
15143 MOZ_ASSERT(aLock)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aLock)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(aLock))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("aLock", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15143); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLock" ")"
); do { *((volatile int*)__null) = 15143; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
15144 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { *((volatile int*)__null) = 15144; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15145 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock"
")"); do { *((volatile int*)__null) = 15145; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15146
15147 mDirectoryLock = aLock;
15148
15149 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15149); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock->Id() >= 0"
")"); do { *((volatile int*)__null) = 15149; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15150 mDirectoryLockId = mDirectoryLock->Id();
15151
15152 auto cleanupAndReturn = [self = RefPtr(this)](const nsresult rv) {
15153 self->SetFailureCodeIfUnset(rv);
15154
15155 // The caller holds a strong reference to us, no need for a self reference
15156 // before calling Run().
15157
15158 self->mState = State::SendingResults;
15159 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())", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15159); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(self->Run())"
")"); do { *((volatile int*)__null) = 15159; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
15160 };
15161
15162 if (mDirectoryLock->Invalidated()) {
15163 return cleanupAndReturn(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR);
15164 }
15165
15166 QM_WARNONLY_TRY(MOZ_TO_RESULT(DirectoryOpen()), cleanupAndReturn){auto tryResult1189 = (ToResult(DirectoryOpen())); static_assert
(std::is_empty_v<typename decltype(tryResult1189)::ok_type
>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) {
auto tryTempError = tryResult1189.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DirectoryOpen())", tryTempError,
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15166, mozilla::dom::quota::Severity::Warning); cleanupAndReturn
(tryTempError); }}
;
15167}
15168
15169void FactoryOp::DirectoryLockFailed() {
15170 AssertIsOnOwningThread();
15171 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15171); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { *((volatile int*)__null) = 15171; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15172 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15172); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock"
")"); do { *((volatile int*)__null) = 15172; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15173
15174 if (!HasFailed()) {
15175 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15175, "UnknownErr")
;
15176 SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
15177 }
15178
15179 // The caller holds a strong reference to us, no need for a self reference
15180 // before calling Run().
15181
15182 mState = State::SendingResults;
15183 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())", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15183); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(Run())"
")"); do { *((volatile int*)__null) = 15183; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
15184}
15185
15186nsresult FactoryRequestOp::DoDirectoryWork() {
15187 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15187); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { *((volatile int*)__null) = 15187; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
15188}
15189
15190void FactoryRequestOp::ActorDestroy(ActorDestroyReason aWhy) {
15191 AssertIsOnBackgroundThread();
15192
15193 NoteActorDestroyed();
15194}
15195
15196OpenDatabaseOp::OpenDatabaseOp(SafeRefPtr<Factory> aFactory,
15197 const Maybe<ContentParentId>& aContentParentId,
15198 const CommonFactoryRequestParams& aParams)
15199 : FactoryRequestOp(std::move(aFactory), aContentParentId, aParams,
15200 /* aDeleting */ false),
15201 mMetadata(MakeSafeRefPtr<FullDatabaseMetadata>(aParams.metadata())),
15202 mRequestedVersion(aParams.metadata().version()),
15203 mVersionChangeOp(nullptr),
15204 mTelemetryId(0) {}
15205
15206void OpenDatabaseOp::ActorDestroy(ActorDestroyReason aWhy) {
15207 AssertIsOnOwningThread();
15208
15209 FactoryRequestOp::ActorDestroy(aWhy);
15210
15211 if (mVersionChangeOp) {
15212 mVersionChangeOp->NoteActorDestroyed();
15213 }
15214}
15215
15216nsresult OpenDatabaseOp::DatabaseOpen() {
15217 AssertIsOnOwningThread();
15218 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15218); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending"
")"); do { *((volatile int*)__null) = 15218; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15219
15220 nsresult rv = SendToIOThread();
15221 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15221)
) {
15222 return rv;
15223 }
15224
15225 return NS_OK;
15226}
15227
15228nsresult OpenDatabaseOp::DoDatabaseWork() {
15229 AssertIsOnIOThread();
15230 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { *((volatile int*)__null) = 15230; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15231
15232 AUTO_PROFILER_LABEL("OpenDatabaseOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject15232( "OpenDatabaseOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
15233
15234 QM_TRY(OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread()),{auto tryResult1190 = (OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread
())); static_assert(std::is_empty_v<typename decltype(tryResult1190
)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr
()), 0))) { auto tryTempError = tryResult1190.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15235, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15235, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
15235 NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1190 = (OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread
())); static_assert(std::is_empty_v<typename decltype(tryResult1190
)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr
()), 0))) { auto tryTempError = tryResult1190.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15235, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15235, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
15236
15237 if (!OperationMayProceed()) {
15238 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15238, "UnknownErr")
;
15239 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
15240 }
15241
15242 const nsAString& databaseName = mCommonParams.metadata().name();
15243 const PersistenceType persistenceType =
15244 mCommonParams.metadata().persistenceType();
15245
15246 QuotaManager* const quotaManager = QuotaManager::Get();
15247 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15247); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 15247; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15248
15249 QM_TRY_INSPECT(auto tryResult1193 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1191.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191
;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; }())); if ((__builtin_expect(!!(tryResult1193.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1191.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; }())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15259, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); } const auto& dbDirectory = tryResult1193
.inspect();
15250 const auto& dbDirectory,auto tryResult1193 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1191.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191
;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; }())); if ((__builtin_expect(!!(tryResult1193.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1191.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; }())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15259, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); } const auto& dbDirectory = tryResult1193
.inspect();
15251 ([persistenceType, &quotaManager,auto tryResult1193 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1191.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191
;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; }())); if ((__builtin_expect(!!(tryResult1193.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1191.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; }())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15259, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); } const auto& dbDirectory = tryResult1193
.inspect();
15252 this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> {auto tryResult1193 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1191.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191
;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; }())); if ((__builtin_expect(!!(tryResult1193.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1191.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; }())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15259, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); } const auto& dbDirectory = tryResult1193
.inspect();
15253 if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) {auto tryResult1193 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1191.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191
;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; }())); if ((__builtin_expect(!!(tryResult1193.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1191.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; }())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15259, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); } const auto& dbDirectory = tryResult1193
.inspect();
15254 QM_TRY_RETURN(quotaManager->GetOriginDirectory(mOriginMetadata));auto tryResult1193 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1191.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191
;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; }())); if ((__builtin_expect(!!(tryResult1193.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1191.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; }())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15259, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); } const auto& dbDirectory = tryResult1193
.inspect();
15255 }auto tryResult1193 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1191.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191
;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; }())); if ((__builtin_expect(!!(tryResult1193.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1191.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; }())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15259, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); } const auto& dbDirectory = tryResult1193
.inspect();
15256
15257 QM_TRY_RETURN(auto tryResult1193 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1191.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191
;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; }())); if ((__builtin_expect(!!(tryResult1193.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1191.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; }())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15259, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); } const auto& dbDirectory = tryResult1193
.inspect();
15258 quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata));auto tryResult1193 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1191.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191
;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; }())); if ((__builtin_expect(!!(tryResult1193.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1191.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; }())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15259, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); } const auto& dbDirectory = tryResult1193
.inspect();
15259 }()))auto tryResult1193 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1191.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191
;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; }())); if ((__builtin_expect(!!(tryResult1193.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1191 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1191.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15254, mozilla::dom::quota::Severity::Error); } return tryResult1191;}; } {auto tryResult1192 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15258, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; }())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15259, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); } const auto& dbDirectory = tryResult1193
.inspect();
;
15260
15261 QM_TRY(MOZ_TO_RESULT({auto tryResult1194 = (ToResult(dbDirectory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1194
)::ok_type>); if ((__builtin_expect(!!(tryResult1194.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbDirectory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1194.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15262, mozilla::dom::quota::Severity::Error); return tryResult1194
.propagateErr(); }}
15262 dbDirectory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult1194 = (ToResult(dbDirectory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1194
)::ok_type>); if ((__builtin_expect(!!(tryResult1194.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbDirectory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1194.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15262, mozilla::dom::quota::Severity::Error); return tryResult1194
.propagateErr(); }}
;
15263
15264 {
15265 QM_TRY_INSPECT(const bool& exists,auto tryResult1195 = (::mozilla::ToResultInvokeMember( (dbDirectory
), &::mozilla::detail::DerefedType<decltype(dbDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult1195.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbDirectory), &::mozilla::detail::DerefedType<decltype(dbDirectory)>::Exists)"
, tryResult1195.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15266, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); } const bool& exists = tryResult1195.inspect
();
15266 MOZ_TO_RESULT_INVOKE_MEMBER(dbDirectory, Exists))auto tryResult1195 = (::mozilla::ToResultInvokeMember( (dbDirectory
), &::mozilla::detail::DerefedType<decltype(dbDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult1195.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbDirectory), &::mozilla::detail::DerefedType<decltype(dbDirectory)>::Exists)"
, tryResult1195.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15266, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); } const bool& exists = tryResult1195.inspect
();
;
15267
15268 if (!exists) {
15269 QM_TRY(MOZ_TO_RESULT(dbDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))){auto tryResult1196 = (ToResult(dbDirectory->Create(nsIFile
::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename
decltype(tryResult1196)::ok_type>); if ((__builtin_expect
(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryResult1196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15269, mozilla::dom::quota::Severity::Error); return tryResult1196
.propagateErr(); }}
;
15270 }
15271#ifdef DEBUG1
15272 else {
15273 bool isDirectory;
15274 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15274); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(dbDirectory->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 15274; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15275 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15275); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 15275; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15276 }
15277#endif
15278 }
15279
15280 const auto databaseFilenameBase =
15281 GetDatabaseFilenameBase(databaseName, mOriginMetadata.mIsPrivate);
15282
15283 QM_TRY_INSPECT(const auto& markerFile,auto tryResult1197 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix
+ databaseFilenameBase)); if ((__builtin_expect(!!(tryResult1197
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)"
, tryResult1197.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15285, mozilla::dom::quota::Severity::Error); return tryResult1197
.propagateErr(); } const auto& markerFile = tryResult1197
.inspect();
15284 CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix +auto tryResult1197 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix
+ databaseFilenameBase)); if ((__builtin_expect(!!(tryResult1197
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)"
, tryResult1197.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15285, mozilla::dom::quota::Severity::Error); return tryResult1197
.propagateErr(); } const auto& markerFile = tryResult1197
.inspect();
15285 databaseFilenameBase))auto tryResult1197 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix
+ databaseFilenameBase)); if ((__builtin_expect(!!(tryResult1197
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)"
, tryResult1197.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15285, mozilla::dom::quota::Severity::Error); return tryResult1197
.propagateErr(); } const auto& markerFile = tryResult1197
.inspect();
;
15286
15287 QM_TRY_INSPECT(const bool& exists,auto tryResult1198 = (::mozilla::ToResultInvokeMember( (markerFile
), &::mozilla::detail::DerefedType<decltype(markerFile
)>::Exists)); if ((__builtin_expect(!!(tryResult1198.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (markerFile), &::mozilla::detail::DerefedType<decltype(markerFile)>::Exists)"
, tryResult1198.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15288, mozilla::dom::quota::Severity::Error); return tryResult1198
.propagateErr(); } const bool& exists = tryResult1198.inspect
();
15288 MOZ_TO_RESULT_INVOKE_MEMBER(markerFile, Exists))auto tryResult1198 = (::mozilla::ToResultInvokeMember( (markerFile
), &::mozilla::detail::DerefedType<decltype(markerFile
)>::Exists)); if ((__builtin_expect(!!(tryResult1198.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (markerFile), &::mozilla::detail::DerefedType<decltype(markerFile)>::Exists)"
, tryResult1198.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15288, mozilla::dom::quota::Severity::Error); return tryResult1198
.propagateErr(); } const bool& exists = tryResult1198.inspect
();
;
15289
15290 if (exists) {
15291 // Delete the database and directroy since they should be deleted in
15292 // previous operation.
15293 // Note: only update usage to the QuotaManager when mEnforcingQuota == true
15294 QM_TRY(MOZ_TO_RESULT(RemoveDatabaseFilesAndDirectory({auto tryResult1199 = (ToResult(RemoveDatabaseFilesAndDirectory
( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager
: nullptr, persistenceType, mOriginMetadata, databaseName)))
; static_assert(std::is_empty_v<typename decltype(tryResult1199
)::ok_type>); if ((__builtin_expect(!!(tryResult1199.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))"
, tryResult1199.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15297, mozilla::dom::quota::Severity::Error); return tryResult1199
.propagateErr(); }}
15295 *dbDirectory, databaseFilenameBase,{auto tryResult1199 = (ToResult(RemoveDatabaseFilesAndDirectory
( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager
: nullptr, persistenceType, mOriginMetadata, databaseName)))
; static_assert(std::is_empty_v<typename decltype(tryResult1199
)::ok_type>); if ((__builtin_expect(!!(tryResult1199.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))"
, tryResult1199.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15297, mozilla::dom::quota::Severity::Error); return tryResult1199
.propagateErr(); }}
15296 mEnforcingQuota ? quotaManager : nullptr, persistenceType,{auto tryResult1199 = (ToResult(RemoveDatabaseFilesAndDirectory
( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager
: nullptr, persistenceType, mOriginMetadata, databaseName)))
; static_assert(std::is_empty_v<typename decltype(tryResult1199
)::ok_type>); if ((__builtin_expect(!!(tryResult1199.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))"
, tryResult1199.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15297, mozilla::dom::quota::Severity::Error); return tryResult1199
.propagateErr(); }}
15297 mOriginMetadata, databaseName))){auto tryResult1199 = (ToResult(RemoveDatabaseFilesAndDirectory
( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager
: nullptr, persistenceType, mOriginMetadata, databaseName)))
; static_assert(std::is_empty_v<typename decltype(tryResult1199
)::ok_type>); if ((__builtin_expect(!!(tryResult1199.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))"
, tryResult1199.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15297, mozilla::dom::quota::Severity::Error); return tryResult1199
.propagateErr(); }}
;
15298 }
15299
15300 QM_TRY_INSPECT(auto tryResult1200 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1200.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)"
, tryResult1200.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15302, mozilla::dom::quota::Severity::Error); return tryResult1200
.propagateErr(); } const auto& dbFile = tryResult1200.inspect
();
15301 const auto& dbFile,auto tryResult1200 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1200.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)"
, tryResult1200.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15302, mozilla::dom::quota::Severity::Error); return tryResult1200
.propagateErr(); } const auto& dbFile = tryResult1200.inspect
();
15302 CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix))auto tryResult1200 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1200.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)"
, tryResult1200.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15302, mozilla::dom::quota::Severity::Error); return tryResult1200
.propagateErr(); } const auto& dbFile = tryResult1200.inspect
();
;
15303
15304 mTelemetryId = TelemetryIdForFile(dbFile);
15305
15306#ifdef DEBUG1
15307 {
15308 QM_TRY_INSPECT(auto tryResult1201 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(
tryResult1201.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1201.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15310, mozilla::dom::quota::Severity::Error); return tryResult1201
.propagateErr(); } const auto& databaseFilePath = tryResult1201
.inspect();
15309 const auto& databaseFilePath,auto tryResult1201 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(
tryResult1201.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1201.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15310, mozilla::dom::quota::Severity::Error); return tryResult1201
.propagateErr(); } const auto& databaseFilePath = tryResult1201
.inspect();
15310 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath))auto tryResult1201 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(
tryResult1201.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1201.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15310, mozilla::dom::quota::Severity::Error); return tryResult1201
.propagateErr(); } const auto& databaseFilePath = tryResult1201
.inspect();
;
15311
15312 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFilePath == mDatabaseFilePath.ref()"
")"); do { *((volatile int*)__null) = 15312; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15313 }
15314#endif
15315
15316 QM_TRY_INSPECT(auto tryResult1202 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult1202.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15319, mozilla::dom::quota::Severity::Error); return tryResult1202
.propagateErr(); } const auto& fmDirectory = tryResult1202
.inspect();
15317 const auto& fmDirectory,auto tryResult1202 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult1202.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15319, mozilla::dom::quota::Severity::Error); return tryResult1202
.propagateErr(); } const auto& fmDirectory = tryResult1202
.inspect();
15318 CloneFileAndAppend(*dbDirectory, databaseFilenameBase +auto tryResult1202 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult1202.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15319, mozilla::dom::quota::Severity::Error); return tryResult1202
.propagateErr(); } const auto& fmDirectory = tryResult1202
.inspect();
15319 kFileManagerDirectoryNameSuffix))auto tryResult1202 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult1202.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15319, mozilla::dom::quota::Severity::Error); return tryResult1202
.propagateErr(); } const auto& fmDirectory = tryResult1202
.inspect();
;
15320
15321 IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get();
15322 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15322); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")");
do { *((volatile int*)__null) = 15322; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
15323
15324 SafeRefPtr<DatabaseFileManager> fileManager = idm->GetFileManager(
15325 persistenceType, mOriginMetadata.mOrigin, databaseName);
15326
15327 if (!fileManager) {
15328 fileManager = MakeSafeRefPtr<DatabaseFileManager>(
15329 persistenceType, mOriginMetadata, databaseName, mDatabaseId.ref(),
15330 mDatabaseFilePath.ref(), mEnforcingQuota, mInPrivateBrowsing);
15331 }
15332
15333 Maybe<const CipherKey> maybeKey =
15334 mInPrivateBrowsing
15335 ? Some(fileManager->MutableCipherKeyManagerRef().Ensure())
15336 : Nothing();
15337
15338 MOZ_RELEASE_ASSERT(mInPrivateBrowsing == maybeKey.isSome())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInPrivateBrowsing == maybeKey.isSome())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInPrivateBrowsing == maybeKey.isSome()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mInPrivateBrowsing == maybeKey.isSome()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15338); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "mInPrivateBrowsing == maybeKey.isSome()"
")"); do { *((volatile int*)__null) = 15338; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15339
15340 QM_TRY_UNWRAP(auto tryResult1203 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1203.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1203.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15344, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1203.unwrap();
15341 NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1203 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1203.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1203.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15344, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1203.unwrap();
15342 CreateStorageConnection(*dbFile, *fmDirectory, databaseName,auto tryResult1203 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1203.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1203.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15344, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1203.unwrap();
15343 mOriginMetadata.mOrigin, mDirectoryLockId,auto tryResult1203 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1203.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1203.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15344, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1203.unwrap();
15344 mTelemetryId, maybeKey))auto tryResult1203 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1203.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1203.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15344, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1203.unwrap();
;
15345
15346 AutoSetProgressHandler asph;
15347 QM_TRY(MOZ_TO_RESULT(asph.Register(*connection, this))){auto tryResult1204 = (ToResult(asph.Register(*connection, this
))); static_assert(std::is_empty_v<typename decltype(tryResult1204
)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(asph.Register(*connection, this))"
, tryResult1204.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15347, mozilla::dom::quota::Severity::Error); return tryResult1204
.propagateErr(); }}
;
15348
15349 QM_TRY(MOZ_TO_RESULT(LoadDatabaseInformation(*connection))){auto tryResult1205 = (ToResult(LoadDatabaseInformation(*connection
))); static_assert(std::is_empty_v<typename decltype(tryResult1205
)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(LoadDatabaseInformation(*connection))"
, tryResult1205.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15349, mozilla::dom::quota::Severity::Error); return tryResult1205
.propagateErr(); }}
;
15350
15351 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15351); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mNextObjectStoreId > mMetadata->mObjectStores.Count()"
")"); do { *((volatile int*)__null) = 15351; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15352 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15352); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mNextIndexId > 0"
")"); do { *((volatile int*)__null) = 15352; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15353
15354 // See if we need to do a versionchange transaction
15355
15356 // Optional version semantics.
15357 if (!mRequestedVersion) {
15358 // If the requested version was not specified and the database was created,
15359 // treat it as if version 1 were requested.
15360 // Otherwise, treat it as if the current version were requested.
15361 mRequestedVersion = mMetadata->mCommonMetadata.version() == 0
15362 ? 1
15363 : mMetadata->mCommonMetadata.version();
15364 }
15365
15366 QM_TRY(OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion),{auto tryResult1206 = (OkIf(mMetadata->mCommonMetadata.version
() <= mRequestedVersion)); static_assert(std::is_empty_v<
typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect
(!!(tryResult1206.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1206.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15367, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_VERSION_ERR); }}
15367 NS_ERROR_DOM_INDEXEDDB_VERSION_ERR){auto tryResult1206 = (OkIf(mMetadata->mCommonMetadata.version
() <= mRequestedVersion)); static_assert(std::is_empty_v<
typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect
(!!(tryResult1206.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1206.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15367, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_VERSION_ERR); }}
;
15368
15369 if (!fileManager->Initialized()) {
15370 QM_TRY(MOZ_TO_RESULT(fileManager->Init({auto tryResult1207 = (ToResult(fileManager->Init( fmDirectory
, mMetadata->mCommonMetadata.version(), *connection))); static_assert
(std::is_empty_v<typename decltype(tryResult1207)::ok_type
>); if ((__builtin_expect(!!(tryResult1207.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(fileManager->Init( fmDirectory, mMetadata->mCommonMetadata.version(), *connection))"
, tryResult1207.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15371, mozilla::dom::quota::Severity::Error); return tryResult1207
.propagateErr(); }}
15371 fmDirectory, mMetadata->mCommonMetadata.version(), *connection))){auto tryResult1207 = (ToResult(fileManager->Init( fmDirectory
, mMetadata->mCommonMetadata.version(), *connection))); static_assert
(std::is_empty_v<typename decltype(tryResult1207)::ok_type
>); if ((__builtin_expect(!!(tryResult1207.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(fileManager->Init( fmDirectory, mMetadata->mCommonMetadata.version(), *connection))"
, tryResult1207.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15371, mozilla::dom::quota::Severity::Error); return tryResult1207
.propagateErr(); }}
;
15372
15373 idm->AddFileManager(fileManager.clonePtr());
15374 }
15375
15376 mFileManager = std::move(fileManager);
15377
15378 // Must close connection before dispatching otherwise we might race with the
15379 // connection thread which needs to open the same database.
15380 asph.Unregister();
15381
15382 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())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15382); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->Close())"
")"); do { *((volatile int*)__null) = 15382; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
15383
15384 SleepIfEnabled(
15385 StaticPrefs::dom_indexedDB_databaseInitialization_pauseOnIOThreadMs());
15386
15387 // Must set mState before dispatching otherwise we will race with the owning
15388 // thread.
15389 mState = (mMetadata->mCommonMetadata.version() == mRequestedVersion)
15390 ? State::SendingResults
15391 : State::BeginVersionChange;
15392
15393 QM_TRY(MOZ_TO_RESULT({auto tryResult1208 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1208)::ok_type>); if ((__builtin_expect
(!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1208.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15394, mozilla::dom::quota::Severity::Error); return tryResult1208
.propagateErr(); }}
15394 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1208 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1208)::ok_type>); if ((__builtin_expect
(!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1208.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15394, mozilla::dom::quota::Severity::Error); return tryResult1208
.propagateErr(); }}
;
15395
15396 return NS_OK;
15397}
15398
15399nsresult OpenDatabaseOp::LoadDatabaseInformation(
15400 mozIStorageConnection& aConnection) {
15401 AssertIsOnIOThread();
15402 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15402); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata"
")"); do { *((volatile int*)__null) = 15402; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15403
15404 {
15405 // Load version information.
15406 QM_TRY_INSPECT(auto tryResult1209 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1209.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1209.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15410, mozilla::dom::quota::Severity::Error); return tryResult1209
.propagateErr(); } const auto& stmt = tryResult1209.inspect
();
15407 const auto& stmt,auto tryResult1209 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1209.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1209.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15410, mozilla::dom::quota::Severity::Error); return tryResult1209
.propagateErr(); } const auto& stmt = tryResult1209.inspect
();
15408 CreateAndExecuteSingleStepStatement<auto tryResult1209 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1209.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1209.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15410, mozilla::dom::quota::Severity::Error); return tryResult1209
.propagateErr(); } const auto& stmt = tryResult1209.inspect
();
15409 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1209 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1209.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1209.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15410, mozilla::dom::quota::Severity::Error); return tryResult1209
.propagateErr(); } const auto& stmt = tryResult1209.inspect
();
15410 aConnection, "SELECT name, origin, version FROM database"_ns))auto tryResult1209 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1209.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1209.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15410, mozilla::dom::quota::Severity::Error); return tryResult1209
.propagateErr(); } const auto& stmt = tryResult1209.inspect
();
;
15411
15412 QM_TRY(OkIf(stmt), NS_ERROR_FILE_CORRUPTED){auto tryResult1210 = (OkIf(stmt)); static_assert(std::is_empty_v
<typename decltype(tryResult1210)::ok_type>); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1210.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(stmt)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15412, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(stmt)", tryTempError
, NS_ERROR_FILE_CORRUPTED); }}
;
15413
15414 QM_TRY_INSPECT(const auto& databaseName, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1211 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1211.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15415, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); } const auto& databaseName = tryResult1211
.inspect();
15415 nsString, stmt, GetString, 0))auto tryResult1211 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1211.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15415, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); } const auto& databaseName = tryResult1211
.inspect();
;
15416
15417 QM_TRY(OkIf(mCommonParams.metadata().name() == databaseName),{auto tryResult1212 = (OkIf(mCommonParams.metadata().name() ==
databaseName)); static_assert(std::is_empty_v<typename decltype
(tryResult1212)::ok_type>); if ((__builtin_expect(!!(tryResult1212
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1212.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCommonParams.metadata().name() == databaseName)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15418, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mCommonParams.metadata().name() == databaseName)"
, tryTempError, NS_ERROR_FILE_CORRUPTED); }}
15418 NS_ERROR_FILE_CORRUPTED){auto tryResult1212 = (OkIf(mCommonParams.metadata().name() ==
databaseName)); static_assert(std::is_empty_v<typename decltype
(tryResult1212)::ok_type>); if ((__builtin_expect(!!(tryResult1212
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1212.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCommonParams.metadata().name() == databaseName)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15418, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mCommonParams.metadata().name() == databaseName)"
, tryTempError, NS_ERROR_FILE_CORRUPTED); }}
;
15419
15420 QM_TRY_INSPECT(const auto& origin, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1213 = (::mozilla::ToResultInvoke< nsCString
>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetUTF8String), (stmt), 1)); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetUTF8String), (stmt), 1)"
, tryResult1213.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); } const auto& origin = tryResult1213.inspect
();
15421 nsCString, stmt, GetUTF8String, 1))auto tryResult1213 = (::mozilla::ToResultInvoke< nsCString
>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetUTF8String), (stmt), 1)); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetUTF8String), (stmt), 1)"
, tryResult1213.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); } const auto& origin = tryResult1213.inspect
();
;
15422
15423 // We can't just compare these strings directly. See bug 1339081 comment 69.
15424 QM_TRY(OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin,{auto tryResult1214 = (OkIf(QuotaManager::AreOriginsEqualOnDisk
(mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v
<typename decltype(tryResult1214)::ok_type>); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1214.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15426, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, NS_ERROR_FILE_CORRUPTED); }}
15425 origin)),{auto tryResult1214 = (OkIf(QuotaManager::AreOriginsEqualOnDisk
(mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v
<typename decltype(tryResult1214)::ok_type>); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1214.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15426, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, NS_ERROR_FILE_CORRUPTED); }}
15426 NS_ERROR_FILE_CORRUPTED){auto tryResult1214 = (OkIf(QuotaManager::AreOriginsEqualOnDisk
(mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v
<typename decltype(tryResult1214)::ok_type>); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1214.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15426, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, NS_ERROR_FILE_CORRUPTED); }}
;
15427
15428 QM_TRY_INSPECT(const int64_t& version,auto tryResult1215 = (::mozilla::ToResultInvokeMember( (stmt)
, &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 2)); if ((__builtin_expect(!!(tryResult1215.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 2)"
, tryResult1215.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); return tryResult1215
.propagateErr(); } const int64_t& version = tryResult1215
.inspect();
15429 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 2))auto tryResult1215 = (::mozilla::ToResultInvokeMember( (stmt)
, &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 2)); if ((__builtin_expect(!!(tryResult1215.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 2)"
, tryResult1215.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); return tryResult1215
.propagateErr(); } const int64_t& version = tryResult1215
.inspect();
;
15430
15431 mMetadata->mCommonMetadata.version() = uint64_t(version);
15432 }
15433
15434 ObjectStoreTable& objectStores = mMetadata->mObjectStores;
15435
15436 QM_TRY_INSPECT(auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15437 const auto& lastObjectStoreId,auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15438 ([&aConnection,auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15439 &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> {auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15440 // Load object store names and ids.auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15441 QM_TRY_INSPECT(auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15442 const auto& stmt,auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15443 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15444 nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15445 "SELECT id, auto_increment, name, key_path "auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15446 "FROM object_store"_ns));auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15447
15448 IndexOrObjectStoreId lastObjectStoreId = 0;auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15449
15450 QM_TRY(CollectWhileHasResult(auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15451 *stmt,auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15452 [&lastObjectStoreId, &objectStores,auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15453 usedIds = Maybe<nsTHashSet<uint64_t>>{},auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15454 usedNames = Maybe<nsTHashSet<nsString>>{}](auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15455 auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15456 QM_TRY_INSPECT(const IndexOrObjectStoreId& objectStoreId,auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15457 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 0));auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15458
15459 if (!usedIds) {auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15460 usedIds.emplace();auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15461 }auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15462
15463 QM_TRY(OkIf(objectStoreId > 0), Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15464 QM_TRY(OkIf(!usedIds.ref().Contains(objectStoreId)),auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15465 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15466
15467 QM_TRY(OkIf(usedIds.ref().Insert(objectStoreId, fallible)),auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15468 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15469
15470 nsString name;auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15471 QM_TRY(MOZ_TO_RESULT(stmt.GetString(2, name)));auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15472
15473 if (!usedNames) {auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15474 usedNames.emplace();auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15475 }auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15476
15477 QM_TRY(OkIf(!usedNames.ref().Contains(name)),auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15478 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15479
15480 QM_TRY(OkIf(usedNames.ref().Insert(name, fallible)),auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15481 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15482
15483 ObjectStoreMetadata commonMetadata;auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15484 commonMetadata.id() = objectStoreId;auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15485 commonMetadata.name() = std::move(name);auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15486
15487 QM_TRY_INSPECT(auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15488 const int32_t& columnType,auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15489 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetTypeOfIndex, 3));auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15490
15491 if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) {auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15492 commonMetadata.keyPath() = KeyPath(0);auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15493 } else {auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15494 MOZ_ASSERT(columnType == mozIStorageStatement::VALUE_TYPE_TEXT);auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15495
15496 nsString keyPathSerialization;auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15497 QM_TRY(MOZ_TO_RESULT(stmt.GetString(3, keyPathSerialization)));auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15498
15499 commonMetadata.keyPath() =auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15500 KeyPath::DeserializeFromString(keyPathSerialization);auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15501 QM_TRY(OkIf(commonMetadata.keyPath().IsValid()),auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15502 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15503 }auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15504
15505 QM_TRY_INSPECT(const int64_t& nextAutoIncrementId,auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15506 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1));auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15507
15508 commonMetadata.autoIncrement() = !!nextAutoIncrementId;auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15509
15510 QM_TRY(OkIf(objectStores.InsertOrUpdate(auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15511 objectStoreId,auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15512 MakeSafeRefPtr<FullObjectStoreMetadata>(auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15513 std::move(commonMetadata),auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15514 FullObjectStoreMetadata::AutoIncrementIds{auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15515 nextAutoIncrementId, nextAutoIncrementId}),auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15516 fallible)),auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15517 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15518
15519 lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId);auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15520
15521 return Ok{};auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15522 }));auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15523
15524 return lastObjectStoreId;auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
15525 }()))auto tryResult1230 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1216 = (::mozilla::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(!!(tryResult1216
.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)"
, tryResult1216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15446, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); } const auto& stmt = tryResult1216.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15457, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1218)::ok_type
>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1218
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15463, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1219
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15465, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15468, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15471, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1222
)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15489, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } const int32_t& columnType = tryResult1224
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect
(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1225
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1226)::ok_type>); if ((__builtin_expect
(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1227.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15517, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229
)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15522, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1216 = (::mozilla::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(!!(tryResult1216.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)\", tryResult1216.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15446, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); } const auto& stmt = tryResult1216.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1229 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1221.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1224.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15494); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1225.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, 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(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.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 tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1217.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15457, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1217.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1218 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15463, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1219 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1219)::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1219.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15465, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1220 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15468, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1221 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1221.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1222 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1224 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1224.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15489, mozilla::dom::quota::Severity::Error); return tryResult1224.propagateErr(); } const int32_t& columnType = tryResult1224.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15494); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15494; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1225 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1225.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1226 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1227 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15506, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1227.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1228 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15517, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15525, mozilla::dom::quota::Severity::Error); return tryResult1230
.propagateErr(); } const auto& lastObjectStoreId = tryResult1230
.inspect();
;
15526
15527 QM_TRY_INSPECT(auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15528 const auto& lastIndexId,auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15529 ([this, &aConnection,auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15530 &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> {auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15531 // Load index informationauto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15532 QM_TRY_INSPECT(auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15533 const auto& stmt,auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15534 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15535 nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15536 "SELECT "auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15537 "id, object_store_id, name, key_path, "auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15538 "unique_index, multientry, "auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15539 "locale, is_auto_locale "auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15540 "FROM object_store_index"_ns));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15541
15542 IndexOrObjectStoreId lastIndexId = 0;auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15543
15544 QM_TRY(CollectWhileHasResult(auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15545 *stmt,auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15546 [this, &lastIndexId, &objectStores, &aConnection,auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15547 usedIds = Maybe<nsTHashSet<uint64_t>>{},auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15548 usedNames = Maybe<nsTHashSet<nsString>>{}](auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15549 auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15550 QM_TRY_INSPECT(const IndexOrObjectStoreId& objectStoreId,auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15551 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15552
15553 // XXX Why does this return NS_ERROR_OUT_OF_MEMORY if we don'tauto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15554 // know the object store id?auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15555
15556 auto objectStoreMetadata = objectStores.Lookup(objectStoreId);auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15557 QM_TRY(OkIf(static_cast<bool>(objectStoreMetadata)),auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15558 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15559
15560 MOZ_ASSERT((*objectStoreMetadata)->mCommonMetadata.id() ==auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15561 objectStoreId);auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15562
15563 IndexOrObjectStoreId indexId;auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15564 QM_TRY(MOZ_TO_RESULT(stmt.GetInt64(0, &indexId)));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15565
15566 if (!usedIds) {auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15567 usedIds.emplace();auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15568 }auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15569
15570 QM_TRY(OkIf(indexId > 0), Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15571 QM_TRY(OkIf(!usedIds.ref().Contains(indexId)),auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15572 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15573
15574 QM_TRY(OkIf(usedIds.ref().Insert(indexId, fallible)),auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15575 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15576
15577 nsString name;auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15578 QM_TRY(MOZ_TO_RESULT(stmt.GetString(2, name)));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15579
15580 const nsAutoString hashName =auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15581 IntToString(indexId) + u":"_ns + name;auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15582
15583 if (!usedNames) {auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15584 usedNames.emplace();auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15585 }auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15586
15587 QM_TRY(OkIf(!usedNames.ref().Contains(hashName)),auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15588 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15589
15590 QM_TRY(OkIf(usedNames.ref().Insert(hashName, fallible)),auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15591 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15592
15593 auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>();auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15594 indexMetadata->mCommonMetadata.id() = indexId;auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15595 indexMetadata->mCommonMetadata.name() = name;auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15596
15597#ifdef DEBUGauto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15598 {auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15599 int32_t columnType;auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15600 nsresult rv = stmt.GetTypeOfIndex(3, &columnType);auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15601 MOZ_ASSERT(NS_SUCCEEDED(rv));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15602 MOZ_ASSERT(columnType != mozIStorageStatement::VALUE_TYPE_NULL);auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15603 }auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15604#endifauto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15605
15606 nsString keyPathSerialization;auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15607 QM_TRY(MOZ_TO_RESULT(stmt.GetString(3, keyPathSerialization)));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15608
15609 indexMetadata->mCommonMetadata.keyPath() =auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15610 KeyPath::DeserializeFromString(keyPathSerialization);auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15611 QM_TRY(OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid()),auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15612 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15613
15614 int32_t scratch;auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15615 QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(4, &scratch)));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15616
15617 indexMetadata->mCommonMetadata.unique() = !!scratch;auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15618
15619 QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(5, &scratch)));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15620
15621 indexMetadata->mCommonMetadata.multiEntry() = !!scratch;auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15622
15623 const bool localeAware = !stmt.IsNull(6);auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15624 if (localeAware) {auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15625 QM_TRY(MOZ_TO_RESULT(stmt.GetUTF8String(auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15626 6, indexMetadata->mCommonMetadata.locale())));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15627
15628 QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(7, &scratch)));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15629
15630 indexMetadata->mCommonMetadata.autoLocale() = !!scratch;auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15631
15632 // Update locale-aware indexes if necessaryauto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15633 const nsCString& indexedLocale =auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15634 indexMetadata->mCommonMetadata.locale();auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15635 const bool& isAutoLocale =auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15636 indexMetadata->mCommonMetadata.autoLocale();auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15637 const nsCString& systemLocale = mFactory->GetSystemLocale();auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15638 if (!systemLocale.IsEmpty() && isAutoLocale &&auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15639 !indexedLocale.Equals(systemLocale)) {auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15640 QM_TRY(MOZ_TO_RESULT(UpdateLocaleAwareIndex(auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15641 aConnection, indexMetadata->mCommonMetadata,auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15642 systemLocale)));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15643 }auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15644 }auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15645
15646 QM_TRY(OkIf((*objectStoreMetadata)auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15647 ->mIndexes.InsertOrUpdate(auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15648 indexId, std::move(indexMetadata), fallible)),auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15649 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15650
15651 lastIndexId = std::max(lastIndexId, indexId);auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15652
15653 return Ok{};auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15654 }));auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15655
15656 return lastIndexId;auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
15657 }()))auto tryResult1250 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<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(!!(tryResult1231.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)"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15540, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const auto& stmt = tryResult1231.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15551, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1232.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect
(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15558, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15564, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15570, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1236)::ok_type>
); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1237)::ok_type
>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1237
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1238.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15578, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1239
)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1240
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15601; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15602; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1241 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1241)::ok_type>
); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15607, mozilla::dom::quota::Severity::Error); return tryResult1241
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15615, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1244)::ok_type>); if ((__builtin_expect
(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1244.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1244
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15626, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15628, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15642, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15649, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<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(!!(tryResult1231.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)\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15540, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const auto& stmt = tryResult1231.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1249 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1232.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15561); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1238.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15601); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15602); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1241.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1244.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(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(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.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 tryResult1232 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1232.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15551, mozilla::dom::quota::Severity::Error); return tryResult1232.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1232.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1233 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1233.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15558, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15561); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15561; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1234 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1234)::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15564, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1235 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15570, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1236 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1236.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15572, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1237 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15575, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1238 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1238.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15578, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1239 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15588, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15591, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15601); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15601; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15602); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15602; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1241 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1241.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15607, mozilla::dom::quota::Severity::Error); return tryResult1241.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1242 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15612, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1243 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15615, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1244 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1244.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1244.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1245 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15626, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; {auto tryResult1246 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15628, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1247 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15642, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; } } {auto tryResult1248 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15654, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; return lastIndexId; }())"
, tryResult1250.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15657, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); } const auto& lastIndexId = tryResult1250
.inspect();
;
15658
15659 QM_TRY(OkIf(lastObjectStoreId != INT64_MAX),{auto tryResult1251 = (OkIf(lastObjectStoreId != (9223372036854775807L
))); 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("OkIf(lastObjectStoreId != (9223372036854775807L))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15660, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15660, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(lastObjectStoreId != (9223372036854775807L))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
15660 NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1251 = (OkIf(lastObjectStoreId != (9223372036854775807L
))); 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("OkIf(lastObjectStoreId != (9223372036854775807L))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15660, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15660, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(lastObjectStoreId != (9223372036854775807L))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
15661 QM_TRY(OkIf(lastIndexId != INT64_MAX), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1252 = (OkIf(lastIndexId != (9223372036854775807L
))); 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("OkIf(lastIndexId != (9223372036854775807L))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15662, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15662, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(lastIndexId != (9223372036854775807L))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
15662 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1252 = (OkIf(lastIndexId != (9223372036854775807L
))); 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("OkIf(lastIndexId != (9223372036854775807L))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15662, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15662, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(lastIndexId != (9223372036854775807L))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
15663
15664 mMetadata->mNextObjectStoreId = lastObjectStoreId + 1;
15665 mMetadata->mNextIndexId = lastIndexId + 1;
15666
15667 return NS_OK;
15668}
15669
15670/* static */
15671nsresult OpenDatabaseOp::UpdateLocaleAwareIndex(
15672 mozIStorageConnection& aConnection, const IndexMetadata& aIndexMetadata,
15673 const nsCString& aLocale) {
15674 const auto indexTable =
15675 aIndexMetadata.unique() ? "unique_index_data"_ns : "index_data"_ns;
15676
15677 // The parameter names are not used, parameters are bound by index only
15678 // locally in the same function.
15679 const nsCString readQuery = "SELECT value, object_data_key FROM "_ns +
15680 indexTable + " WHERE index_id = :index_id"_ns;
15681
15682 QM_TRY_INSPECT(const auto& readStmt,auto tryResult1253 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1253
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)"
, tryResult1253.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15685, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); } const auto& readStmt = tryResult1253.inspect
();
15683 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1253 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1253
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)"
, tryResult1253.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15685, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); } const auto& readStmt = tryResult1253.inspect
();
15684 nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult1253 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1253
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)"
, tryResult1253.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15685, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); } const auto& readStmt = tryResult1253.inspect
();
15685 CreateStatement, readQuery))auto tryResult1253 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1253
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)"
, tryResult1253.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15685, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); } const auto& readStmt = tryResult1253.inspect
();
;
15686
15687 QM_TRY(MOZ_TO_RESULT(readStmt->BindInt64ByIndex(0, aIndexMetadata.id()))){auto tryResult1254 = (ToResult(readStmt->BindInt64ByIndex
(0, aIndexMetadata.id()))); static_assert(std::is_empty_v<
typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(readStmt->BindInt64ByIndex(0, aIndexMetadata.id()))"
, tryResult1254.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); }}
;
15688
15689 QM_TRY(CollectWhileHasResult({auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15690 *readStmt,{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15691 [&aConnection, &indexTable, &aIndexMetadata, &aLocale,{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15692 writeStmt = nsCOMPtr<mozIStorageStatement>{}]({auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15693 auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15694 if (!writeStmt) {{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15695 QM_TRY_UNWRAP({auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15696 writeStmt,{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15697 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15698 nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15699 "UPDATE "_ns + indexTable + "SET value_locale = :"_ns +{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15700 kStmtParamNameValueLocale + " WHERE index_id = :"_ns +{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15701 kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15702 kStmtParamNameValue + " AND object_data_key = :"_ns +{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15703 kStmtParamNameObjectDataKey));{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15704 }{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15705
15706 mozStorageStatementScoper scoper(writeStmt);{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15707 QM_TRY(MOZ_TO_RESULT(writeStmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15708 aIndexMetadata.id())));{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15709
15710 Key oldKey, objectStorePosition;{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15711 QM_TRY(MOZ_TO_RESULT(oldKey.SetFromStatement(&readStmt, 0)));{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15712 QM_TRY(MOZ_TO_RESULT({auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15713 oldKey.BindToStatement(writeStmt, kStmtParamNameValue)));{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15714
15715 QM_TRY_INSPECT(const auto& newSortKey,{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15716 oldKey.ToLocaleAwareKey(aLocale));{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15717
15718 QM_TRY(MOZ_TO_RESULT({auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15719 newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale)));{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15720 QM_TRY({auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15721 MOZ_TO_RESULT(objectStorePosition.SetFromStatement(&readStmt, 1)));{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15722 QM_TRY(MOZ_TO_RESULT(objectStorePosition.BindToStatement({auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15723 writeStmt, kStmtParamNameObjectDataKey)));{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15724
15725 QM_TRY(MOZ_TO_RESULT(writeStmt->Execute()));{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15726
15727 return Ok{};{auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
15728 })){auto tryResult1264 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1255 = (::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(!!(tryResult1255.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)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15703, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15708, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1257)::ok_type
>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15711, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15716, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } const auto& newSortKey = tryResult1259
.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1260)::ok_type>);
if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15719, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect
(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1262)::ok_type
>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15723, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15725, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect
(!!(tryResult1264.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 tryResult1255 = (::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(!!(tryResult1255.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)\", tryResult1255.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15703, mozilla::dom::quota::Severity::Error); return tryResult1255.propagateErr(); } writeStmt = tryResult1255.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1256 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1256.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15708, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1257 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15711, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); }}; {auto tryResult1258 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; auto tryResult1259 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15716, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const auto& newSortKey = tryResult1259.inspect();; {auto tryResult1260 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15719, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; {auto tryResult1261 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15721, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15723, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15725, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; return Ok{}; })"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15728, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}
;
15729
15730 // The parameter names are not used, parameters are bound by index only
15731 // locally in the same function.
15732 static constexpr auto metaQuery =
15733 "UPDATE object_store_index SET "
15734 "locale = :locale WHERE id = :id"_ns;
15735
15736 QM_TRY_INSPECT(const auto& metaStmt,auto tryResult1265 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15739, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); } const auto& metaStmt = tryResult1265.inspect
();
15737 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1265 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15739, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); } const auto& metaStmt = tryResult1265.inspect
();
15738 nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult1265 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15739, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); } const auto& metaStmt = tryResult1265.inspect
();
15739 CreateStatement, metaQuery))auto tryResult1265 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15739, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); } const auto& metaStmt = tryResult1265.inspect
();
;
15740
15741 QM_TRY(MOZ_TO_RESULT({auto tryResult1266 = (ToResult(metaStmt->BindStringByIndex
(0, NS_ConvertASCIItoUTF16(aLocale)))); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15742, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15742 metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))){auto tryResult1266 = (ToResult(metaStmt->BindStringByIndex
(0, NS_ConvertASCIItoUTF16(aLocale)))); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15742, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
;
15743
15744 QM_TRY(MOZ_TO_RESULT(metaStmt->BindInt64ByIndex(1, aIndexMetadata.id()))){auto tryResult1267 = (ToResult(metaStmt->BindInt64ByIndex
(1, aIndexMetadata.id()))); static_assert(std::is_empty_v<
typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect
(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metaStmt->BindInt64ByIndex(1, aIndexMetadata.id()))"
, tryResult1267.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15744, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}
;
15745
15746 QM_TRY(MOZ_TO_RESULT(metaStmt->Execute())){auto tryResult1268 = (ToResult(metaStmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1268)::ok_type
>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(metaStmt->Execute())"
, tryResult1268.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15746, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
;
15747
15748 return NS_OK;
15749}
15750
15751nsresult OpenDatabaseOp::BeginVersionChange() {
15752 AssertIsOnOwningThread();
15753 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15753); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange"
")"); do { *((volatile int*)__null) = 15753; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15754 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15754); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 15754; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15755 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15755); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mCommonMetadata.version() <= mRequestedVersion"
")"); do { *((volatile int*)__null) = 15755; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15756 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15756); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabase"
")"); do { *((volatile int*)__null) = 15756; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15757 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15757); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeTransaction"
")"); do { *((volatile int*)__null) = 15757; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15758
15759 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15759)
||
15760 IsActorDestroyed()) {
15761 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15761, "UnknownErr")
;
15762 QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult1269 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
)); static_assert(std::is_empty_v<typename decltype(tryResult1269
)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)"
, tryResult1269.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15762, mozilla::dom::quota::Severity::Error); return tryResult1269
.propagateErr(); }}
;
15763 }
15764
15765 EnsureDatabaseActor();
15766
15767 if (mDatabase->IsInvalidated()) {
15768 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15768, "UnknownErr")
;
15769 QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult1270 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
)); static_assert(std::is_empty_v<typename decltype(tryResult1270
)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)"
, tryResult1270.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1270
.propagateErr(); }}
;
15770 }
15771
15772 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabase->IsClosed()"
")"); do { *((volatile int*)__null) = 15772; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15773
15774 DatabaseActorInfo* info;
15775 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15775); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)"
")"); do { *((volatile int*)__null) = 15775; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
15776
15777 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())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15777); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.Contains(mDatabase.unsafeGetRawPtr())"
")"); do { *((volatile int*)__null) = 15777; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15778 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15778); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { *((volatile int*)__null) = 15778; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15779 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15779); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata == mMetadata"
")"); do { *((volatile int*)__null) = 15779; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15780
15781 auto transaction = MakeSafeRefPtr<VersionChangeTransaction>(this);
15782
15783 if (NS_WARN_IF(!transaction->CopyDatabaseMetadata())NS_warn_if_impl(!transaction->CopyDatabaseMetadata(), "!transaction->CopyDatabaseMetadata()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15783)
) {
15784 return NS_ERROR_OUT_OF_MEMORY;
15785 }
15786
15787 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15787); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata != mMetadata"
")"); do { *((volatile int*)__null) = 15787; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15788 mMetadata = info->mMetadata.clonePtr();
15789
15790 const Maybe<uint64_t> newVersion = Some(mRequestedVersion);
15791
15792 QM_TRY(MOZ_TO_RESULT(SendVersionChangeMessages({auto tryResult1271 = (ToResult(SendVersionChangeMessages( info
, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version
(), newVersion))); static_assert(std::is_empty_v<typename decltype
(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))"
, tryResult1271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15794, mozilla::dom::quota::Severity::Error); return tryResult1271
.propagateErr(); }}
15793 info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(),{auto tryResult1271 = (ToResult(SendVersionChangeMessages( info
, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version
(), newVersion))); static_assert(std::is_empty_v<typename decltype
(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))"
, tryResult1271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15794, mozilla::dom::quota::Severity::Error); return tryResult1271
.propagateErr(); }}
15794 newVersion))){auto tryResult1271 = (ToResult(SendVersionChangeMessages( info
, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version
(), newVersion))); static_assert(std::is_empty_v<typename decltype
(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))"
, tryResult1271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15794, mozilla::dom::quota::Severity::Error); return tryResult1271
.propagateErr(); }}
;
15795
15796 mVersionChangeTransaction = std::move(transaction);
15797
15798 if (mMaybeBlockedDatabases.IsEmpty()) {
15799 // We don't need to wait on any databases, just jump to the transaction
15800 // pool.
15801 WaitForTransactions();
15802 return NS_OK;
15803 }
15804
15805 // If the actor gets destroyed, mWaitingFactoryOp will hold the last strong
15806 // reference to us.
15807 info->mWaitingFactoryOp = this;
15808
15809 mState = State::WaitingForOtherDatabasesToClose;
15810 return NS_OK;
15811}
15812
15813bool OpenDatabaseOp::AreActorsAlive() {
15814 AssertIsOnOwningThread();
15815 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15815); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase"
")"); do { *((volatile int*)__null) = 15815; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15816
15817 return !(IsActorDestroyed() || mDatabase->IsActorDestroyed());
15818}
15819
15820void OpenDatabaseOp::SendBlockedNotification() {
15821 AssertIsOnOwningThread();
15822 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15822); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose"
")"); do { *((volatile int*)__null) = 15822; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15823
15824 if (!IsActorDestroyed()) {
15825 Unused << SendBlocked(mMetadata->mCommonMetadata.version());
15826 }
15827}
15828
15829nsresult OpenDatabaseOp::DispatchToWorkThread() {
15830 AssertIsOnOwningThread();
15831 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15831); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForTransactionsToComplete"
")"); do { *((volatile int*)__null) = 15831; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15832 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15832); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction"
")"); do { *((volatile int*)__null) = 15832; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15833 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15834); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 15834; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
15834 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15834); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 15834; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15835 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15835); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 15835; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15836
15837 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15837)
||
15838 IsActorDestroyed() || mDatabase->IsInvalidated()) {
15839 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15839, "UnknownErr")
;
15840 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
15841 }
15842
15843 mState = State::DatabaseWorkVersionChange;
15844
15845 // Intentionally empty.
15846 nsTArray<nsString> objectStoreNames;
15847
15848 const int64_t loggingSerialNumber =
15849 mVersionChangeTransaction->LoggingSerialNumber();
15850 const nsID& backgroundChildLoggingId =
15851 mVersionChangeTransaction->GetLoggingInfo()->Id();
15852
15853 if (NS_WARN_IF(!mDatabase->RegisterTransaction(*mVersionChangeTransaction))NS_warn_if_impl(!mDatabase->RegisterTransaction(*mVersionChangeTransaction
), "!mDatabase->RegisterTransaction(*mVersionChangeTransaction)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15853)
) {
15854 return NS_ERROR_OUT_OF_MEMORY;
15855 }
15856
15857 if (!gConnectionPool) {
15858 gConnectionPool = new ConnectionPool();
15859 }
15860
15861 RefPtr<VersionChangeOp> versionChangeOp = new VersionChangeOp(this);
15862
15863 uint64_t transactionId = versionChangeOp->StartOnConnectionPool(
15864 backgroundChildLoggingId, mVersionChangeTransaction->DatabaseId(),
15865 loggingSerialNumber, objectStoreNames,
15866 /* aIsWriteTransaction */ true);
15867
15868 mVersionChangeOp = versionChangeOp;
15869
15870 mVersionChangeTransaction->NoteActiveRequest();
15871 mVersionChangeTransaction->Init(transactionId);
15872
15873 return NS_OK;
15874}
15875
15876nsresult OpenDatabaseOp::SendUpgradeNeeded() {
15877 AssertIsOnOwningThread();
15878 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15878); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange"
")"); do { *((volatile int*)__null) = 15878; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15879 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15879); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction"
")"); do { *((volatile int*)__null) = 15879; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15880 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 15880; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15881 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15881); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { *((volatile int*)__null) = 15881; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15882 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15882); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase"
")"); do { *((volatile int*)__null) = 15882; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
15883
15884 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15884)
||
15885 IsActorDestroyed()) {
15886 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15886, "UnknownErr")
;
15887 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
15888 }
15889
15890 const SafeRefPtr<VersionChangeTransaction> transaction =
15891 std::move(mVersionChangeTransaction);
15892
15893 nsresult rv = EnsureDatabaseActorIsAlive();
15894 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15894)
) {
15895 return rv;
15896 }
15897
15898 // Transfer ownership to IPDL.
15899 transaction->SetActorAlive();
15900
15901 if (!mDatabase->SendPBackgroundIDBVersionChangeTransactionConstructor(
15902 transaction.unsafeGetRawPtr(), mMetadata->mCommonMetadata.version(),
15903 mRequestedVersion, mMetadata->mNextObjectStoreId,
15904 mMetadata->mNextIndexId)) {
15905 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15905, "UnknownErr")
;
15906 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
15907 }
15908
15909 return NS_OK;
15910}
15911
15912nsresult OpenDatabaseOp::DoVersionUpdate() {
15913 AssertIsOnIOThread();
15914 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15914); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionUpdate"
")"); do { *((volatile int*)__null) = 15914; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15915 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15915); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { *((volatile int*)__null) = 15915; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15916
15917 AUTO_PROFILER_LABEL("OpenDatabaseOp::DoVersionUpdate", DOM)mozilla::AutoProfilerLabel raiiObject15917( "OpenDatabaseOp::DoVersionUpdate"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
15918
15919 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15919)
||
15920 !OperationMayProceed()) {
15921 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15921, "UnknownErr")
;
15922 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
15923 }
15924
15925 mFileManager->UpdateDatabaseVersion(mRequestedVersion);
15926
15927 mState = State::SendingResults;
15928
15929 QM_TRY(MOZ_TO_RESULT({auto tryResult1272 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1272)::ok_type>); if ((__builtin_expect
(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15930, mozilla::dom::quota::Severity::Error); return tryResult1272
.propagateErr(); }}
15930 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1272 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1272)::ok_type>); if ((__builtin_expect
(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15930, mozilla::dom::quota::Severity::Error); return tryResult1272
.propagateErr(); }}
;
15931
15932 return NS_OK;
15933}
15934
15935void OpenDatabaseOp::SendResults() {
15936 AssertIsOnOwningThread();
15937 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15937); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults"
")"); do { *((volatile int*)__null) = 15937; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15938 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15938); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 15938; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15939 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15939); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeTransaction"
")"); do { *((volatile int*)__null) = 15939; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
15940
15941 if (mCompleteCallback) {
15942 auto completeCallback = std::move(mCompleteCallback);
15943 completeCallback();
15944 }
15945
15946 DebugOnly<DatabaseActorInfo*> info = nullptr;
15947 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15949); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { *((volatile int*)__null) = 15949; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
15948 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15949); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { *((volatile int*)__null) = 15949; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
15949 !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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15949); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { *((volatile int*)__null) = 15949; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
15950
15951 if (mVersionChangeTransaction) {
15952 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15952); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasFailed()"
")"); do { *((volatile int*)__null) = 15952; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15953
15954 mVersionChangeTransaction->Abort(ResultCode(), /* aForce */ true);
15955 mVersionChangeTransaction = nullptr;
15956 }
15957
15958 if (IsActorDestroyed()) {
15959 SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
15960 } else {
15961 FactoryRequestResponse response;
15962
15963 if (!HasFailed()) {
15964 // If we just successfully completed a versionchange operation then we
15965 // need to update the version in our metadata.
15966 mMetadata->mCommonMetadata.version() = mRequestedVersion;
15967
15968 nsresult rv = EnsureDatabaseActorIsAlive();
15969 if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) {
15970 // We successfully opened a database so use its actor as the success
15971 // result for this request.
15972
15973 // XXX OpenDatabaseRequestResponse stores a raw pointer, can this be
15974 // avoided?
15975 response = OpenDatabaseRequestResponse{
15976 WrapNotNull(mDatabase.unsafeGetRawPtr())};
15977 } else {
15978 response = ClampResultCode(rv);
15979#ifdef DEBUG1
15980 SetFailureCode(response.get_nsresult());
15981#endif
15982 }
15983 } else {
15984#ifdef DEBUG1
15985 // If something failed then our metadata pointer is now bad. No one should
15986 // ever touch it again though so just null it out in DEBUG builds to make
15987 // sure we find such cases.
15988 mMetadata = nullptr;
15989#endif
15990 response = ClampResultCode(ResultCode());
15991 }
15992
15993 Unused << PBackgroundIDBFactoryRequestParent::Send__delete__(this,
15994 response);
15995 }
15996
15997 if (mDatabase) {
15998 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15998); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock"
")"); do { *((volatile int*)__null) = 15998; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15999
16000 if (HasFailed()) {
16001 mDatabase->Invalidate();
16002 }
16003
16004 // Make sure to release the database on this thread.
16005 mDatabase = nullptr;
16006
16007 CleanupMetadata();
16008 } else if (mDirectoryLock) {
16009 // ConnectionClosedCallback will call CleanupMetadata().
16010 nsCOMPtr<nsIRunnable> callback = NewRunnableMethod(
16011 "dom::indexedDB::OpenDatabaseOp::ConnectionClosedCallback", this,
16012 &OpenDatabaseOp::ConnectionClosedCallback);
16013
16014 RefPtr<WaitForTransactionsHelper> helper =
16015 new WaitForTransactionsHelper(mDatabaseId.ref(), callback);
16016 helper->WaitForTransactions();
16017 } else {
16018 CleanupMetadata();
16019 }
16020
16021 FinishSendResults();
16022}
16023
16024void OpenDatabaseOp::ConnectionClosedCallback() {
16025 AssertIsOnOwningThread();
16026 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16026); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasFailed()"
")"); do { *((volatile int*)__null) = 16026; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16027 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16027); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock"
")"); do { *((volatile int*)__null) = 16027; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16028
16029 DropDirectoryLock(mDirectoryLock);
16030
16031 CleanupMetadata();
16032}
16033
16034void OpenDatabaseOp::EnsureDatabaseActor() {
16035 AssertIsOnOwningThread();
16036 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16038); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { *((volatile int*)__null) = 16038; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16037 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16038); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { *((volatile int*)__null) = 16038; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16038 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16038); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { *((volatile int*)__null) = 16038; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16039 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16039); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { *((volatile int*)__null) = 16039; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16040 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseFilePath.isSome()"
")"); do { *((volatile int*)__null) = 16040; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16041 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 16041; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16042
16043 if (mDatabase) {
16044 return;
16045 }
16046
16047 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mDatabaseId.IsEmpty()"
")"); do { *((volatile int*)__null) = 16047; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16048 mMetadata->mDatabaseId = mDatabaseId.ref();
16049
16050 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16050); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mFilePath.IsEmpty()"
")"); do { *((volatile int*)__null) = 16050; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16051 mMetadata->mFilePath = mDatabaseFilePath.ref();
16052
16053 DatabaseActorInfo* info;
16054 if (gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) {
16055 AssertMetadataConsistency(*info->mMetadata);
16056 mMetadata = info->mMetadata.clonePtr();
16057 }
16058
16059 Maybe<const CipherKey> maybeKey =
16060 mInPrivateBrowsing ? mFileManager->MutableCipherKeyManagerRef().Get()
16061 : Nothing();
16062
16063 MOZ_RELEASE_ASSERT(mInPrivateBrowsing == maybeKey.isSome())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInPrivateBrowsing == maybeKey.isSome())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInPrivateBrowsing == maybeKey.isSome()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mInPrivateBrowsing == maybeKey.isSome()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16063); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "mInPrivateBrowsing == maybeKey.isSome()"
")"); do { *((volatile int*)__null) = 16063; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16064
16065 const bool directoryLockInvalidated = mDirectoryLock->Invalidated();
16066
16067 // XXX Shouldn't Manager() return already_AddRefed when
16068 // PBackgroundIDBFactoryParent is declared refcounted?
16069 mDatabase = MakeSafeRefPtr<Database>(
16070 SafeRefPtr{static_cast<Factory*>(Manager()),
16071 AcquireStrongRefFromRawPtr{}},
16072 mCommonParams.principalInfo(), mContentParentId, mOriginMetadata,
16073 mTelemetryId, mMetadata.clonePtr(), mFileManager.clonePtr(),
16074 std::move(mDirectoryLock), mInPrivateBrowsing, maybeKey);
16075
16076 if (info) {
16077 info->mLiveDatabases.AppendElement(
16078 WrapNotNullUnchecked(mDatabase.unsafeGetRawPtr()));
16079 } else {
16080 // XXX Maybe use LookupOrInsertWith above, to avoid a second lookup here?
16081 info = gLiveDatabaseHashtable
16082 ->InsertOrUpdate(
16083 mDatabaseId.ref(),
16084 MakeUnique<DatabaseActorInfo>(
16085 mMetadata.clonePtr(),
16086 WrapNotNullUnchecked(mDatabase.unsafeGetRawPtr())))
16087 .get();
16088 }
16089
16090 if (directoryLockInvalidated) {
16091 mDatabase->Invalidate();
16092 }
16093
16094 // Balanced in Database::CleanupMetadata().
16095 IncreaseBusyCount();
16096}
16097
16098nsresult OpenDatabaseOp::EnsureDatabaseActorIsAlive() {
16099 AssertIsOnOwningThread();
16100 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16101); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { *((volatile int*)__null) = 16101; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16101 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16101); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { *((volatile int*)__null) = 16101; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16102 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16102); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { *((volatile int*)__null) = 16102; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16103 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16103); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 16103; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16104
16105 EnsureDatabaseActor();
16106
16107 if (mDatabase->IsActorAlive()) {
16108 return NS_OK;
16109 }
16110
16111 auto* const factory = static_cast<Factory*>(Manager());
16112
16113 QM_TRY_INSPECT(const auto& spec, MetadataToSpec())auto tryResult1273 = (MetadataToSpec()); if ((__builtin_expect
(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError
("MetadataToSpec()", tryResult1273.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16113, mozilla::dom::quota::Severity::Error); return tryResult1273
.propagateErr(); } const auto& spec = tryResult1273.inspect
();
;
16114
16115 mDatabase->SetActorAlive();
16116
16117 if (!factory->SendPBackgroundIDBDatabaseConstructor(
16118 mDatabase.unsafeGetRawPtr(), spec, WrapNotNull(this))) {
16119 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16119, "UnknownErr")
;
16120 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16121 }
16122
16123 if (mDatabase->IsInvalidated()) {
16124 Unused << mDatabase->SendInvalidate();
16125 }
16126
16127 return NS_OK;
16128}
16129
16130Result<DatabaseSpec, nsresult> OpenDatabaseOp::MetadataToSpec() const {
16131 AssertIsOnOwningThread();
16132 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16132); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata"
")"); do { *((volatile int*)__null) = 16132; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16133
16134 DatabaseSpec spec;
16135 spec.metadata() = mMetadata->mCommonMetadata;
16136
16137 QM_TRY_UNWRAP(spec.objectStores(),auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16138 TransformIntoNewArrayAbortOnErr(auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16139 mMetadata->mObjectStores,auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16140 [](const auto& objectStoreEntry)auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16141 -> mozilla::Result<ObjectStoreSpec, nsresult> {auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16142 FullObjectStoreMetadata* metadata =auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16143 objectStoreEntry.GetWeak();auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16144 MOZ_ASSERT(objectStoreEntry.GetKey());auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16145 MOZ_ASSERT(metadata);auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16146
16147 ObjectStoreSpec objectStoreSpec;auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16148 objectStoreSpec.metadata() = metadata->mCommonMetadata;auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16149
16150 QM_TRY_UNWRAP(auto indexes,auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16151 TransformIntoNewArray(auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16152 metadata->mIndexes,auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16153 [](const auto& indexEntry) {auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16154 FullIndexMetadata* indexMetadata =auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16155 indexEntry.GetWeak();auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16156 MOZ_ASSERT(indexEntry.GetKey());auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16157 MOZ_ASSERT(indexMetadata);auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16158
16159 return indexMetadata->mCommonMetadata;auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16160 },auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16161 fallible));auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16162
16163 objectStoreSpec.indexes() = std::move(indexes);auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16164
16165 return objectStoreSpec;auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16166 },auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
16167 fallible))auto tryResult1275 = (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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16144; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16145; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1274 = (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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16156; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1274.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16161, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1275.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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16144); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16144; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16145); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16145; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1274 = (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()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16156); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16156; __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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16157); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1274.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()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16156); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16156; __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\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16157); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16157; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1274.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16161, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } auto indexes = tryResult1274.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16167, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } spec.objectStores() = tryResult1275.unwrap
();
;
16168
16169 return spec;
16170}
16171
16172#ifdef DEBUG1
16173
16174void OpenDatabaseOp::AssertMetadataConsistency(
16175 const FullDatabaseMetadata& aMetadata) {
16176 AssertIsOnBackgroundThread();
16177
16178 const FullDatabaseMetadata& thisDB = *mMetadata;
16179 const FullDatabaseMetadata& otherDB = aMetadata;
16180
16181 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16181); AnnotateMozCrashReason("MOZ_ASSERT" "(" "&thisDB != &otherDB"
")"); do { *((volatile int*)__null) = 16181; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16182
16183 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16183); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata.name()"
")"); do { *((volatile int*)__null) = 16183; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16184 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16185); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()"
")"); do { *((volatile int*)__null) = 16185; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16185 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16185); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()"
")"); do { *((volatile int*)__null) = 16185; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16186 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16187); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()"
")"); do { *((volatile int*)__null) = 16187; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16187 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16187); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()"
")"); do { *((volatile int*)__null) = 16187; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16188 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16188); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mDatabaseId == otherDB.mDatabaseId"
")"); do { *((volatile int*)__null) = 16188; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16189 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16189); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mFilePath == otherDB.mFilePath"
")"); do { *((volatile int*)__null) = 16189; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16190
16191 // |thisDB| reflects the latest objectStore and index ids that have committed
16192 // to disk. The in-memory metadata |otherDB| keeps track of objectStores and
16193 // indexes that were created and then removed as well, so the next ids for
16194 // |otherDB| may be higher than for |thisDB|.
16195 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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId"
")"); do { *((volatile int*)__null) = 16195; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16196 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mNextIndexId <= otherDB.mNextIndexId"
")"); do { *((volatile int*)__null) = 16196; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16197
16198 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16198); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mObjectStores.Count() == otherDB.mObjectStores.Count()"
")"); do { *((volatile int*)__null) = 16198; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16199
16200 for (const auto& thisObjectStore : thisDB.mObjectStores.Values()) {
16201 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16201); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore"
")"); do { *((volatile int*)__null) = 16201; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16202 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16202); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!thisObjectStore->mDeleted"
")"); do { *((volatile int*)__null) = 16202; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16203
16204 auto otherObjectStore = MatchMetadataNameOrId(
16205 otherDB.mObjectStores, thisObjectStore->mCommonMetadata.id());
16206 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16206); AnnotateMozCrashReason("MOZ_ASSERT" "(" "otherObjectStore"
")"); do { *((volatile int*)__null) = 16206; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16207
16208 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16208); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore != &otherObjectStore.ref()"
")"); do { *((volatile int*)__null) = 16208; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16209
16210 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16211); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()"
")"); do { *((volatile int*)__null) = 16211; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16211 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16211); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()"
")"); do { *((volatile int*)__null) = 16211; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16212 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16213); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()"
")"); do { *((volatile int*)__null) = 16213; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16213 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16213); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()"
")"); do { *((volatile int*)__null) = 16213; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16214 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16215); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()"
")"); do { *((volatile int*)__null) = 16215; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16215 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16215); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()"
")"); do { *((volatile int*)__null) = 16215; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16216 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16217); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()"
")"); do { *((volatile int*)__null) = 16217; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16217 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16217); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()"
")"); do { *((volatile int*)__null) = 16217; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16218 // mNextAutoIncrementId and mCommittedAutoIncrementId may be modified
16219 // concurrently with this OpenOp, so it is not possible to assert equality
16220 // here. It's also possible that we've written the new ids to disk but not
16221 // yet updated the in-memory count.
16222 // TODO The first part of the comment should probably be rephrased. I think
16223 // it still applies but it sounds as if this were thread-unsafe like it was
16224 // before, which isn't true anymore.
16225 {
16226 const auto&& thisAutoIncrementIds =
16227 thisObjectStore->mAutoIncrementIds.Lock();
16228 const auto&& otherAutoIncrementIds =
16229 otherObjectStore->mAutoIncrementIds.Lock();
16230
16231 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16231); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->next <= otherAutoIncrementIds->next"
")"); do { *((volatile int*)__null) = 16231; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16232 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16234); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next"
")"); do { *((volatile int*)__null) = 16234; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16233 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16234); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next"
")"); do { *((volatile int*)__null) = 16234; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16234 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16234); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next"
")"); do { *((volatile int*)__null) = 16234; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16235 }
16236 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16236); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!otherObjectStore->mDeleted"
")"); do { *((volatile int*)__null) = 16236; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16237
16238 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16239); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()"
")"); do { *((volatile int*)__null) = 16239; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16239 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16239); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()"
")"); do { *((volatile int*)__null) = 16239; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16240
16241 for (const auto& thisIndex : thisObjectStore->mIndexes.Values()) {
16242 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16242); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex"
")"); do { *((volatile int*)__null) = 16242; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16243 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16243); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!thisIndex->mDeleted"
")"); do { *((volatile int*)__null) = 16243; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16244
16245 auto otherIndex = MatchMetadataNameOrId(otherObjectStore->mIndexes,
16246 thisIndex->mCommonMetadata.id());
16247 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16247); AnnotateMozCrashReason("MOZ_ASSERT" "(" "otherIndex"
")"); do { *((volatile int*)__null) = 16247; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16248
16249 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16249); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex != &otherIndex.ref()"
")"); do { *((volatile int*)__null) = 16249; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16250
16251 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()"
")"); do { *((volatile int*)__null) = 16252; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16252 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()"
")"); do { *((volatile int*)__null) = 16252; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16253 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16254); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()"
")"); do { *((volatile int*)__null) = 16254; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16254 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16254); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()"
")"); do { *((volatile int*)__null) = 16254; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16255 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()"
")"); do { *((volatile int*)__null) = 16256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16256 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()"
")"); do { *((volatile int*)__null) = 16256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16257 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16258); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()"
")"); do { *((volatile int*)__null) = 16258; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16258 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16258); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()"
")"); do { *((volatile int*)__null) = 16258; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16259 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16260); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()"
")"); do { *((volatile int*)__null) = 16260; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16260 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16260); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()"
")"); do { *((volatile int*)__null) = 16260; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16261 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16261); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!otherIndex->mDeleted"
")"); do { *((volatile int*)__null) = 16261; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16262 }
16263 }
16264}
16265
16266#endif // DEBUG
16267
16268nsresult OpenDatabaseOp::VersionChangeOp::DoDatabaseWork(
16269 DatabaseConnection* aConnection) {
16270 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16270); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 16270; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16271 aConnection->AssertIsOnConnectionThread();
16272 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16272); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp"
")"); do { *((volatile int*)__null) = 16272; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16273 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { *((volatile int*)__null) = 16273; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16274
16275 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16275)
||
16276 !OperationMayProceed()) {
16277 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16277, "UnknownErr")
;
16278 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16279 }
16280
16281 AUTO_PROFILER_LABEL("OpenDatabaseOp::VersionChangeOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject16281( "OpenDatabaseOp::VersionChangeOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16282
16283 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)
16284 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)
16285 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)
;
16286
16287 Transaction().SetActiveOnConnectionThread();
16288
16289 QM_TRY(MOZ_TO_RESULT({auto tryResult1276 = (ToResult(aConnection->BeginWriteTransaction
(Transaction().GetDurability()))); static_assert(std::is_empty_v
<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect
(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16290, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); }}
16290 aConnection->BeginWriteTransaction(Transaction().GetDurability()))){auto tryResult1276 = (ToResult(aConnection->BeginWriteTransaction
(Transaction().GetDurability()))); static_assert(std::is_empty_v
<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect
(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16290, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); }}
;
16291
16292 // The parameter names are not used, parameters are bound by index only
16293 // locally in the same function.
16294 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1278 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1277 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1277
)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1277.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16299, mozilla::dom::quota::Severity::Error); return tryResult1277
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1277 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1277.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16299, mozilla::dom::quota::Severity::Error); return tryResult1277.propagateErr(); }}; return Ok{}; })))"
, tryResult1278.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16302, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); }}
16295 "UPDATE database SET version = :version;"_ns,{auto tryResult1278 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1277 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1277
)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1277.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16299, mozilla::dom::quota::Severity::Error); return tryResult1277
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1277 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1277.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16299, mozilla::dom::quota::Severity::Error); return tryResult1277.propagateErr(); }}; return Ok{}; })))"
, tryResult1278.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16302, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); }}
16296 ([&self = *this]({auto tryResult1278 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1277 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1277
)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1277.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16299, mozilla::dom::quota::Severity::Error); return tryResult1277
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1277 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1277.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16299, mozilla::dom::quota::Severity::Error); return tryResult1277.propagateErr(); }}; return Ok{}; })))"
, tryResult1278.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16302, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); }}
16297 mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> {{auto tryResult1278 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1277 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1277
)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1277.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16299, mozilla::dom::quota::Severity::Error); return tryResult1277
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1277 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1277.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16299, mozilla::dom::quota::Severity::Error); return tryResult1277.propagateErr(); }}; return Ok{}; })))"
, tryResult1278.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16302, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); }}
16298 QM_TRY(MOZ_TO_RESULT({auto tryResult1278 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1277 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1277
)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1277.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16299, mozilla::dom::quota::Severity::Error); return tryResult1277
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1277 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1277.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16299, mozilla::dom::quota::Severity::Error); return tryResult1277.propagateErr(); }}; return Ok{}; })))"
, tryResult1278.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16302, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); }}
16299 updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion))));{auto tryResult1278 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1277 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1277
)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1277.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16299, mozilla::dom::quota::Severity::Error); return tryResult1277
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1277 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1277.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16299, mozilla::dom::quota::Severity::Error); return tryResult1277.propagateErr(); }}; return Ok{}; })))"
, tryResult1278.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16302, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); }}
16300
16301 return Ok{};{auto tryResult1278 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1277 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1277
)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1277.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16299, mozilla::dom::quota::Severity::Error); return tryResult1277
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1277 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1277.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16299, mozilla::dom::quota::Severity::Error); return tryResult1277.propagateErr(); }}; return Ok{}; })))"
, tryResult1278.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16302, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); }}
16302 })))){auto tryResult1278 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1277 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1277
)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1277.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16299, mozilla::dom::quota::Severity::Error); return tryResult1277
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1277 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1277.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16299, mozilla::dom::quota::Severity::Error); return tryResult1277.propagateErr(); }}; return Ok{}; })))"
, tryResult1278.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16302, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); }}
;
16303
16304 return NS_OK;
16305}
16306
16307nsresult OpenDatabaseOp::VersionChangeOp::SendSuccessResult() {
16308 AssertIsOnOwningThread();
16309 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16309); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp"
")"); do { *((volatile int*)__null) = 16309; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16310 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16310); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { *((volatile int*)__null) = 16310; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16311 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16311); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this"
")"); do { *((volatile int*)__null) = 16311; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16312
16313 nsresult rv = mOpenDatabaseOp->SendUpgradeNeeded();
16314 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16314)
) {
16315 return rv;
16316 }
16317
16318 return NS_OK;
16319}
16320
16321bool OpenDatabaseOp::VersionChangeOp::SendFailureResult(nsresult aResultCode) {
16322 AssertIsOnOwningThread();
16323 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16323); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp"
")"); do { *((volatile int*)__null) = 16323; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16324 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16324); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { *((volatile int*)__null) = 16324; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16325 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16325); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this"
")"); do { *((volatile int*)__null) = 16325; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16326
16327 mOpenDatabaseOp->SetFailureCode(aResultCode);
16328 mOpenDatabaseOp->mState = State::SendingResults;
16329
16330 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())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16330); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOpenDatabaseOp->Run())"
")"); do { *((volatile int*)__null) = 16330; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
16331
16332 return false;
16333}
16334
16335void OpenDatabaseOp::VersionChangeOp::Cleanup() {
16336 AssertIsOnOwningThread();
16337 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16337); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp"
")"); do { *((volatile int*)__null) = 16337; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16338 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16338); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this"
")"); do { *((volatile int*)__null) = 16338; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16339
16340 mOpenDatabaseOp->mVersionChangeOp = nullptr;
16341 mOpenDatabaseOp = nullptr;
16342
16343#ifdef DEBUG1
16344 // A bit hacky but the VersionChangeOp is not generated in response to a
16345 // child request like most other database operations. Do this to make our
16346 // assertions happy.
16347 //
16348 // XXX: Depending on timing, in most cases, NoteActorDestroyed will not have
16349 // been destroyed before, but in some cases it has. This should be reworked in
16350 // a way this hack is not necessary. There are also several similar cases in
16351 // other *Op classes.
16352 if (!IsActorDestroyed()) {
16353 NoteActorDestroyed();
16354 }
16355#endif
16356
16357 TransactionDatabaseOperationBase::Cleanup();
16358}
16359
16360void DeleteDatabaseOp::LoadPreviousVersion(nsIFile& aDatabaseFile) {
16361 AssertIsOnIOThread();
16362 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16362); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { *((volatile int*)__null) = 16362; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16363 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16363); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mPreviousVersion"
")"); do { *((volatile int*)__null) = 16363; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16364
16365 AUTO_PROFILER_LABEL("DeleteDatabaseOp::LoadPreviousVersion", DOM)mozilla::AutoProfilerLabel raiiObject16365( "DeleteDatabaseOp::LoadPreviousVersion"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16366
16367 nsresult rv;
16368
16369 nsCOMPtr<mozIStorageService> ss =
16370 do_GetService(MOZ_STORAGE_SERVICE_CONTRACTID"@mozilla.org/storage" "/service;1", &rv);
16371 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16371)
) {
16372 return;
16373 }
16374
16375 IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get();
16376 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16376); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")");
do { *((volatile int*)__null) = 16376; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
16377
16378 const PersistenceType persistenceType =
16379 mCommonParams.metadata().persistenceType();
16380 const nsAString& databaseName = mCommonParams.metadata().name();
16381
16382 SafeRefPtr<DatabaseFileManager> fileManager = idm->GetFileManager(
16383 persistenceType, mOriginMetadata.mOrigin, databaseName);
16384
16385 if (!fileManager) {
16386 fileManager = MakeSafeRefPtr<DatabaseFileManager>(
16387 persistenceType, mOriginMetadata, databaseName, mDatabaseId.ref(),
16388 mDatabaseFilePath.ref(), mEnforcingQuota, mInPrivateBrowsing);
16389 }
16390
16391 const auto maybeKey =
16392 mInPrivateBrowsing
16393 ? Some(fileManager->MutableCipherKeyManagerRef().Ensure())
16394 : Nothing();
16395
16396 MOZ_RELEASE_ASSERT(mInPrivateBrowsing == maybeKey.isSome())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInPrivateBrowsing == maybeKey.isSome())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInPrivateBrowsing == maybeKey.isSome()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mInPrivateBrowsing == maybeKey.isSome()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16396); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "mInPrivateBrowsing == maybeKey.isSome()"
")"); do { *((volatile int*)__null) = 16396; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16397
16398 // Pass -1 as the directoryLockId to disable quota checking, since we might
16399 // temporarily exceed quota before deleting the database.
16400 QM_TRY_INSPECT(const auto& dbFileUrl,auto tryResult1279 = (GetDatabaseFileURL(aDatabaseFile, -1, maybeKey
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1279.unwrapErr
(); mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, -1, maybeKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16401, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& dbFileUrl = tryResult1279.inspect();
16401 GetDatabaseFileURL(aDatabaseFile, -1, maybeKey), QM_VOID)auto tryResult1279 = (GetDatabaseFileURL(aDatabaseFile, -1, maybeKey
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1279.unwrapErr
(); mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, -1, maybeKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16401, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& dbFileUrl = tryResult1279.inspect();
;
16402
16403 QM_TRY_UNWRAP(const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1280 = (OpenDatabaseAndHandleBusy(*ss, *dbFileUrl
)); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1280.unwrapErr
(); mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*ss, *dbFileUrl)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16404, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1280.unwrap();
16404 OpenDatabaseAndHandleBusy(*ss, *dbFileUrl), QM_VOID)auto tryResult1280 = (OpenDatabaseAndHandleBusy(*ss, *dbFileUrl
)); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1280.unwrapErr
(); mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*ss, *dbFileUrl)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16404, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1280.unwrap();
;
16405
16406#ifdef DEBUG1
16407 {
16408 QM_TRY_INSPECT(const auto& stmt,auto tryResult1281 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1281.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16412, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1281.inspect();
16409 CreateAndExecuteSingleStepStatement<auto tryResult1281 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1281.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16412, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1281.inspect();
16410 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1281 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1281.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16412, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1281.inspect();
16411 *connection, "SELECT name FROM database"_ns),auto tryResult1281 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1281.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16412, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1281.inspect();
16412 QM_VOID)auto tryResult1281 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1281.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16412, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1281.inspect();
;
16413
16414 QM_TRY(OkIf(stmt), QM_VOID){auto tryResult1282 = (OkIf(stmt)); static_assert(std::is_empty_v
<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect
(!!(tryResult1282.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1282.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(stmt)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}
;
16415
16416 nsString databaseName;
16417 rv = stmt->GetString(0, databaseName);
16418 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16418)
) {
16419 return;
16420 }
16421
16422 MOZ_ASSERT(mCommonParams.metadata().name() == databaseName)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCommonParams.metadata().name() == databaseName)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mCommonParams.metadata().name() == databaseName))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mCommonParams.metadata().name() == databaseName"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16422); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCommonParams.metadata().name() == databaseName"
")"); do { *((volatile int*)__null) = 16422; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16423 }
16424#endif
16425
16426 QM_TRY_INSPECT(const auto& stmt,auto tryResult1283 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16430, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1283.inspect();
16427 CreateAndExecuteSingleStepStatement<auto tryResult1283 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16430, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1283.inspect();
16428 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1283 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16430, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1283.inspect();
16429 *connection, "SELECT version FROM database"_ns),auto tryResult1283 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16430, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1283.inspect();
16430 QM_VOID)auto tryResult1283 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16430, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1283.inspect();
;
16431
16432 QM_TRY(OkIf(stmt), QM_VOID){auto tryResult1284 = (OkIf(stmt)); static_assert(std::is_empty_v
<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect
(!!(tryResult1284.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1284.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(stmt)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16432, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}
;
16433
16434 int64_t version;
16435 rv = stmt->GetInt64(0, &version);
16436 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16436)
) {
16437 return;
16438 }
16439
16440 mPreviousVersion = uint64_t(version);
16441}
16442
16443nsresult DeleteDatabaseOp::DatabaseOpen() {
16444 AssertIsOnOwningThread();
16445 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16445); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending"
")"); do { *((volatile int*)__null) = 16445; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16446
16447 nsresult rv = SendToIOThread();
16448 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16448)
) {
16449 return rv;
16450 }
16451
16452 return NS_OK;
16453}
16454
16455nsresult DeleteDatabaseOp::DoDatabaseWork() {
16456 AssertIsOnIOThread();
16457 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16457); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { *((volatile int*)__null) = 16457; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16458 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16459); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()"
")"); do { *((volatile int*)__null) = 16459; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16459 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16459); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()"
")"); do { *((volatile int*)__null) = 16459; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16460
16461 AUTO_PROFILER_LABEL("DeleteDatabaseOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject16461( "DeleteDatabaseOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16462
16463 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16463)
||
16464 !OperationMayProceed()) {
16465 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16465, "UnknownErr")
;
16466 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16467 }
16468
16469 const nsAString& databaseName = mCommonParams.metadata().name();
16470
16471 QuotaManager* const quotaManager = QuotaManager::Get();
16472 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16472); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 16472; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16473
16474 QM_TRY_UNWRAP(auto directory,auto tryResult1285 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1285.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16475, mozilla::dom::quota::Severity::Error); return tryResult1285
.propagateErr(); } auto directory = tryResult1285.unwrap();
16475 quotaManager->GetOriginDirectory(mOriginMetadata))auto tryResult1285 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1285.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16475, mozilla::dom::quota::Severity::Error); return tryResult1285
.propagateErr(); } auto directory = tryResult1285.unwrap();
;
16476
16477 QM_TRY(MOZ_TO_RESULT({auto tryResult1286 = (ToResult(directory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1286
)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1286.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16478, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}
16478 directory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult1286 = (ToResult(directory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1286
)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1286.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16478, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}
;
16479
16480 QM_TRY_UNWRAP(mDatabaseDirectoryPath, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1287 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(directory)>::GetPath), (directory))); if ((__builtin_expect
(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(directory)>::GetPath), (directory))"
, tryResult1287.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16481, mozilla::dom::quota::Severity::Error); return tryResult1287
.propagateErr(); } mDatabaseDirectoryPath = tryResult1287.unwrap
();
16481 nsString, directory, GetPath))auto tryResult1287 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(directory)>::GetPath), (directory))); if ((__builtin_expect
(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(directory)>::GetPath), (directory))"
, tryResult1287.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16481, mozilla::dom::quota::Severity::Error); return tryResult1287
.propagateErr(); } mDatabaseDirectoryPath = tryResult1287.unwrap
();
;
16482
16483 mDatabaseFilenameBase =
16484 GetDatabaseFilenameBase(databaseName, mOriginMetadata.mIsPrivate);
16485
16486 QM_TRY_INSPECT(auto tryResult1288 = (CloneFileAndAppend(*directory, mDatabaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1288.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)"
, tryResult1288.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16488, mozilla::dom::quota::Severity::Error); return tryResult1288
.propagateErr(); } const auto& dbFile = tryResult1288.inspect
();
16487 const auto& dbFile,auto tryResult1288 = (CloneFileAndAppend(*directory, mDatabaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1288.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)"
, tryResult1288.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16488, mozilla::dom::quota::Severity::Error); return tryResult1288
.propagateErr(); } const auto& dbFile = tryResult1288.inspect
();
16488 CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix))auto tryResult1288 = (CloneFileAndAppend(*directory, mDatabaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1288.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)"
, tryResult1288.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16488, mozilla::dom::quota::Severity::Error); return tryResult1288
.propagateErr(); } const auto& dbFile = tryResult1288.inspect
();
;
16489
16490#ifdef DEBUG1
16491 {
16492 QM_TRY_INSPECT(auto tryResult1289 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(
tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1289.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16494, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const auto& databaseFilePath = tryResult1289
.inspect();
16493 const auto& databaseFilePath,auto tryResult1289 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(
tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1289.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16494, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const auto& databaseFilePath = tryResult1289
.inspect();
16494 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath))auto tryResult1289 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(
tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1289.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16494, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const auto& databaseFilePath = tryResult1289
.inspect();
;
16495
16496 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16496); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFilePath == mDatabaseFilePath.ref()"
")"); do { *((volatile int*)__null) = 16496; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16497 }
16498#endif
16499
16500 QM_TRY_INSPECT(const bool& exists,auto tryResult1290 = (::mozilla::ToResultInvokeMember( (dbFile
), &::mozilla::detail::DerefedType<decltype(dbFile)>
::Exists)); if ((__builtin_expect(!!(tryResult1290.isErr()), 0
))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbFile), &::mozilla::detail::DerefedType<decltype(dbFile)>::Exists)"
, tryResult1290.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16501, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); } const bool& exists = tryResult1290.inspect
();
16501 MOZ_TO_RESULT_INVOKE_MEMBER(dbFile, Exists))auto tryResult1290 = (::mozilla::ToResultInvokeMember( (dbFile
), &::mozilla::detail::DerefedType<decltype(dbFile)>
::Exists)); if ((__builtin_expect(!!(tryResult1290.isErr()), 0
))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbFile), &::mozilla::detail::DerefedType<decltype(dbFile)>::Exists)"
, tryResult1290.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16501, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); } const bool& exists = tryResult1290.inspect
();
;
16502
16503 if (exists) {
16504 // Parts of this function may fail but that shouldn't prevent us from
16505 // deleting the file eventually.
16506 LoadPreviousVersion(*dbFile);
16507
16508 mState = State::BeginVersionChange;
16509 } else {
16510 mState = State::SendingResults;
16511 }
16512
16513 QM_TRY(MOZ_TO_RESULT({auto tryResult1291 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1291.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16514, mozilla::dom::quota::Severity::Error); return tryResult1291
.propagateErr(); }}
16514 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1291 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1291.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16514, mozilla::dom::quota::Severity::Error); return tryResult1291
.propagateErr(); }}
;
16515
16516 return NS_OK;
16517}
16518
16519nsresult DeleteDatabaseOp::BeginVersionChange() {
16520 AssertIsOnOwningThread();
16521 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange"
")"); do { *((volatile int*)__null) = 16521; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16522 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 16522; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16523
16524 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16524)
||
16525 IsActorDestroyed()) {
16526 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16526, "UnknownErr")
;
16527 QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult1292 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
)); static_assert(std::is_empty_v<typename decltype(tryResult1292
)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)"
, tryResult1292.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16527, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); }}
;
16528 }
16529
16530 DatabaseActorInfo* info;
16531 if (gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) {
16532 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16532); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { *((volatile int*)__null) = 16532; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16533
16534 nsresult rv =
16535 SendVersionChangeMessages(info, Nothing(), mPreviousVersion, Nothing());
16536 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16536)
) {
16537 return rv;
16538 }
16539
16540 if (!mMaybeBlockedDatabases.IsEmpty()) {
16541 // If the actor gets destroyed, mWaitingFactoryOp will hold the last
16542 // strong reference to us.
16543 info->mWaitingFactoryOp = this;
16544
16545 mState = State::WaitingForOtherDatabasesToClose;
16546 return NS_OK;
16547 }
16548 }
16549
16550 // No other databases need to be notified, just make sure that all
16551 // transactions are complete.
16552 WaitForTransactions();
16553 return NS_OK;
16554}
16555
16556bool DeleteDatabaseOp::AreActorsAlive() {
16557 AssertIsOnOwningThread();
16558
16559 return !IsActorDestroyed();
16560}
16561
16562nsresult DeleteDatabaseOp::DispatchToWorkThread() {
16563 AssertIsOnOwningThread();
16564 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16564); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForTransactionsToComplete"
")"); do { *((volatile int*)__null) = 16564; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16565 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16565); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 16565; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16566
16567 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16567)
||
16568 IsActorDestroyed()) {
16569 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16569, "UnknownErr")
;
16570 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16571 }
16572
16573 mState = State::DatabaseWorkVersionChange;
16574
16575 RefPtr<VersionChangeOp> versionChangeOp = new VersionChangeOp(this);
16576
16577 QuotaManager* const quotaManager = QuotaManager::Get();
16578 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16578); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 16578; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16579
16580 nsresult rv = quotaManager->IOThread()->Dispatch(versionChangeOp.forget(),
16581 NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL);
16582 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16582)
) {
16583 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16583, "UnknownErr")
;
16584 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16585 }
16586
16587 return NS_OK;
16588}
16589
16590void DeleteDatabaseOp::SendBlockedNotification() {
16591 AssertIsOnOwningThread();
16592 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16592); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose"
")"); do { *((volatile int*)__null) = 16592; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16593
16594 if (!IsActorDestroyed()) {
16595 Unused << SendBlocked(mPreviousVersion);
16596 }
16597}
16598
16599nsresult DeleteDatabaseOp::DoVersionUpdate() {
16600 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16600); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { *((volatile int*)__null) = 16600; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
16601}
16602
16603void DeleteDatabaseOp::SendResults() {
16604 AssertIsOnOwningThread();
16605 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16605); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults"
")"); do { *((volatile int*)__null) = 16605; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16606 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16606); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 16606; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16607
16608 DebugOnly<DatabaseActorInfo*> info = nullptr;
16609 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16611); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { *((volatile int*)__null) = 16611; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
16610 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16611); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { *((volatile int*)__null) = 16611; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
16611 !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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16611); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { *((volatile int*)__null) = 16611; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
16612
16613 if (!IsActorDestroyed()) {
16614 FactoryRequestResponse response;
16615
16616 if (!HasFailed()) {
16617 response = DeleteDatabaseRequestResponse(mPreviousVersion);
16618 } else {
16619 response = ClampResultCode(ResultCode());
16620 }
16621
16622 Unused << PBackgroundIDBFactoryRequestParent::Send__delete__(this,
16623 response);
16624 }
16625
16626 SafeDropDirectoryLock(mDirectoryLock);
16627
16628 CleanupMetadata();
16629
16630 FinishSendResults();
16631}
16632
16633nsresult DeleteDatabaseOp::VersionChangeOp::RunOnIOThread() {
16634 AssertIsOnIOThread();
16635 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16635); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { *((volatile int*)__null) = 16635; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16636
16637 AUTO_PROFILER_LABEL("DeleteDatabaseOp::VersionChangeOp::RunOnIOThread", DOM)mozilla::AutoProfilerLabel raiiObject16637( "DeleteDatabaseOp::VersionChangeOp::RunOnIOThread"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16638
16639 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16639)
||
16640 !OperationMayProceed()) {
16641 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16641, "UnknownErr")
;
16642 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16643 }
16644
16645 const PersistenceType& persistenceType =
16646 mDeleteDatabaseOp->mCommonParams.metadata().persistenceType();
16647
16648 QuotaManager* quotaManager =
16649 mDeleteDatabaseOp->mEnforcingQuota ? QuotaManager::Get() : nullptr;
16650
16651 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16651); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 16651; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
16652
16653 nsCOMPtr<nsIFile> directory =
16654 GetFileForPath(mDeleteDatabaseOp->mDatabaseDirectoryPath);
16655 if (NS_WARN_IF(!directory)NS_warn_if_impl(!directory, "!directory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16655)
) {
16656 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16656, "UnknownErr")
;
16657 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16658 }
16659
16660 nsresult rv = RemoveDatabaseFilesAndDirectory(
16661 *directory, mDeleteDatabaseOp->mDatabaseFilenameBase, quotaManager,
16662 persistenceType, mDeleteDatabaseOp->mOriginMetadata,
16663 mDeleteDatabaseOp->mCommonParams.metadata().name());
16664 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16664)
) {
16665 return rv;
16666 }
16667
16668 rv = mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL);
16669 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16669)
) {
16670 return rv;
16671 }
16672
16673 return NS_OK;
16674}
16675
16676void DeleteDatabaseOp::VersionChangeOp::RunOnOwningThread() {
16677 AssertIsOnOwningThread();
16678 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16678); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { *((volatile int*)__null) = 16678; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16679
16680 const RefPtr<DeleteDatabaseOp> deleteOp = std::move(mDeleteDatabaseOp);
16681
16682 if (deleteOp->IsActorDestroyed()) {
16683 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16683, "UnknownErr")
;
16684 deleteOp->SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
16685 } else if (HasFailed()) {
16686 deleteOp->SetFailureCodeIfUnset(ResultCode());
16687 } else {
16688 DatabaseActorInfo* info;
16689
16690 // Inform all the other databases that they are now invalidated. That
16691 // should remove the previous metadata from our table.
16692 if (gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref(), &info)) {
16693 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16693); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 16693; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16694 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16694); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { *((volatile int*)__null) = 16694; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16695
16696 nsTArray<SafeRefPtr<Database>> liveDatabases;
16697 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16698)
16698 fallible))NS_warn_if_impl(!liveDatabases.SetCapacity(info->mLiveDatabases
.Length(), fallible), "!liveDatabases.SetCapacity(info->mLiveDatabases.Length(), fallible)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16698)
) {
16699 deleteOp->SetFailureCode(NS_ERROR_OUT_OF_MEMORY);
16700 } else {
16701 std::transform(info->mLiveDatabases.cbegin(),
16702 info->mLiveDatabases.cend(),
16703 MakeBackInserter(liveDatabases),
16704 [](const auto& aDatabase) -> SafeRefPtr<Database> {
16705 return {aDatabase.get(), AcquireStrongRefFromRawPtr{}};
16706 });
16707
16708#ifdef DEBUG1
16709 // The code below should result in the deletion of |info|. Set to null
16710 // here to make sure we find invalid uses later.
16711 info = nullptr;
16712#endif
16713
16714 for (const auto& database : liveDatabases) {
16715 database->Invalidate();
16716 }
16717
16718 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())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16718); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref())"
")"); do { *((volatile int*)__null) = 16718; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16719 }
16720 }
16721 }
16722
16723 // We hold a strong ref to the deleteOp, so it's safe to call Run() directly.
16724
16725 deleteOp->mState = State::SendingResults;
16726 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())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16726); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(deleteOp->Run())"
")"); do { *((volatile int*)__null) = 16726; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
16727
16728#ifdef DEBUG1
16729 // A bit hacky but the DeleteDatabaseOp::VersionChangeOp is not really a
16730 // normal database operation that is tied to an actor. Do this to make our
16731 // assertions happy.
16732 NoteActorDestroyed();
16733#endif
16734}
16735
16736nsresult DeleteDatabaseOp::VersionChangeOp::Run() {
16737 nsresult rv;
16738
16739 if (IsOnIOThread()) {
16740 rv = RunOnIOThread();
16741 } else {
16742 RunOnOwningThread();
16743 rv = NS_OK;
16744 }
16745
16746 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16746)
) {
16747 SetFailureCodeIfUnset(rv);
16748
16749 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16749); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 16749; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
16750 }
16751
16752 return NS_OK;
16753}
16754
16755nsresult GetDatabasesOp::DatabasesNotAvailable() {
16756 AssertIsOnIOThread();
16757 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16757); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { *((volatile int*)__null) = 16757; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16758
16759 mState = State::SendingResults;
16760
16761 QM_TRY(MOZ_TO_RESULT({auto tryResult1293 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1293.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16762, mozilla::dom::quota::Severity::Error); return tryResult1293
.propagateErr(); }}
16762 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1293 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1293.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16762, mozilla::dom::quota::Severity::Error); return tryResult1293
.propagateErr(); }}
;
16763
16764 return NS_OK;
16765}
16766
16767nsresult GetDatabasesOp::DoDirectoryWork() {
16768 AssertIsOnIOThread();
16769 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16769); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryWorkOpen"
")"); do { *((volatile int*)__null) = 16769; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16770
16771 // This state (DirectoryWorkOpen) runs immediately on the I/O thread, before
16772 // waiting for existing factory operations to complete (at which point
16773 // DoDatabaseWork will be invoked). To match the spec, we must snapshot the
16774 // current state of any databases that are being created (version = 0) or
16775 // upgraded (version >= 1) now. If we only sampled these values in
16776 // DoDatabaseWork, we would only see their post-creation/post-upgrade
16777 // versions, which would be incorrect.
16778
16779 IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get();
16780 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16780); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")");
do { *((volatile int*)__null) = 16780; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
16781
16782 const auto& fileManagers =
16783 idm->GetFileManagers(mPersistenceType, mOriginMetadata.mOrigin);
16784
16785 for (const auto& fileManager : fileManagers) {
16786 auto& metadata =
16787 mDatabaseMetadataTable.LookupOrInsert(fileManager->DatabaseFilePath());
16788 metadata.name() = fileManager->DatabaseName();
16789 metadata.version() = fileManager->DatabaseVersion();
16790 }
16791
16792 // Must set this before dispatching otherwise we will race with the IO thread.
16793 mState = State::DirectoryWorkDone;
16794
16795 QM_TRY(MOZ_TO_RESULT(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))){auto tryResult1294 = (ToResult(mOwningEventTarget->Dispatch
(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::
is_empty_v<typename decltype(tryResult1294)::ok_type>);
if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16795, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}
;
16796
16797 return NS_OK;
16798}
16799
16800nsresult GetDatabasesOp::DatabaseOpen() {
16801 AssertIsOnOwningThread();
16802 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16802); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending"
")"); do { *((volatile int*)__null) = 16802; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16803
16804 nsresult rv = SendToIOThread();
16805 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16805)
) {
16806 return rv;
16807 }
16808
16809 return NS_OK;
16810}
16811
16812nsresult GetDatabasesOp::DoDatabaseWork() {
16813 AssertIsOnIOThread();
16814 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16814); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { *((volatile int*)__null) = 16814; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16815
16816 AUTO_PROFILER_LABEL("GetDatabasesOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject16816( "GetDatabasesOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16817
16818 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16818)
||
16819 !OperationMayProceed()) {
16820 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16820, "UnknownErr")
;
16821 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16822 }
16823
16824 QuotaManager* const quotaManager = QuotaManager::Get();
16825 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16825); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 16825; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16826
16827 {
16828 QM_TRY_INSPECT(const bool& exists,auto tryResult1295 = (quotaManager->DoesOriginDirectoryExist
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1295.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->DoesOriginDirectoryExist(mOriginMetadata)"
, tryResult1295.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16829, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const bool& exists = tryResult1295.inspect
();
16829 quotaManager->DoesOriginDirectoryExist(mOriginMetadata))auto tryResult1295 = (quotaManager->DoesOriginDirectoryExist
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1295.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->DoesOriginDirectoryExist(mOriginMetadata)"
, tryResult1295.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16829, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const bool& exists = tryResult1295.inspect
();
;
16830 if (!exists) {
16831 return DatabasesNotAvailable();
16832 }
16833 }
16834
16835 // XXX Is this really needed ?
16836 QM_TRY(([&quotaManager,{auto tryResult1298 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1296 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1296
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16839, mozilla::dom::quota::Severity::Error); } return tryResult1296
;}; } {auto tryResult1297 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16843, mozilla::dom::quota::Severity::Error); } return tryResult1297
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1298)::ok_type
>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1296 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16839, mozilla::dom::quota::Severity::Error); } return tryResult1296;}; } {auto tryResult1297 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1297.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16843, mozilla::dom::quota::Severity::Error); } return tryResult1297;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16845, mozilla::dom::quota::Severity::Error); return tryResult1298
.propagateErr(); }}
16837 this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> {{auto tryResult1298 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1296 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1296
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16839, mozilla::dom::quota::Severity::Error); } return tryResult1296
;}; } {auto tryResult1297 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16843, mozilla::dom::quota::Severity::Error); } return tryResult1297
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1298)::ok_type
>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1296 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16839, mozilla::dom::quota::Severity::Error); } return tryResult1296;}; } {auto tryResult1297 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1297.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16843, mozilla::dom::quota::Severity::Error); } return tryResult1297;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16845, mozilla::dom::quota::Severity::Error); return tryResult1298
.propagateErr(); }}
16838 if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {{auto tryResult1298 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1296 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1296
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16839, mozilla::dom::quota::Severity::Error); } return tryResult1296
;}; } {auto tryResult1297 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16843, mozilla::dom::quota::Severity::Error); } return tryResult1297
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1298)::ok_type
>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1296 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16839, mozilla::dom::quota::Severity::Error); } return tryResult1296;}; } {auto tryResult1297 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1297.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16843, mozilla::dom::quota::Severity::Error); } return tryResult1297;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16845, mozilla::dom::quota::Severity::Error); return tryResult1298
.propagateErr(); }}
16839 QM_TRY_RETURN(quotaManager->GetOriginDirectory(mOriginMetadata));{auto tryResult1298 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1296 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1296
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16839, mozilla::dom::quota::Severity::Error); } return tryResult1296
;}; } {auto tryResult1297 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16843, mozilla::dom::quota::Severity::Error); } return tryResult1297
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1298)::ok_type
>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1296 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16839, mozilla::dom::quota::Severity::Error); } return tryResult1296;}; } {auto tryResult1297 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1297.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16843, mozilla::dom::quota::Severity::Error); } return tryResult1297;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16845, mozilla::dom::quota::Severity::Error); return tryResult1298
.propagateErr(); }}
16840 }{auto tryResult1298 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1296 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1296
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16839, mozilla::dom::quota::Severity::Error); } return tryResult1296
;}; } {auto tryResult1297 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16843, mozilla::dom::quota::Severity::Error); } return tryResult1297
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1298)::ok_type
>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1296 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16839, mozilla::dom::quota::Severity::Error); } return tryResult1296;}; } {auto tryResult1297 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1297.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16843, mozilla::dom::quota::Severity::Error); } return tryResult1297;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16845, mozilla::dom::quota::Severity::Error); return tryResult1298
.propagateErr(); }}
16841
16842 QM_TRY_RETURN({auto tryResult1298 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1296 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1296
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16839, mozilla::dom::quota::Severity::Error); } return tryResult1296
;}; } {auto tryResult1297 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16843, mozilla::dom::quota::Severity::Error); } return tryResult1297
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1298)::ok_type
>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1296 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16839, mozilla::dom::quota::Severity::Error); } return tryResult1296;}; } {auto tryResult1297 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1297.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16843, mozilla::dom::quota::Severity::Error); } return tryResult1297;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16845, mozilla::dom::quota::Severity::Error); return tryResult1298
.propagateErr(); }}
16843 quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata));{auto tryResult1298 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1296 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1296
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16839, mozilla::dom::quota::Severity::Error); } return tryResult1296
;}; } {auto tryResult1297 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16843, mozilla::dom::quota::Severity::Error); } return tryResult1297
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1298)::ok_type
>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1296 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16839, mozilla::dom::quota::Severity::Error); } return tryResult1296;}; } {auto tryResult1297 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1297.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16843, mozilla::dom::quota::Severity::Error); } return tryResult1297;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16845, mozilla::dom::quota::Severity::Error); return tryResult1298
.propagateErr(); }}
16844 }(){auto tryResult1298 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1296 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1296
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16839, mozilla::dom::quota::Severity::Error); } return tryResult1296
;}; } {auto tryResult1297 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16843, mozilla::dom::quota::Severity::Error); } return tryResult1297
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1298)::ok_type
>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1296 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16839, mozilla::dom::quota::Severity::Error); } return tryResult1296;}; } {auto tryResult1297 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1297.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16843, mozilla::dom::quota::Severity::Error); } return tryResult1297;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16845, mozilla::dom::quota::Severity::Error); return tryResult1298
.propagateErr(); }}
16845 .map([](const auto& res) { return Ok{}; }))){auto tryResult1298 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1296 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1296
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16839, mozilla::dom::quota::Severity::Error); } return tryResult1296
;}; } {auto tryResult1297 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16843, mozilla::dom::quota::Severity::Error); } return tryResult1297
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1298)::ok_type
>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1296 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16839, mozilla::dom::quota::Severity::Error); } return tryResult1296;}; } {auto tryResult1297 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1297.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16843, mozilla::dom::quota::Severity::Error); } return tryResult1297;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16845, mozilla::dom::quota::Severity::Error); return tryResult1298
.propagateErr(); }}
;
16846
16847 {
16848 QM_TRY_INSPECT(const bool& exists,auto tryResult1299 = (quotaManager->DoesClientDirectoryExist
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1299.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16850, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); } const bool& exists = tryResult1299.inspect
();
16849 quotaManager->DoesClientDirectoryExist(auto tryResult1299 = (quotaManager->DoesClientDirectoryExist
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1299.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16850, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); } const bool& exists = tryResult1299.inspect
();
16850 ClientMetadata{mOriginMetadata, Client::IDB}))auto tryResult1299 = (quotaManager->DoesClientDirectoryExist
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1299.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16850, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); } const bool& exists = tryResult1299.inspect
();
;
16851 if (!exists) {
16852 return DatabasesNotAvailable();
16853 }
16854 }
16855
16856 QM_TRY_INSPECT(auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1301.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16868, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); } const auto& clientDirectory = tryResult1302
.inspect();
16857 const auto& clientDirectory,auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1301.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16868, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); } const auto& clientDirectory = tryResult1302
.inspect();
16858 ([&quotaManager, this]()auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1301.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16868, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); } const auto& clientDirectory = tryResult1302
.inspect();
16859 -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> {auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1301.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16868, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); } const auto& clientDirectory = tryResult1302
.inspect();
16860 if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1301.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16868, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); } const auto& clientDirectory = tryResult1302
.inspect();
16861 QM_TRY_RETURN(quotaManager->EnsurePersistentClientIsInitialized(auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1301.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16868, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); } const auto& clientDirectory = tryResult1302
.inspect();
16862 ClientMetadata{mOriginMetadata, Client::IDB}));auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1301.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16868, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); } const auto& clientDirectory = tryResult1302
.inspect();
16863 }auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1301.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16868, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); } const auto& clientDirectory = tryResult1302
.inspect();
16864
16865 QM_TRY_RETURN(quotaManager->EnsureTemporaryClientIsInitialized(auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1301.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16868, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); } const auto& clientDirectory = tryResult1302
.inspect();
16866 ClientMetadata{mOriginMetadata, Client::IDB}));auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1301.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16868, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); } const auto& clientDirectory = tryResult1302
.inspect();
16867 }()auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1301.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16868, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); } const auto& clientDirectory = tryResult1302
.inspect();
16868 .map([](const auto& res) { return res.first; })))auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16862, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1301.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16866, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16868, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); } const auto& clientDirectory = tryResult1302
.inspect();
;
16869
16870 QM_TRY_INSPECT(auto tryResult1303 = (QuotaClient::GetDatabaseFilenames(*clientDirectory
, Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1303
.isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})"
, tryResult1303.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16873, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1303.inspect();
16871 (const auto& [subdirsToProcess, databaseFilenames]),auto tryResult1303 = (QuotaClient::GetDatabaseFilenames(*clientDirectory
, Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1303
.isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})"
, tryResult1303.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16873, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1303.inspect();
16872 QuotaClient::GetDatabaseFilenames(*clientDirectory,auto tryResult1303 = (QuotaClient::GetDatabaseFilenames(*clientDirectory
, Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1303
.isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})"
, tryResult1303.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16873, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1303.inspect();
16873 /* aCanceled */ Atomic<bool>{false}))auto tryResult1303 = (QuotaClient::GetDatabaseFilenames(*clientDirectory
, Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1303
.isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})"
, tryResult1303.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16873, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1303.inspect();
;
16874
16875 for (const auto& databaseFilename : databaseFilenames) {
16876 QM_TRY_INSPECT(auto tryResult1304 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)"
, tryResult1304.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16878, mozilla::dom::quota::Severity::Error); return tryResult1304
.propagateErr(); } const auto& databaseFile = tryResult1304
.inspect();
16877 const auto& databaseFile,auto tryResult1304 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)"
, tryResult1304.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16878, mozilla::dom::quota::Severity::Error); return tryResult1304
.propagateErr(); } const auto& databaseFile = tryResult1304
.inspect();
16878 CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix))auto tryResult1304 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)"
, tryResult1304.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16878, mozilla::dom::quota::Severity::Error); return tryResult1304
.propagateErr(); } const auto& databaseFile = tryResult1304
.inspect();
;
16879
16880 nsString path;
16881 databaseFile->GetPath(path);
16882
16883 // Use the snapshotted values from DoDirectoryWork which correctly
16884 // snapshotted the state of any pending creations/upgrades. This does mean
16885 // that we need to skip reporting databases that had a version of 0 at that
16886 // time because they were still being created. In the event that any other
16887 // creation or upgrade requests are made after our operation is created,
16888 // this operation will block those, so it's not possible for this set of
16889 // data to get out of sync. The snapshotting (using cached database name
16890 // and version in DatabaseFileManager) also guarantees that we are not
16891 // touching the SQLite database here on the QuotaManager I/O thread which
16892 // is already open on the connection thread.
16893
16894 auto metadata = mDatabaseMetadataTable.Lookup(path);
16895 if (metadata) {
16896 if (metadata->version() != 0) {
16897 mDatabaseMetadataArray.AppendElement(DatabaseMetadata(
16898 metadata->name(), metadata->version(), mPersistenceType));
16899 }
16900
16901 continue;
16902 }
16903
16904 // Since the database is not already open (there was no DatabaseFileManager
16905 // for snapshotting in DoDirectoryWork which could provide us with the
16906 // database name and version without needing to open the SQLite database),
16907 // it is safe and necessary for us to open the database on this thread and
16908 // retrieve its name and version. We do not need to worry about racing a
16909 // database open because database opens can only be processed on this
16910 // thread and we are performing the steps below synchronously.
16911
16912 QM_TRY_INSPECT(auto tryResult1305 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1305.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16915, mozilla::dom::quota::Severity::Error); return tryResult1305
.propagateErr(); } const auto& fmDirectory = tryResult1305
.inspect();
16913 const auto& fmDirectory,auto tryResult1305 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1305.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16915, mozilla::dom::quota::Severity::Error); return tryResult1305
.propagateErr(); } const auto& fmDirectory = tryResult1305
.inspect();
16914 CloneFileAndAppend(*clientDirectory,auto tryResult1305 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1305.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16915, mozilla::dom::quota::Severity::Error); return tryResult1305
.propagateErr(); } const auto& fmDirectory = tryResult1305
.inspect();
16915 databaseFilename + kFileManagerDirectoryNameSuffix))auto tryResult1305 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1305.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16915, mozilla::dom::quota::Severity::Error); return tryResult1305
.propagateErr(); } const auto& fmDirectory = tryResult1305
.inspect();
;
16916
16917 QM_TRY_UNWRAP(auto tryResult1306 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1306.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16921, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1306.unwrap();
16918 const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1306 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1306.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16921, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1306.unwrap();
16919 CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(),auto tryResult1306 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1306.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16921, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1306.unwrap();
16920 mOriginMetadata.mOrigin, mDirectoryLockId,auto tryResult1306 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1306.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16921, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1306.unwrap();
16921 TelemetryIdForFile(databaseFile), Nothing{}))auto tryResult1306 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1306.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16921, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1306.unwrap();
;
16922
16923 {
16924 // Load version information.
16925 QM_TRY_INSPECT(const auto& stmt,auto tryResult1307 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)"
, tryResult1307.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16928, mozilla::dom::quota::Severity::Error); return tryResult1307
.propagateErr(); } const auto& stmt = tryResult1307.inspect
();
16926 CreateAndExecuteSingleStepStatement<auto tryResult1307 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)"
, tryResult1307.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16928, mozilla::dom::quota::Severity::Error); return tryResult1307
.propagateErr(); } const auto& stmt = tryResult1307.inspect
();
16927 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1307 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)"
, tryResult1307.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16928, mozilla::dom::quota::Severity::Error); return tryResult1307
.propagateErr(); } const auto& stmt = tryResult1307.inspect
();
16928 *connection, "SELECT name, version FROM database"_ns))auto tryResult1307 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)"
, tryResult1307.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16928, mozilla::dom::quota::Severity::Error); return tryResult1307
.propagateErr(); } const auto& stmt = tryResult1307.inspect
();
;
16929
16930 QM_TRY(OkIf(stmt), NS_ERROR_FILE_CORRUPTED){auto tryResult1308 = (OkIf(stmt)); static_assert(std::is_empty_v
<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect
(!!(tryResult1308.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1308.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(stmt)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16930, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(stmt)", tryTempError
, NS_ERROR_FILE_CORRUPTED); }}
;
16931
16932 QM_TRY_INSPECT(auto tryResult1309 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1309.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16934, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); } const auto& databaseName = tryResult1309
.inspect();
16933 const auto& databaseName,auto tryResult1309 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1309.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16934, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); } const auto& databaseName = tryResult1309
.inspect();
16934 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, stmt, GetString, 0))auto tryResult1309 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1309.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16934, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); } const auto& databaseName = tryResult1309
.inspect();
;
16935
16936 QM_TRY_INSPECT(const int64_t& version,auto tryResult1310 = (::mozilla::ToResultInvokeMember( (stmt)
, &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 1)); if ((__builtin_expect(!!(tryResult1310.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1310.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16937, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); } const int64_t& version = tryResult1310
.inspect();
16937 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1))auto tryResult1310 = (::mozilla::ToResultInvokeMember( (stmt)
, &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 1)); if ((__builtin_expect(!!(tryResult1310.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1310.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16937, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); } const int64_t& version = tryResult1310
.inspect();
;
16938
16939 mDatabaseMetadataArray.AppendElement(
16940 DatabaseMetadata(databaseName, version, mPersistenceType));
16941 }
16942 }
16943
16944 mState = State::SendingResults;
16945
16946 QM_TRY(MOZ_TO_RESULT({auto tryResult1311 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1311.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16947, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}
16947 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1311 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1311.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16947, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}
;
16948
16949 return NS_OK;
16950}
16951
16952nsresult GetDatabasesOp::BeginVersionChange() {
16953 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16953); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { *((volatile int*)__null) = 16953; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
16954}
16955
16956bool GetDatabasesOp::AreActorsAlive() {
16957 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16957); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { *((volatile int*)__null) = 16957; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
16958}
16959
16960void GetDatabasesOp::SendBlockedNotification() {
16961 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16961); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { *((volatile int*)__null) = 16961; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
16962}
16963
16964nsresult GetDatabasesOp::DispatchToWorkThread() {
16965 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16965); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { *((volatile int*)__null) = 16965; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
16966}
16967
16968nsresult GetDatabasesOp::DoVersionUpdate() {
16969 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16969); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { *((volatile int*)__null) = 16969; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
16970}
16971
16972void GetDatabasesOp::SendResults() {
16973 AssertIsOnOwningThread();
16974 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16974); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults"
")"); do { *((volatile int*)__null) = 16974; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16975
16976#ifdef DEBUG1
16977 NoteActorDestroyed();
16978#endif
16979
16980 if (HasFailed()) {
16981 mResolver(ClampResultCode(ResultCode()));
16982 } else {
16983 mResolver(mDatabaseMetadataArray);
16984 }
16985
16986 SafeDropDirectoryLock(mDirectoryLock);
16987
16988 CleanupMetadata();
16989
16990 FinishSendResults();
16991}
16992
16993TransactionDatabaseOperationBase::TransactionDatabaseOperationBase(
16994 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId)
16995 : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(),
16996 aTransaction->GetLoggingInfo()->NextRequestSN()),
16997 mTransaction(WrapNotNull(std::move(aTransaction))),
16998 mRequestId(aRequestId),
16999 mTransactionIsAborted((*mTransaction)->IsAborted()),
17000 mTransactionLoggingSerialNumber((*mTransaction)->LoggingSerialNumber()) {
17001 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17001); AnnotateMozCrashReason("MOZ_ASSERT" "(" "LoggingSerialNumber()"
")"); do { *((volatile int*)__null) = 17001; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17002}
17003
17004TransactionDatabaseOperationBase::TransactionDatabaseOperationBase(
17005 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
17006 uint64_t aLoggingSerialNumber)
17007 : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(),
17008 aLoggingSerialNumber),
17009 mTransaction(WrapNotNull(std::move(aTransaction))),
17010 mRequestId(aRequestId),
17011 mTransactionIsAborted((*mTransaction)->IsAborted()),
17012 mTransactionLoggingSerialNumber((*mTransaction)->LoggingSerialNumber()) {}
17013
17014TransactionDatabaseOperationBase::~TransactionDatabaseOperationBase() {
17015 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17015); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Completed"
")"); do { *((volatile int*)__null) = 17015; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17016 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!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17018); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction"
") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a "
"subclass!" ")"); do { *((volatile int*)__null) = 17018; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
17017 "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!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17018); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction"
") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a "
"subclass!" ")"); do { *((volatile int*)__null) = 17018; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
17018 "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!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17018); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction"
") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a "
"subclass!" ")"); do { *((volatile int*)__null) = 17018; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
;
17019}
17020
17021#ifdef DEBUG1
17022
17023void TransactionDatabaseOperationBase::AssertIsOnConnectionThread() const {
17024 (*mTransaction)->AssertIsOnConnectionThread();
17025}
17026
17027#endif // DEBUG
17028
17029uint64_t TransactionDatabaseOperationBase::StartOnConnectionPool(
17030 const nsID& aBackgroundChildLoggingId, const nsACString& aDatabaseId,
17031 int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames,
17032 bool aIsWriteTransaction) {
17033 AssertIsOnOwningThread();
17034 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17034); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial"
")"); do { *((volatile int*)__null) = 17034; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17035
17036 // Must set mInternalState before dispatching otherwise we will race with the
17037 // connection thread.
17038 mInternalState = InternalState::DatabaseWork;
17039
17040 return gConnectionPool->Start(aBackgroundChildLoggingId, aDatabaseId,
17041 aLoggingSerialNumber, aObjectStoreNames,
17042 aIsWriteTransaction, this);
17043}
17044
17045void TransactionDatabaseOperationBase::DispatchToConnectionPool() {
17046 AssertIsOnOwningThread();
17047 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial"
")"); do { *((volatile int*)__null) = 17047; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17048
17049 Unused << this->Run();
17050}
17051
17052void TransactionDatabaseOperationBase::RunOnConnectionThread() {
17053 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17053); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 17053; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17054 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17054); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::DatabaseWork"
")"); do { *((volatile int*)__null) = 17054; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17055 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17055); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { *((volatile int*)__null) = 17055; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17056
17057 AUTO_PROFILER_LABEL("TransactionDatabaseOperationBase::RunOnConnectionThread",mozilla::AutoProfilerLabel raiiObject17058( "TransactionDatabaseOperationBase::RunOnConnectionThread"
, nullptr, JS::ProfilingCategoryPair::DOM)
17058 DOM)mozilla::AutoProfilerLabel raiiObject17058( "TransactionDatabaseOperationBase::RunOnConnectionThread"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17059
17060 // There are several cases where we don't actually have to to any work here.
17061
17062 if (mTransactionIsAborted || (*mTransaction)->IsInvalidatedOnAnyThread()) {
17063 // This transaction is already set to be aborted or invalidated.
17064 SetFailureCode(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR);
17065 } else if (!OperationMayProceed()) {
17066 // The operation was canceled in some way, likely because the child process
17067 // has crashed.
17068 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17068, "UnknownErr")
;
17069 OverrideFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
17070 } else {
17071 Database& database = (*mTransaction)->GetMutableDatabase();
17072
17073 // Here we're actually going to perform the database operation.
17074 nsresult rv = database.EnsureConnection();
17075 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17075)
) {
17076 SetFailureCode(rv);
17077 } else {
17078 DatabaseConnection* connection = database.GetConnection();
17079 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17079); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection"
")"); do { *((volatile int*)__null) = 17079; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17080
17081 auto& storageConnection = connection->MutableStorageConnection();
17082
17083 AutoSetProgressHandler autoProgress;
17084 if (mLoggingSerialNumber) {
17085 rv = autoProgress.Register(storageConnection, this);
17086 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17086)
) {
17087 SetFailureCode(rv);
17088 }
17089 }
17090
17091 if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) {
17092 if (mLoggingSerialNumber) {
17093 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
)
17094 "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
)
17095 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
)
17096 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
)
;
17097 }
17098
17099 rv = DoDatabaseWork(connection);
17100
17101 if (mLoggingSerialNumber) {
17102 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)
17103 "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)
17104 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)
17105 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)
;
17106 }
17107
17108 if (NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) {
17109 SetFailureCode(rv);
17110 }
17111 }
17112 }
17113 }
17114
17115 // Must set mInternalState before dispatching otherwise we will race with the
17116 // owning thread.
17117 if (HasPreprocessInfo()) {
17118 mInternalState = InternalState::SendingPreprocess;
17119 } else {
17120 mInternalState = InternalState::SendingResults;
17121 }
17122
17123 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17123); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 17123; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
17124}
17125
17126bool TransactionDatabaseOperationBase::HasPreprocessInfo() { return false; }
17127
17128nsresult TransactionDatabaseOperationBase::SendPreprocessInfo() {
17129 return NS_OK;
17130}
17131
17132void TransactionDatabaseOperationBase::NoteContinueReceived() {
17133 AssertIsOnOwningThread();
17134 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17134); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::WaitingForContinue"
")"); do { *((volatile int*)__null) = 17134; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17135
17136 mWaitingForContinue = false;
17137
17138 mInternalState = InternalState::SendingResults;
17139
17140 // This TransactionDatabaseOperationBase can only be held alive by the IPDL.
17141 // Run() can end up with clearing that last reference. So we need to add
17142 // a self reference here.
17143 RefPtr<TransactionDatabaseOperationBase> kungFuDeathGrip = this;
17144
17145 Unused << this->Run();
17146}
17147
17148void TransactionDatabaseOperationBase::SendToConnectionPool() {
17149 AssertIsOnOwningThread();
17150 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17150); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial"
")"); do { *((volatile int*)__null) = 17150; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17151
17152 // Must set mInternalState before dispatching otherwise we will race with the
17153 // connection thread.
17154 mInternalState = InternalState::DatabaseWork;
17155
17156 gConnectionPool->Dispatch((*mTransaction)->TransactionId(), this);
17157
17158 (*mTransaction)->NoteActiveRequest();
17159}
17160
17161void TransactionDatabaseOperationBase::SendPreprocess() {
17162 AssertIsOnOwningThread();
17163 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17163); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess"
")"); do { *((volatile int*)__null) = 17163; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17164
17165 SendPreprocessInfoOrResults(/* aSendPreprocessInfo */ true);
17166}
17167
17168void TransactionDatabaseOperationBase::SendResults() {
17169 AssertIsOnOwningThread();
17170 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17170); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingResults"
")"); do { *((volatile int*)__null) = 17170; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17171
17172 SendPreprocessInfoOrResults(/* aSendPreprocessInfo */ false);
17173}
17174
17175void TransactionDatabaseOperationBase::SendPreprocessInfoOrResults(
17176 bool aSendPreprocessInfo) {
17177 AssertIsOnOwningThread();
17178 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17179); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults"
")"); do { *((volatile int*)__null) = 17179; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17179 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17179); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults"
")"); do { *((volatile int*)__null) = 17179; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17180
17181 // The flag is raised only when there is no mUpdateRefcountFunction for the
17182 // executing operation. It assume that is because the previous
17183 // StartTransactionOp was failed to begin a write transaction and it reported
17184 // when this operation has already jumped to the Connection thread.
17185 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17186); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "(*mTransaction)->IsAborted()"
")"); do { *((volatile int*)__null) = 17186; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
17186 (*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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17186); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "(*mTransaction)->IsAborted()"
")"); do { *((volatile int*)__null) = 17186; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17187
17188 if (NS_WARN_IF(IsActorDestroyed())NS_warn_if_impl(IsActorDestroyed(), "IsActorDestroyed()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17188)
) {
17189 // Normally we wouldn't need to send any notifications if the actor was
17190 // already destroyed, but this can be a VersionChangeOp which needs to
17191 // notify its parent operation (OpenDatabaseOp) about the failure.
17192 // So SendFailureResult needs to be called even when the actor was
17193 // destroyed. Normal operations redundantly check if the actor was
17194 // destroyed in SendSuccessResult and SendFailureResult, therefore it's
17195 // ok to call it in all cases here.
17196 if (!HasFailed()) {
17197 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17197, "UnknownErr")
;
17198 SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
17199 }
17200 } else if ((*mTransaction)->IsInvalidated() || (*mTransaction)->IsAborted()) {
17201 // Aborted transactions always see their requests fail with ABORT_ERR,
17202 // even if the request succeeded or failed with another error.
17203 OverrideFailureCode(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR);
17204 }
17205
17206 const nsresult rv = [aSendPreprocessInfo, this] {
17207 if (HasFailed()) {
17208 return ResultCode();
17209 }
17210 if (aSendPreprocessInfo) {
17211 // This should not release the IPDL reference.
17212 return SendPreprocessInfo();
17213 }
17214 // This may release the IPDL reference.
17215 return SendSuccessResult();
17216 }();
17217
17218 if (NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) {
17219 SetFailureCodeIfUnset(rv);
17220
17221 // This should definitely release the IPDL reference.
17222 if (!SendFailureResult(rv)) {
17223 // Abort the transaction.
17224 (*mTransaction)->Abort(rv, /* aForce */ false);
17225 }
17226 }
17227
17228 if (aSendPreprocessInfo && !HasFailed()) {
17229 mInternalState = InternalState::WaitingForContinue;
17230
17231 mWaitingForContinue = true;
17232 } else {
17233 if (mLoggingSerialNumber) {
17234 (*mTransaction)->NoteFinishedRequest(mRequestId, ResultCode());
17235 }
17236
17237 Cleanup();
17238
17239 mInternalState = InternalState::Completed;
17240 }
17241}
17242
17243bool TransactionDatabaseOperationBase::Init(TransactionBase& aTransaction) {
17244 AssertIsOnBackgroundThread();
17245 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17245); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial"
")"); do { *((volatile int*)__null) = 17245; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17246
17247 return true;
17248}
17249
17250void TransactionDatabaseOperationBase::Cleanup() {
17251 AssertIsOnOwningThread();
17252 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingResults"
")"); do { *((volatile int*)__null) = 17252; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17253
17254 mTransaction.destroy();
17255}
17256
17257NS_IMETHODIMPnsresult
17258TransactionDatabaseOperationBase::Run() {
17259 switch (mInternalState) {
17260 case InternalState::Initial:
17261 SendToConnectionPool();
17262 return NS_OK;
17263
17264 case InternalState::DatabaseWork:
17265 RunOnConnectionThread();
17266 return NS_OK;
17267
17268 case InternalState::SendingPreprocess:
17269 SendPreprocess();
17270 return NS_OK;
17271
17272 case InternalState::SendingResults:
17273 SendResults();
17274 return NS_OK;
17275
17276 default:
17277 MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17277); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")"
); do { *((volatile int*)__null) = 17277; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
17278 }
17279}
17280
17281TransactionBase::CommitOp::CommitOp(SafeRefPtr<TransactionBase> aTransaction,
17282 nsresult aResultCode)
17283 : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(),
17284 aTransaction->GetLoggingInfo()->NextRequestSN()),
17285 mTransaction(std::move(aTransaction)),
17286 mResultCode(aResultCode) {
17287 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17287); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { *((volatile int*)__null) = 17287; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17288 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17288); AnnotateMozCrashReason("MOZ_ASSERT" "(" "LoggingSerialNumber()"
")"); do { *((volatile int*)__null) = 17288; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17289}
17290
17291nsresult TransactionBase::CommitOp::WriteAutoIncrementCounts() {
17292 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17292); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { *((volatile int*)__null) = 17292; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17293 mTransaction->AssertIsOnConnectionThread();
17294 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17297); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 17297; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17295 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17297); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 17297; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17296 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17297); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 17297; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17297 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17297); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 17297; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17298
17299 const nsTArray<SafeRefPtr<FullObjectStoreMetadata>>& metadataArray =
17300 mTransaction->mModifiedAutoIncrementObjectStoreMetadataArray;
17301
17302 if (!metadataArray.IsEmpty()) {
17303 DatabaseConnection* connection =
17304 mTransaction->GetDatabase().GetConnection();
17305 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17305); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection"
")"); do { *((volatile int*)__null) = 17305; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17306
17307 // The parameter names are not used, parameters are bound by index only
17308 // locally in the same function.
17309 auto stmt = DatabaseConnection::LazyStatement(
17310 *connection,
17311 "UPDATE object_store "
17312 "SET auto_increment = :auto_increment WHERE id "
17313 "= :object_store_id;"_ns);
17314
17315 for (const auto& metadata : metadataArray) {
17316 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17316); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!metadata->mDeleted"
")"); do { *((volatile int*)__null) = 17316; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17317
17318 const int64_t nextAutoIncrementId = [&metadata] {
17319 const auto&& lockedAutoIncrementIds =
17320 metadata->mAutoIncrementIds.Lock();
17321 return lockedAutoIncrementIds->next;
17322 }();
17323
17324 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17324); AnnotateMozCrashReason("MOZ_ASSERT" "(" "nextAutoIncrementId > 1"
")"); do { *((volatile int*)__null) = 17324; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17325
17326 QM_TRY_INSPECT(const auto& borrowedStmt, stmt.Borrow())auto tryResult1312 = (stmt.Borrow()); if ((__builtin_expect(!
!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError
("stmt.Borrow()", tryResult1312.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17326, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); } const auto& borrowedStmt = tryResult1312
.inspect();
;
17327
17328 QM_TRY(MOZ_TO_RESULT({auto tryResult1313 = (ToResult(borrowedStmt->BindInt64ByIndex
(1, metadata->mCommonMetadata.id()))); static_assert(std::
is_empty_v<typename decltype(tryResult1313)::ok_type>);
if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))"
, tryResult1313.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17329, mozilla::dom::quota::Severity::Error); return tryResult1313
.propagateErr(); }}
17329 borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))){auto tryResult1313 = (ToResult(borrowedStmt->BindInt64ByIndex
(1, metadata->mCommonMetadata.id()))); static_assert(std::
is_empty_v<typename decltype(tryResult1313)::ok_type>);
if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))"
, tryResult1313.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17329, mozilla::dom::quota::Severity::Error); return tryResult1313
.propagateErr(); }}
;
17330
17331 QM_TRY(MOZ_TO_RESULT({auto tryResult1314 = (ToResult(borrowedStmt->BindInt64ByIndex
(0, nextAutoIncrementId))); static_assert(std::is_empty_v<
typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect
(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))"
, tryResult1314.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17332, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}
17332 borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))){auto tryResult1314 = (ToResult(borrowedStmt->BindInt64ByIndex
(0, nextAutoIncrementId))); static_assert(std::is_empty_v<
typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect
(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))"
, tryResult1314.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17332, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}
;
17333
17334 QM_TRY(MOZ_TO_RESULT(borrowedStmt->Execute())){auto tryResult1315 = (ToResult(borrowedStmt->Execute()));
static_assert(std::is_empty_v<typename decltype(tryResult1315
)::ok_type>); if ((__builtin_expect(!!(tryResult1315.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->Execute())"
, tryResult1315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17334, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); }}
;
17335 }
17336 }
17337
17338 return NS_OK;
17339}
17340
17341void TransactionBase::CommitOp::CommitOrRollbackAutoIncrementCounts() {
17342 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17342); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { *((volatile int*)__null) = 17342; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17343 mTransaction->AssertIsOnConnectionThread();
17344 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17347); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 17347; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17345 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17347); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 17347; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17346 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17347); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 17347; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17347 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17347); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 17347; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17348
17349 const auto& metadataArray =
17350 mTransaction->mModifiedAutoIncrementObjectStoreMetadataArray;
17351
17352 if (!metadataArray.IsEmpty()) {
17353 bool committed = NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
;
17354
17355 for (const auto& metadata : metadataArray) {
17356 auto&& lockedAutoIncrementIds = metadata->mAutoIncrementIds.Lock();
17357
17358 if (committed) {
17359 lockedAutoIncrementIds->committed = lockedAutoIncrementIds->next;
17360 } else {
17361 lockedAutoIncrementIds->next = lockedAutoIncrementIds->committed;
17362 }
17363 }
17364 }
17365}
17366
17367#ifdef DEBUG1
17368
17369void TransactionBase::CommitOp::AssertForeignKeyConsistency(
17370 DatabaseConnection* aConnection) {
17371 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17371); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 17371; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17372 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17372); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { *((volatile int*)__null) = 17372; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17373 mTransaction->AssertIsOnConnectionThread();
17374 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17374); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly"
")"); do { *((volatile int*)__null) = 17374; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17375
17376 {
17377 QM_TRY_INSPECT(auto tryResult1316 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1316.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1316.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17381, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17381); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17381; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1316.inspect();
17378 const auto& pragmaStmt,auto tryResult1316 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1316.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1316.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17381, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17381); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17381; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1316.inspect();
17379 CreateAndExecuteSingleStepStatement(auto tryResult1316 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1316.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1316.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17381, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17381); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17381; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1316.inspect();
17380 aConnection->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns),auto tryResult1316 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1316.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1316.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17381, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17381); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17381; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1316.inspect();
17381 QM_ASSERT_UNREACHABLE_VOID)auto tryResult1316 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1316.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1316.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17381, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17381); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17381; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1316.inspect();
;
17382
17383 int32_t foreignKeysEnabled;
17384 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17384); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(pragmaStmt->GetInt32(0, &foreignKeysEnabled))"
")"); do { *((volatile int*)__null) = 17384; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
17385
17386 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!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17387); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foreignKeysEnabled"
") (" "Database doesn't have foreign keys enabled!" ")"); do
{ *((volatile int*)__null) = 17387; __attribute__((nomerge))
::abort(); } while (false); } } while (false)
17387 "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!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17387); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foreignKeysEnabled"
") (" "Database doesn't have foreign keys enabled!" ")"); do
{ *((volatile int*)__null) = 17387; __attribute__((nomerge))
::abort(); } while (false); } } while (false)
;
17388 }
17389
17390 {
17391 QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult1317 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1317.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1317.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17396, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17396); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17396; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1317.inspect();
17392 CreateAndExecuteSingleStepStatement<auto tryResult1317 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1317.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1317.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17396, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17396); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17396; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1317.inspect();
17393 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1317 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1317.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1317.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17396, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17396); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17396; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1317.inspect();
17394 aConnection->MutableStorageConnection(),auto tryResult1317 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1317.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1317.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17396, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17396); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17396; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1317.inspect();
17395 "PRAGMA foreign_key_check;"_ns),auto tryResult1317 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1317.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1317.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17396, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17396); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17396; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1317.inspect();
17396 QM_ASSERT_UNREACHABLE_VOID)auto tryResult1317 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1317.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1317.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17396, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17396); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17396; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1317.inspect();
;
17397
17398 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!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17398); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!foreignKeyError"
") (" "Database has inconsisistent foreign keys!" ")"); do {
*((volatile int*)__null) = 17398; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
17399 }
17400}
17401
17402#endif // DEBUG
17403
17404NS_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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17404); 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; }
17405
17406NS_IMETHODIMPnsresult
17407TransactionBase::CommitOp::Run() {
17408 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17408); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { *((volatile int*)__null) = 17408; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17409 mTransaction->AssertIsOnConnectionThread();
17410
17411 AUTO_PROFILER_LABEL("TransactionBase::CommitOp::Run", DOM)mozilla::AutoProfilerLabel raiiObject17411( "TransactionBase::CommitOp::Run"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17412
17413 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
)
17414 "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
)
17415 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
)
17416 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
)
;
17417
17418 if (mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly &&
17419 mTransaction->mHasBeenActiveOnConnectionThread) {
17420 if (DatabaseConnection* connection =
17421 mTransaction->GetDatabase().GetConnection()) {
17422 // May be null if the VersionChangeOp was canceled.
17423 DatabaseConnection::UpdateRefcountFunction* fileRefcountFunction =
17424 connection->GetUpdateRefcountFunction();
17425
17426 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
17427 if (fileRefcountFunction) {
17428 mResultCode = fileRefcountFunction->WillCommit();
17429 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)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17430); } } while (false)
17430 "WillCommit() failed!")do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode
)), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "WillCommit() failed!"
, "NS_SUCCEEDED(mResultCode)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17430); } } while (false)
;
17431 }
17432
17433 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
17434 mResultCode = WriteAutoIncrementCounts();
17435 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)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17436); } } while (false)
17436 "WriteAutoIncrementCounts() failed!")do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode
)), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "WriteAutoIncrementCounts() failed!"
, "NS_SUCCEEDED(mResultCode)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17436); } } while (false)
;
17437
17438 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
17439 AssertForeignKeyConsistency(connection);
17440
17441 mResultCode = connection->CommitWriteTransaction();
17442 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)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17442); } } while (false)
;
17443
17444 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
&&
17445 mTransaction->GetMode() ==
17446 IDBTransaction::Mode::ReadWriteFlush) {
17447 mResultCode = connection->Checkpoint();
17448 }
17449
17450 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
&& fileRefcountFunction) {
17451 fileRefcountFunction->DidCommit();
17452 }
17453 }
17454 }
17455 }
17456
17457 if (NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0))
)
) {
17458 if (fileRefcountFunction) {
17459 fileRefcountFunction->DidAbort();
17460 }
17461
17462 connection->RollbackWriteTransaction();
17463 }
17464
17465 CommitOrRollbackAutoIncrementCounts();
17466
17467 connection->FinishWriteTransaction();
17468
17469 if (mTransaction->GetMode() == IDBTransaction::Mode::Cleanup) {
17470 connection->DoIdleProcessing(/* aNeedsCheckpoint */ true,
17471 /* aInterrupted */ Atomic<bool>(false));
17472
17473 connection->EnableQuotaChecks();
17474 }
17475 }
17476 }
17477
17478 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
)
17479 "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
)
17480 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
)
17481 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
)
;
17482
17483 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())
17484 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())
17485 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())
;
17486
17487 return NS_OK;
17488}
17489
17490void TransactionBase::CommitOp::TransactionFinishedBeforeUnblock() {
17491 AssertIsOnBackgroundThread();
17492 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17492); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { *((volatile int*)__null) = 17492; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17493
17494 AUTO_PROFILER_LABEL("CommitOp::TransactionFinishedBeforeUnblock", DOM)mozilla::AutoProfilerLabel raiiObject17494( "CommitOp::TransactionFinishedBeforeUnblock"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17495
17496 if (!IsActorDestroyed()) {
17497 mTransaction->UpdateMetadata(mResultCode);
17498 }
17499}
17500
17501void TransactionBase::CommitOp::TransactionFinishedAfterUnblock() {
17502 AssertIsOnBackgroundThread();
17503 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17503); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { *((volatile int*)__null) = 17503; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17504
17505 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
))
17506 "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
))
17507 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
))
17508 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
))
;
17509
17510 mTransaction->SendCompleteNotification(ClampResultCode(mResultCode));
17511
17512 mTransaction->GetMutableDatabase().UnregisterTransaction(*mTransaction);
17513
17514 mTransaction = nullptr;
17515
17516#ifdef DEBUG1
17517 // A bit hacky but the CommitOp is not really a normal database operation
17518 // that is tied to an actor. Do this to make our assertions happy.
17519 NoteActorDestroyed();
17520#endif
17521}
17522
17523nsresult VersionChangeTransactionOp::SendSuccessResult() {
17524 AssertIsOnOwningThread();
17525
17526 // Nothing to send here, the API assumes that this request always succeeds.
17527 return NS_OK;
17528}
17529
17530bool VersionChangeTransactionOp::SendFailureResult(nsresult aResultCode) {
17531 AssertIsOnOwningThread();
17532
17533 // The only option here is to cause the transaction to abort.
17534 return false;
17535}
17536
17537void VersionChangeTransactionOp::Cleanup() {
17538 AssertIsOnOwningThread();
17539
17540#ifdef DEBUG1
17541 // A bit hacky but the VersionChangeTransactionOp is not generated in response
17542 // to a child request like most other database operations. Do this to make our
17543 // assertions happy.
17544 NoteActorDestroyed();
17545#endif
17546
17547 TransactionDatabaseOperationBase::Cleanup();
17548}
17549
17550nsresult CreateObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) {
17551 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17551); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 17551; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17552 aConnection->AssertIsOnConnectionThread();
17553
17554 AUTO_PROFILER_LABEL("CreateObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17554( "CreateObjectStoreOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17555
17556#ifdef DEBUG1
17557 {
17558 // Make sure that we're not creating an object store with the same name as
17559 // another that already exists. This should be impossible because we should
17560 // have thrown an error long before now...
17561 // The parameter names are not used, parameters are bound by index only
17562 // locally in the same function.
17563 QM_TRY_INSPECT(const bool& hasResult,auto tryResult1319 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect
(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1318.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17571, mozilla::dom::quota::Severity::Error); return tryResult1318
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1319.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1319.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17575; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1319.inspect();
17564 aConnectionauto tryResult1319 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect
(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1318.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17571, mozilla::dom::quota::Severity::Error); return tryResult1318
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1319.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1319.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17575; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1319.inspect();
17565 ->BorrowAndExecuteSingleStepStatement(auto tryResult1319 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect
(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1318.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17571, mozilla::dom::quota::Severity::Error); return tryResult1318
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1319.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1319.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17575; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1319.inspect();
17566 "SELECT name "auto tryResult1319 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect
(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1318.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17571, mozilla::dom::quota::Severity::Error); return tryResult1318
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1319.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1319.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17575; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1319.inspect();
17567 "FROM object_store "auto tryResult1319 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect
(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1318.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17571, mozilla::dom::quota::Severity::Error); return tryResult1318
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1319.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1319.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17575; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1319.inspect();
17568 "WHERE name = :name;"_ns,auto tryResult1319 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect
(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1318.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17571, mozilla::dom::quota::Severity::Error); return tryResult1318
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1319.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1319.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17575; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1319.inspect();
17569 [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1319 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect
(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1318.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17571, mozilla::dom::quota::Severity::Error); return tryResult1318
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1319.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1319.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17575; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1319.inspect();
17570 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(auto tryResult1319 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect
(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1318.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17571, mozilla::dom::quota::Severity::Error); return tryResult1318
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1319.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1319.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17575; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1319.inspect();
17571 0, self.mMetadata.name())));auto tryResult1319 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect
(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1318.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17571, mozilla::dom::quota::Severity::Error); return tryResult1318
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1319.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1319.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17575; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1319.inspect();
17572 return Ok{};auto tryResult1319 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect
(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1318.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17571, mozilla::dom::quota::Severity::Error); return tryResult1318
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1319.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1319.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17575; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1319.inspect();
17573 })auto tryResult1319 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect
(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1318.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17571, mozilla::dom::quota::Severity::Error); return tryResult1318
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1319.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1319.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17575; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1319.inspect();
17574 .map(IsSome),auto tryResult1319 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect
(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1318.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17571, mozilla::dom::quota::Severity::Error); return tryResult1318
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1319.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1319.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17575; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1319.inspect();
17575 QM_ASSERT_UNREACHABLE)auto tryResult1319 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect
(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1318.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17571, mozilla::dom::quota::Severity::Error); return tryResult1318
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1319.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1319.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1318 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17571, mozilla::dom::quota::Severity::Error); return tryResult1318.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17575); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17575; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1319.inspect();
;
17576
17577 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult"
")"); do { *((volatile int*)__null) = 17577; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17578 }
17579#endif
17580
17581 DatabaseConnection::AutoSavepoint autoSave;
17582 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1320 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320
.isErr()), 0))) { auto tryTempError = tryResult1320.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17587, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17583#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1320 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320
.isErr()), 0))) { auto tryTempError = tryResult1320.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17587, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17584 ,{auto tryResult1320 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320
.isErr()), 0))) { auto tryTempError = tryResult1320.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17587, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17585 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1320 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320
.isErr()), 0))) { auto tryTempError = tryResult1320.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17587, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17586#endif{auto tryResult1320 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320
.isErr()), 0))) { auto tryTempError = tryResult1320.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17587, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17587 ){auto tryResult1320 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320
.isErr()), 0))) { auto tryTempError = tryResult1320.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17587, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
17588
17589 // The parameter names are not used, parameters are bound by index only
17590 // locally in the same function.
17591 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1326 = (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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1321)::ok_type>); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1321
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17596, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17599, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17605, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1325.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17607, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1326)::ok_type>);
if ((__builtin_expect(!!(tryResult1326.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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17596, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17599, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17601, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17605, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17607, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; } return Ok{}; }))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17611, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}
17592 "INSERT INTO object_store (id, auto_increment, name, key_path) "{auto tryResult1326 = (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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1321)::ok_type>); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1321
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17596, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17599, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17605, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1325.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17607, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1326)::ok_type>);
if ((__builtin_expect(!!(tryResult1326.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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17596, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17599, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17601, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17605, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17607, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; } return Ok{}; }))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17611, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}
17593 "VALUES (:id, :auto_increment, :name, :key_path);"_ns,{auto tryResult1326 = (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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1321)::ok_type>); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1321
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17596, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17599, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17605, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1325.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17607, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1326)::ok_type>);
if ((__builtin_expect(!!(tryResult1326.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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17596, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17599, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17601, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17605, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17607, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; } return Ok{}; }))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17611, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}
17594 [&metadata ={auto tryResult1326 = (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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1321)::ok_type>); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1321
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17596, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17599, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17605, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1325.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17607, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1326)::ok_type>);
if ((__builtin_expect(!!(tryResult1326.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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17596, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17599, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17601, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17605, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17607, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; } return Ok{}; }))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17611, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}
17595 mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1326 = (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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1321)::ok_type>); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1321
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17596, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17599, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17605, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1325.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17607, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1326)::ok_type>);
if ((__builtin_expect(!!(tryResult1326.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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17596, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17599, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17601, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17605, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17607, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; } return Ok{}; }))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17611, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}
17596 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, metadata.id())));{auto tryResult1326 = (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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1321)::ok_type>); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1321
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17596, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17599, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17605, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1325.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17607, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1326)::ok_type>);
if ((__builtin_expect(!!(tryResult1326.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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17596, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17599, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17601, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17605, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17607, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; } return Ok{}; }))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17611, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}
17597
17598 QM_TRY(MOZ_TO_RESULT({auto tryResult1326 = (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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1321)::ok_type>); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1321
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17596, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17599, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17605, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1325.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17607, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1326)::ok_type>);
if ((__builtin_expect(!!(tryResult1326.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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17596, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17599, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17601, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17605, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17607, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; } return Ok{}; }))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17611, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}
17599 stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0)));{auto tryResult1326 = (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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1321)::ok_type>); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1321
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17596, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17599, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17605, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1325.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17607, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1326)::ok_type>);
if ((__builtin_expect(!!(tryResult1326.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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17596, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17599, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17601, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17605, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17607, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; } return Ok{}; }))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17611, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}
17600
17601 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(2, metadata.name())));{auto tryResult1326 = (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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1321)::ok_type>); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1321
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17596, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17599, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17605, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1325.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17607, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1326)::ok_type>);
if ((__builtin_expect(!!(tryResult1326.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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17596, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17599, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17601, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17605, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17607, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; } return Ok{}; }))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17611, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}
17602
17603 if (metadata.keyPath().IsValid()) {{auto tryResult1326 = (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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1321)::ok_type>); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1321
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17596, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17599, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17605, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1325.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17607, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1326)::ok_type>);
if ((__builtin_expect(!!(tryResult1326.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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17596, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17599, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17601, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17605, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17607, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; } return Ok{}; }))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17611, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}
17604 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex({auto tryResult1326 = (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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1321)::ok_type>); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1321
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17596, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17599, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17605, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1325.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17607, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1326)::ok_type>);
if ((__builtin_expect(!!(tryResult1326.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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17596, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17599, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17601, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17605, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17607, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; } return Ok{}; }))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17611, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}
17605 3, metadata.keyPath().SerializeToString())));{auto tryResult1326 = (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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1321)::ok_type>); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1321
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17596, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17599, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17605, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1325.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17607, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1326)::ok_type>);
if ((__builtin_expect(!!(tryResult1326.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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17596, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17599, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17601, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17605, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17607, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; } return Ok{}; }))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17611, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}
17606 } else {{auto tryResult1326 = (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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1321)::ok_type>); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1321
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17596, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17599, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17605, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1325.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17607, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1326)::ok_type>);
if ((__builtin_expect(!!(tryResult1326.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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17596, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17599, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17601, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17605, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17607, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; } return Ok{}; }))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17611, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}
17607 QM_TRY(MOZ_TO_RESULT(stmt.BindNullByIndex(3)));{auto tryResult1326 = (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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1321)::ok_type>); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1321
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17596, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17599, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17605, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1325.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17607, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1326)::ok_type>);
if ((__builtin_expect(!!(tryResult1326.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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17596, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17599, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17601, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17605, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17607, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; } return Ok{}; }))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17611, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}
17608 }{auto tryResult1326 = (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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1321)::ok_type>); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1321
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17596, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17599, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17605, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1325.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17607, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1326)::ok_type>);
if ((__builtin_expect(!!(tryResult1326.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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17596, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17599, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17601, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17605, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17607, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; } return Ok{}; }))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17611, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}
17609
17610 return Ok{};{auto tryResult1326 = (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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1321)::ok_type>); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1321
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17596, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17599, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17605, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1325.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17607, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1326)::ok_type>);
if ((__builtin_expect(!!(tryResult1326.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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17596, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17599, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17601, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17605, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17607, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; } return Ok{}; }))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17611, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}
17611 }))){auto tryResult1326 = (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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1321)::ok_type>); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1321
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17596, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17599, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17605, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1325.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17607, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1326)::ok_type>);
if ((__builtin_expect(!!(tryResult1326.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 tryResult1321 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17596, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; {auto tryResult1322 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17599, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17601, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1324 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17605, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; } else { {auto tryResult1325 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17607, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; } return Ok{}; }))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17611, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}
;
17612
17613#ifdef DEBUG1
17614 {
17615 int64_t id;
17616 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17617); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")"); do { *((volatile int*)__null) = 17617; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
17617 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17617); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")"); do { *((volatile int*)__null) = 17617; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
17618 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17618); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata.id() == id"
")"); do { *((volatile int*)__null) = 17618; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17619 }
17620#endif
17621
17622 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1327 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1327.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17622, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}
;
17623
17624 return NS_OK;
17625}
17626
17627nsresult DeleteObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) {
17628 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 17628; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17629 aConnection->AssertIsOnConnectionThread();
17630
17631 AUTO_PROFILER_LABEL("DeleteObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17631( "DeleteObjectStoreOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17632
17633#ifdef DEBUG1
17634 {
17635 // Make sure |mIsLastObjectStore| is telling the truth.
17636 QM_TRY_INSPECT(auto tryResult1328 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns
)); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1328.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17639, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17639); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17639; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1328.inspect();
17637 const auto& stmt,auto tryResult1328 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns
)); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1328.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17639, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17639); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17639; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1328.inspect();
17638 aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns),auto tryResult1328 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns
)); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1328.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17639, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17639); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17639; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1328.inspect();
17639 QM_ASSERT_UNREACHABLE)auto tryResult1328 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns
)); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1328.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17639, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17639); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17639; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1328.inspect();
;
17640
17641 bool foundThisObjectStore = false;
17642 bool foundOtherObjectStore = false;
17643
17644 while (true) {
17645 bool hasResult;
17646 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17646); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))"
")"); do { *((volatile int*)__null) = 17646; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
17647
17648 if (!hasResult) {
17649 break;
17650 }
17651
17652 int64_t id;
17653 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17653); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->GetInt64(0, &id))"
")"); do { *((volatile int*)__null) = 17653; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
17654
17655 if (id == mMetadata->mCommonMetadata.id()) {
17656 foundThisObjectStore = true;
17657 } else {
17658 foundOtherObjectStore = true;
17659 }
17660 }
17661
17662 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17663); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && !foundOtherObjectStore"
")"); do { *((volatile int*)__null) = 17663; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
17663 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17663); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && !foundOtherObjectStore"
")"); do { *((volatile int*)__null) = 17663; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17664 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17665); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && foundOtherObjectStore"
")"); do { *((volatile int*)__null) = 17665; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
17665 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17665); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && foundOtherObjectStore"
")"); do { *((volatile int*)__null) = 17665; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17666 }
17667#endif
17668
17669 DatabaseConnection::AutoSavepoint autoSave;
17670 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1329 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329
.isErr()), 0))) { auto tryTempError = tryResult1329.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17675, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17671#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1329 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329
.isErr()), 0))) { auto tryTempError = tryResult1329.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17675, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17672 ,{auto tryResult1329 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329
.isErr()), 0))) { auto tryTempError = tryResult1329.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17675, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17673 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1329 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329
.isErr()), 0))) { auto tryTempError = tryResult1329.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17675, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17674#endif{auto tryResult1329 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329
.isErr()), 0))) { auto tryTempError = tryResult1329.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17675, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17675 ){auto tryResult1329 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329
.isErr()), 0))) { auto tryTempError = tryResult1329.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17675, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
17676
17677 if (mIsLastObjectStore) {
17678 // We can just delete everything if this is the last object store.
17679 QM_TRY(MOZ_TO_RESULT({auto tryResult1330 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM index_data;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1330)::ok_type>); if ((__builtin_expect
(!!(tryResult1330.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM index_data;\"_ns))"
, tryResult1330.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17680, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); }}
17680 aConnection->ExecuteCachedStatement("DELETE FROM index_data;"_ns))){auto tryResult1330 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM index_data;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1330)::ok_type>); if ((__builtin_expect
(!!(tryResult1330.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM index_data;\"_ns))"
, tryResult1330.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17680, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); }}
;
17681
17682 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1331 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM unique_index_data;"_ns))); static_assert(std::
is_empty_v<typename decltype(tryResult1331)::ok_type>);
if ((__builtin_expect(!!(tryResult1331.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM unique_index_data;\"_ns))"
, tryResult1331.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17683, mozilla::dom::quota::Severity::Error); return tryResult1331
.propagateErr(); }}
17683 "DELETE FROM unique_index_data;"_ns))){auto tryResult1331 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM unique_index_data;"_ns))); static_assert(std::
is_empty_v<typename decltype(tryResult1331)::ok_type>);
if ((__builtin_expect(!!(tryResult1331.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM unique_index_data;\"_ns))"
, tryResult1331.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17683, mozilla::dom::quota::Severity::Error); return tryResult1331
.propagateErr(); }}
;
17684
17685 QM_TRY(MOZ_TO_RESULT({auto tryResult1332 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM object_data;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1332)::ok_type>); if ((__builtin_expect
(!!(tryResult1332.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_data;\"_ns))"
, tryResult1332.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17686, mozilla::dom::quota::Severity::Error); return tryResult1332
.propagateErr(); }}
17686 aConnection->ExecuteCachedStatement("DELETE FROM object_data;"_ns))){auto tryResult1332 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM object_data;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1332)::ok_type>); if ((__builtin_expect
(!!(tryResult1332.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_data;\"_ns))"
, tryResult1332.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17686, mozilla::dom::quota::Severity::Error); return tryResult1332
.propagateErr(); }}
;
17687
17688 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1333 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index;"_ns))); static_assert(std::
is_empty_v<typename decltype(tryResult1333)::ok_type>);
if ((__builtin_expect(!!(tryResult1333.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index;\"_ns))"
, tryResult1333.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17689, mozilla::dom::quota::Severity::Error); return tryResult1333
.propagateErr(); }}
17689 "DELETE FROM object_store_index;"_ns))){auto tryResult1333 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index;"_ns))); static_assert(std::
is_empty_v<typename decltype(tryResult1333)::ok_type>);
if ((__builtin_expect(!!(tryResult1333.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index;\"_ns))"
, tryResult1333.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17689, mozilla::dom::quota::Severity::Error); return tryResult1333
.propagateErr(); }}
;
17690
17691 QM_TRY(MOZ_TO_RESULT({auto tryResult1334 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM object_store;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1334)::ok_type>); if ((__builtin_expect
(!!(tryResult1334.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_store;\"_ns))"
, tryResult1334.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17692, mozilla::dom::quota::Severity::Error); return tryResult1334
.propagateErr(); }}
17692 aConnection->ExecuteCachedStatement("DELETE FROM object_store;"_ns))){auto tryResult1334 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM object_store;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1334)::ok_type>); if ((__builtin_expect
(!!(tryResult1334.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_store;\"_ns))"
, tryResult1334.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17692, mozilla::dom::quota::Severity::Error); return tryResult1334
.propagateErr(); }}
;
17693 } else {
17694 QM_TRY_INSPECT(auto tryResult1335 = (ObjectStoreHasIndexes(*aConnection, mMetadata
->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult1335
.isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())"
, tryResult1335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17696, mozilla::dom::quota::Severity::Error); return tryResult1335
.propagateErr(); } const bool& hasIndexes = tryResult1335
.inspect();
17695 const bool& hasIndexes,auto tryResult1335 = (ObjectStoreHasIndexes(*aConnection, mMetadata
->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult1335
.isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())"
, tryResult1335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17696, mozilla::dom::quota::Severity::Error); return tryResult1335
.propagateErr(); } const bool& hasIndexes = tryResult1335
.inspect();
17696 ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id()))auto tryResult1335 = (ObjectStoreHasIndexes(*aConnection, mMetadata
->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult1335
.isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())"
, tryResult1335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17696, mozilla::dom::quota::Severity::Error); return tryResult1335
.propagateErr(); } const bool& hasIndexes = tryResult1335
.inspect();
;
17697
17698 const auto bindObjectStoreIdToFirstParameter =
17699 [this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {
17700 QM_TRY(MOZ_TO_RESULT({auto tryResult1336 = (ToResult(stmt.BindInt64ByIndex(0, mMetadata
->mCommonMetadata.id()))); static_assert(std::is_empty_v<
typename decltype(tryResult1336)::ok_type>); if ((__builtin_expect
(!!(tryResult1336.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, mMetadata->mCommonMetadata.id()))"
, tryResult1336.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17701, mozilla::dom::quota::Severity::Error); return tryResult1336
.propagateErr(); }}
17701 stmt.BindInt64ByIndex(0, mMetadata->mCommonMetadata.id()))){auto tryResult1336 = (ToResult(stmt.BindInt64ByIndex(0, mMetadata
->mCommonMetadata.id()))); static_assert(std::is_empty_v<
typename decltype(tryResult1336)::ok_type>); if ((__builtin_expect
(!!(tryResult1336.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, mMetadata->mCommonMetadata.id()))"
, tryResult1336.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17701, mozilla::dom::quota::Severity::Error); return tryResult1336
.propagateErr(); }}
;
17702
17703 return Ok{};
17704 };
17705
17706 // The parameter name :object_store_id in the SQL statements below is not
17707 // used for binding, parameters are bound by index only locally by
17708 // bindObjectStoreIdToFirstParameter.
17709 if (hasIndexes) {
17710 QM_TRY(MOZ_TO_RESULT(DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult1337 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mMetadata->mCommonMetadata.id(), Nothing())
)); static_assert(std::is_empty_v<typename decltype(tryResult1337
)::ok_type>); if ((__builtin_expect(!!(tryResult1337.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mMetadata->mCommonMetadata.id(), Nothing()))"
, tryResult1337.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17711, mozilla::dom::quota::Severity::Error); return tryResult1337
.propagateErr(); }}
17711 aConnection, mMetadata->mCommonMetadata.id(), Nothing()))){auto tryResult1337 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mMetadata->mCommonMetadata.id(), Nothing())
)); static_assert(std::is_empty_v<typename decltype(tryResult1337
)::ok_type>); if ((__builtin_expect(!!(tryResult1337.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mMetadata->mCommonMetadata.id(), Nothing()))"
, tryResult1337.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17711, mozilla::dom::quota::Severity::Error); return tryResult1337
.propagateErr(); }}
;
17712
17713 // Now clean up the object store index table.
17714 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1338 = (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(tryResult1338)::ok_type>); if ((__builtin_expect
(!!(tryResult1338.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1338.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17717, mozilla::dom::quota::Severity::Error); return tryResult1338
.propagateErr(); }}
17715 "DELETE FROM object_store_index "{auto tryResult1338 = (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(tryResult1338)::ok_type>); if ((__builtin_expect
(!!(tryResult1338.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1338.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17717, mozilla::dom::quota::Severity::Error); return tryResult1338
.propagateErr(); }}
17716 "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1338 = (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(tryResult1338)::ok_type>); if ((__builtin_expect
(!!(tryResult1338.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1338.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17717, mozilla::dom::quota::Severity::Error); return tryResult1338
.propagateErr(); }}
17717 bindObjectStoreIdToFirstParameter))){auto tryResult1338 = (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(tryResult1338)::ok_type>); if ((__builtin_expect
(!!(tryResult1338.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1338.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17717, mozilla::dom::quota::Severity::Error); return tryResult1338
.propagateErr(); }}
;
17718 } else {
17719 // We only have to worry about object data if this object store has no
17720 // indexes.
17721 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1339 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1339)::ok_type>); if ((__builtin_expect
(!!(tryResult1339.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1339.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17724, mozilla::dom::quota::Severity::Error); return tryResult1339
.propagateErr(); }}
17722 "DELETE FROM object_data "{auto tryResult1339 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1339)::ok_type>); if ((__builtin_expect
(!!(tryResult1339.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1339.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17724, mozilla::dom::quota::Severity::Error); return tryResult1339
.propagateErr(); }}
17723 "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1339 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1339)::ok_type>); if ((__builtin_expect
(!!(tryResult1339.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1339.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17724, mozilla::dom::quota::Severity::Error); return tryResult1339
.propagateErr(); }}
17724 bindObjectStoreIdToFirstParameter))){auto tryResult1339 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1339)::ok_type>); if ((__builtin_expect
(!!(tryResult1339.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1339.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17724, mozilla::dom::quota::Severity::Error); return tryResult1339
.propagateErr(); }}
;
17725 }
17726
17727 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1340 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1340)::ok_type>); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1340.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17730, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); }}
17728 "DELETE FROM object_store "{auto tryResult1340 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1340)::ok_type>); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1340.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17730, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); }}
17729 "WHERE id = :object_store_id;"_ns,{auto tryResult1340 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1340)::ok_type>); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1340.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17730, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); }}
17730 bindObjectStoreIdToFirstParameter))){auto tryResult1340 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1340)::ok_type>); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1340.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17730, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); }}
;
17731
17732#ifdef DEBUG1
17733 {
17734 int32_t deletedRowCount;
17735 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17737); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { *((volatile int*)__null) = 17737; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
17736 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17737); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { *((volatile int*)__null) = 17737; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
17737 &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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17737); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { *((volatile int*)__null) = 17737; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
17738 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17738); AnnotateMozCrashReason("MOZ_ASSERT" "(" "deletedRowCount == 1"
")"); do { *((volatile int*)__null) = 17738; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17739 }
17740#endif
17741 }
17742
17743 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1341 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1341)::ok_type
>); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1341.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17743, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); }}
;
17744
17745 if (mMetadata->mCommonMetadata.autoIncrement()) {
17746 Transaction().ForgetModifiedAutoIncrementObjectStore(*mMetadata);
17747 }
17748
17749 return NS_OK;
17750}
17751
17752nsresult RenameObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) {
17753 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17753); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 17753; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17754 aConnection->AssertIsOnConnectionThread();
17755
17756 AUTO_PROFILER_LABEL("RenameObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17756( "RenameObjectStoreOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17757
17758#ifdef DEBUG1
17759 {
17760 // Make sure that we're not renaming an object store with the same name as
17761 // another that already exists. This should be impossible because we should
17762 // have thrown an error long before now...
17763 // The parameter names are not used, parameters are bound by index only
17764 // locally in the same function.
17765 QM_TRY_INSPECT(auto tryResult1344 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1342 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1342
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1343.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17776, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1344.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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17780; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1344.inspect();
17766 const bool& hasResult,auto tryResult1344 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1342 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1342
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1343.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17776, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1344.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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17780; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1344.inspect();
17767 aConnectionauto tryResult1344 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1342 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1342
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1343.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17776, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1344.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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17780; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1344.inspect();
17768 ->BorrowAndExecuteSingleStepStatement(auto tryResult1344 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1342 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1342
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1343.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17776, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1344.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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17780; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1344.inspect();
17769 "SELECT name "auto tryResult1344 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1342 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1342
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1343.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17776, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1344.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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17780; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1344.inspect();
17770 "FROM object_store "auto tryResult1344 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1342 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1342
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1343.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17776, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1344.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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17780; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1344.inspect();
17771 "WHERE name = :name AND id != :id;"_ns,auto tryResult1344 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1342 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1342
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1343.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17776, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1344.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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17780; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1344.inspect();
17772 [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1344 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1342 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1342
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1343.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17776, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1344.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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17780; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1344.inspect();
17773 QM_TRY(auto tryResult1344 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1342 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1342
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1343.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17776, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1344.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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17780; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1344.inspect();
17774 MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));auto tryResult1344 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1342 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1342
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1343.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17776, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1344.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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17780; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1344.inspect();
17775
17776 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mId)));auto tryResult1344 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1342 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1342
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1343.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17776, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1344.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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17780; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1344.inspect();
17777 return Ok{};auto tryResult1344 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1342 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1342
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1343.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17776, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1344.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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17780; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1344.inspect();
17778 })auto tryResult1344 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1342 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1342
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1343.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17776, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1344.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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17780; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1344.inspect();
17779 .map(IsSome),auto tryResult1344 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1342 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1342
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1343.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17776, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1344.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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17780; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1344.inspect();
17780 QM_ASSERT_UNREACHABLE)auto tryResult1344 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1342 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1342
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1343.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17776, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1344.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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1342 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1342.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1342.propagateErr(); }}; {auto tryResult1343 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1343.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17780); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17780; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1344.inspect();
;
17781
17782 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17782); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult"
")"); do { *((volatile int*)__null) = 17782; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17783 }
17784#endif
17785
17786 DatabaseConnection::AutoSavepoint autoSave;
17787 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1345 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { auto tryTempError = tryResult1345.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17792, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17788#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1345 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { auto tryTempError = tryResult1345.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17792, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17789 ,{auto tryResult1345 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { auto tryTempError = tryResult1345.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17792, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17790 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1345 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { auto tryTempError = tryResult1345.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17792, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17791#endif{auto tryResult1345 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { auto tryTempError = tryResult1345.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17792, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17792 ){auto tryResult1345 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { auto tryTempError = tryResult1345.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17792, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
17793
17794 // The parameter names are not used, parameters are bound by index only
17795 // locally in the same function.
17796 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1348 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17801, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17803, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1348)::ok_type>); if ((__builtin_expect
(!!(tryResult1348.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 tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17801, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17803, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }))"
, tryResult1348.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17806, mozilla::dom::quota::Severity::Error); return tryResult1348
.propagateErr(); }}
17797 "UPDATE object_store "{auto tryResult1348 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17801, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17803, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1348)::ok_type>); if ((__builtin_expect
(!!(tryResult1348.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 tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17801, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17803, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }))"
, tryResult1348.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17806, mozilla::dom::quota::Severity::Error); return tryResult1348
.propagateErr(); }}
17798 "SET name = :name "{auto tryResult1348 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17801, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17803, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1348)::ok_type>); if ((__builtin_expect
(!!(tryResult1348.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 tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17801, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17803, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }))"
, tryResult1348.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17806, mozilla::dom::quota::Severity::Error); return tryResult1348
.propagateErr(); }}
17799 "WHERE id = :id;"_ns,{auto tryResult1348 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17801, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17803, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1348)::ok_type>); if ((__builtin_expect
(!!(tryResult1348.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 tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17801, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17803, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }))"
, tryResult1348.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17806, mozilla::dom::quota::Severity::Error); return tryResult1348
.propagateErr(); }}
17800 [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1348 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17801, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17803, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1348)::ok_type>); if ((__builtin_expect
(!!(tryResult1348.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 tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17801, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17803, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }))"
, tryResult1348.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17806, mozilla::dom::quota::Severity::Error); return tryResult1348
.propagateErr(); }}
17801 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));{auto tryResult1348 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17801, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17803, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1348)::ok_type>); if ((__builtin_expect
(!!(tryResult1348.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 tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17801, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17803, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }))"
, tryResult1348.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17806, mozilla::dom::quota::Severity::Error); return tryResult1348
.propagateErr(); }}
17802
17803 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mId)));{auto tryResult1348 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17801, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17803, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1348)::ok_type>); if ((__builtin_expect
(!!(tryResult1348.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 tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17801, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17803, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }))"
, tryResult1348.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17806, mozilla::dom::quota::Severity::Error); return tryResult1348
.propagateErr(); }}
17804
17805 return Ok{};{auto tryResult1348 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17801, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17803, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1348)::ok_type>); if ((__builtin_expect
(!!(tryResult1348.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 tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17801, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17803, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }))"
, tryResult1348.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17806, mozilla::dom::quota::Severity::Error); return tryResult1348
.propagateErr(); }}
17806 }))){auto tryResult1348 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17801, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17803, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1348)::ok_type>); if ((__builtin_expect
(!!(tryResult1348.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 tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17801, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17803, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }))"
, tryResult1348.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17806, mozilla::dom::quota::Severity::Error); return tryResult1348
.propagateErr(); }}
;
17807
17808 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1349 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1349)::ok_type
>); if ((__builtin_expect(!!(tryResult1349.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1349.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17808, mozilla::dom::quota::Severity::Error); return tryResult1349
.propagateErr(); }}
;
17809
17810 return NS_OK;
17811}
17812
17813CreateIndexOp::CreateIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
17814 const IndexOrObjectStoreId aObjectStoreId,
17815 const IndexMetadata& aMetadata)
17816 : VersionChangeTransactionOp(std::move(aTransaction)),
17817 mMetadata(aMetadata),
17818 mFileManager(Transaction().GetDatabase().GetFileManagerPtr()),
17819 mDatabaseId(Transaction().DatabaseId()),
17820 mObjectStoreId(aObjectStoreId) {
17821 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17821); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId"
")"); do { *((volatile int*)__null) = 17821; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17822 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17822); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMetadata.id()"
")"); do { *((volatile int*)__null) = 17822; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17823 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17823); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { *((volatile int*)__null) = 17823; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17824 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17824); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.IsEmpty()"
")"); do { *((volatile int*)__null) = 17824; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17825}
17826
17827nsresult CreateIndexOp::InsertDataFromObjectStore(
17828 DatabaseConnection* aConnection) {
17829 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 17829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17830 aConnection->AssertIsOnConnectionThread();
17831 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17831); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable"
")"); do { *((volatile int*)__null) = 17831; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17832
17833 AUTO_PROFILER_LABEL("CreateIndexOp::InsertDataFromObjectStore", DOM)mozilla::AutoProfilerLabel raiiObject17833( "CreateIndexOp::InsertDataFromObjectStore"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17834
17835 auto& storageConnection = aConnection->MutableStorageConnection();
17836
17837 RefPtr<UpdateIndexDataValuesFunction> updateFunction =
17838 new UpdateIndexDataValuesFunction(this, aConnection,
17839 Transaction().GetDatabasePtr());
17840
17841 constexpr auto updateFunctionName = "update_index_data_values"_ns;
17842
17843 nsresult rv =
17844 storageConnection.CreateFunction(updateFunctionName, 4, updateFunction);
17845 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17845)
) {
17846 return rv;
17847 }
17848
17849 rv = InsertDataFromObjectStoreInternal(aConnection);
17850
17851 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17851); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(storageConnection.RemoveFunction(updateFunctionName))"
")"); do { *((volatile int*)__null) = 17851; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
17852
17853 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17853)
) {
17854 return rv;
17855 }
17856
17857 return NS_OK;
17858}
17859
17860nsresult CreateIndexOp::InsertDataFromObjectStoreInternal(
17861 DatabaseConnection* aConnection) const {
17862 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17862); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 17862; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17863 aConnection->AssertIsOnConnectionThread();
17864 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable"
")"); do { *((volatile int*)__null) = 17864; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17865
17866 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17866); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection->HasStorageConnection()"
")"); do { *((volatile int*)__null) = 17866; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17867
17868 // The parameter names are not used, parameters are bound by index only
17869 // locally in the same function.
17870 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1351 = (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 tryResult1350
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1350)::ok_type
>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1350.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17877, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect
(!!(tryResult1351.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1350.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17877, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; return Ok{}; }))"
, tryResult1351.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17880, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}
17871 "UPDATE object_data "{auto tryResult1351 = (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 tryResult1350
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1350)::ok_type
>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1350.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17877, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect
(!!(tryResult1351.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1350.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17877, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; return Ok{}; }))"
, tryResult1351.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17880, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}
17872 "SET index_data_values = update_index_data_values "{auto tryResult1351 = (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 tryResult1350
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1350)::ok_type
>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1350.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17877, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect
(!!(tryResult1351.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1350.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17877, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; return Ok{}; }))"
, tryResult1351.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17880, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}
17873 "(key, index_data_values, file_ids, data) "{auto tryResult1351 = (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 tryResult1350
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1350)::ok_type
>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1350.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17877, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect
(!!(tryResult1351.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1350.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17877, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; return Ok{}; }))"
, tryResult1351.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17880, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}
17874 "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1351 = (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 tryResult1350
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1350)::ok_type
>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1350.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17877, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect
(!!(tryResult1351.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1350.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17877, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; return Ok{}; }))"
, tryResult1351.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17880, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}
17875 [objectStoredId ={auto tryResult1351 = (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 tryResult1350
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1350)::ok_type
>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1350.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17877, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect
(!!(tryResult1351.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1350.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17877, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; return Ok{}; }))"
, tryResult1351.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17880, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}
17876 mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1351 = (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 tryResult1350
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1350)::ok_type
>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1350.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17877, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect
(!!(tryResult1351.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1350.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17877, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; return Ok{}; }))"
, tryResult1351.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17880, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}
17877 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, objectStoredId)));{auto tryResult1351 = (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 tryResult1350
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1350)::ok_type
>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1350.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17877, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect
(!!(tryResult1351.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1350.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17877, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; return Ok{}; }))"
, tryResult1351.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17880, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}
17878
17879 return Ok{};{auto tryResult1351 = (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 tryResult1350
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1350)::ok_type
>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1350.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17877, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect
(!!(tryResult1351.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1350.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17877, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; return Ok{}; }))"
, tryResult1351.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17880, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}
17880 }))){auto tryResult1351 = (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 tryResult1350
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1350)::ok_type
>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1350.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17877, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect
(!!(tryResult1351.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1350.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17877, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; return Ok{}; }))"
, tryResult1351.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17880, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}
;
17881
17882 return NS_OK;
17883}
17884
17885bool CreateIndexOp::Init(TransactionBase& aTransaction) {
17886 AssertIsOnBackgroundThread();
17887 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId"
")"); do { *((volatile int*)__null) = 17887; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17888 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable.isNothing()"
")"); do { *((volatile int*)__null) = 17888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17889
17890 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
17891 aTransaction.GetMetadataForObjectStoreId(mObjectStoreId);
17892 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata"
")"); do { *((volatile int*)__null) = 17892; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17893
17894 const uint32_t indexCount = objectStoreMetadata->mIndexes.Count();
17895 if (!indexCount) {
17896 return true;
17897 }
17898
17899 auto uniqueIndexTable = UniqueIndexTable{indexCount};
17900
17901 for (const auto& value : objectStoreMetadata->mIndexes.Values()) {
17902 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())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17902); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!uniqueIndexTable.Contains(value->mCommonMetadata.id())"
")"); do { *((volatile int*)__null) = 17902; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17903
17904 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17906)
17905 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17906)
17906 fallible))NS_warn_if_impl(!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata
.id(), value->mCommonMetadata.unique(), fallible), "!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata.id(), value->mCommonMetadata.unique(), fallible)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17906)
) {
17907 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17907, "UnknownErr")
;
17908 NS_WARNING("out of memory")NS_DebugBreak(NS_DEBUG_WARNING, "out of memory", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17908)
;
17909 return false;
17910 }
17911 }
17912
17913 uniqueIndexTable.MarkImmutable();
17914
17915 mMaybeUniqueIndexTable.emplace(std::move(uniqueIndexTable));
17916
17917 return true;
17918}
17919
17920nsresult CreateIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) {
17921 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17921); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 17921; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17922 aConnection->AssertIsOnConnectionThread();
17923
17924 AUTO_PROFILER_LABEL("CreateIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17924( "CreateIndexOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17925
17926#ifdef DEBUG1
17927 {
17928 // Make sure that we're not creating an index with the same name and object
17929 // store as another that already exists. This should be impossible because
17930 // we should have thrown an error long before now...
17931 // The parameter names are not used, parameters are bound by index only
17932 // locally in the same function.
17933 QM_TRY_INSPECT(auto tryResult1354 = (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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1352
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17942, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17944, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1354.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17948; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1354.inspect();
17934 const bool& hasResult,auto tryResult1354 = (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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1352
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17942, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17944, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1354.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17948; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1354.inspect();
17935 aConnectionauto tryResult1354 = (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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1352
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17942, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17944, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1354.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17948; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1354.inspect();
17936 ->BorrowAndExecuteSingleStepStatement(auto tryResult1354 = (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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1352
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17942, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17944, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1354.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17948; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1354.inspect();
17937 "SELECT name "auto tryResult1354 = (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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1352
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17942, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17944, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1354.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17948; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1354.inspect();
17938 "FROM object_store_index "auto tryResult1354 = (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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1352
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17942, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17944, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1354.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17948; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1354.inspect();
17939 "WHERE object_store_id = :object_store_id AND name = :name;"_ns,auto tryResult1354 = (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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1352
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17942, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17944, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1354.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17948; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1354.inspect();
17940 [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1354 = (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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1352
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17942, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17944, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1354.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17948; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1354.inspect();
17941 QM_TRY(MOZ_TO_RESULT(auto tryResult1354 = (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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1352
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17942, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17944, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1354.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17948; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1354.inspect();
17942 stmt.BindInt64ByIndex(0, self.mObjectStoreId)));auto tryResult1354 = (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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1352
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17942, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17944, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1354.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17948; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1354.inspect();
17943 QM_TRY(MOZ_TO_RESULT(auto tryResult1354 = (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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1352
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17942, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17944, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1354.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17948; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1354.inspect();
17944 stmt.BindStringByIndex(1, self.mMetadata.name())));auto tryResult1354 = (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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1352
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17942, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17944, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1354.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17948; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1354.inspect();
17945 return Ok{};auto tryResult1354 = (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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1352
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17942, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17944, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1354.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17948; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1354.inspect();
17946 })auto tryResult1354 = (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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1352
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17942, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17944, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1354.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17948; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1354.inspect();
17947 .map(IsSome),auto tryResult1354 = (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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1352
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17942, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17944, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1354.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17948; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1354.inspect();
17948 QM_ASSERT_UNREACHABLE)auto tryResult1354 = (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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1352
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17942, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17944, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1354.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17942, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; {auto tryResult1353 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1353.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17944, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17948; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1354.inspect();
;
17949
17950 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17950); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult"
")"); do { *((volatile int*)__null) = 17950; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17951 }
17952#endif
17953
17954 DatabaseConnection::AutoSavepoint autoSave;
17955 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1355 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355
.isErr()), 0))) { auto tryTempError = tryResult1355.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17960, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17956#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1355 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355
.isErr()), 0))) { auto tryTempError = tryResult1355.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17960, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17957 ,{auto tryResult1355 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355
.isErr()), 0))) { auto tryTempError = tryResult1355.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17960, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17958 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1355 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355
.isErr()), 0))) { auto tryTempError = tryResult1355.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17960, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17959#endif{auto tryResult1355 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355
.isErr()), 0))) { auto tryTempError = tryResult1355.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17960, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17960 ){auto tryResult1355 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355
.isErr()), 0))) { auto tryTempError = tryResult1355.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17960, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
17961
17962 // The parameter names are not used, parameters are bound by index only
17963 // locally in the same function.
17964 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17965 "INSERT INTO object_store_index (id, name, key_path, unique_index, "{auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17966 "multientry, object_store_id, locale, "{auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17967 "is_auto_locale) "{auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17968 "VALUES (:id, :name, :key_path, :unique, :multientry, "{auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17969 ":object_store_id, :locale, :is_auto_locale)"_ns,{auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17970 [&metadata = mMetadata, objectStoreId = mObjectStoreId]({auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17971 mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17972 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, metadata.id())));{auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17973
17974 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(1, metadata.name())));{auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17975
17976 QM_TRY(MOZ_TO_RESULT({auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17977 stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString())));{auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17978
17979 QM_TRY({auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17980 MOZ_TO_RESULT(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0)));{auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17981
17982 QM_TRY(MOZ_TO_RESULT({auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17983 stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0)));{auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17984 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(5, objectStoreId)));{auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17985
17986 QM_TRY(MOZ_TO_RESULT({auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17987 metadata.locale().IsEmpty(){auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17988 ? stmt.BindNullByIndex(6){auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17989 : stmt.BindUTF8StringByIndex(6, metadata.locale())));{auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17990
17991 QM_TRY(MOZ_TO_RESULT(stmt.BindInt32ByIndex(7, metadata.autoLocale())));{auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17992
17993 return Ok{};{auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17994 }))){auto tryResult1364 = (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 tryResult1356
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1356)::ok_type
>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1357
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17974, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1358)::ok_type>
); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1359.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17980, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect
(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17983, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1361
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17984, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17989, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17991, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.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 tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1356.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1357.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; {auto tryResult1358 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17980, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17984, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17989, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17991, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
;
17995
17996#ifdef DEBUG1
17997 {
17998 int64_t id;
17999 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18000); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")"); do { *((volatile int*)__null) = 18000; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18000 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18000); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")"); do { *((volatile int*)__null) = 18000; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18001 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18001); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata.id() == id"
")"); do { *((volatile int*)__null) = 18001; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18002 }
18003#endif
18004
18005 QM_TRY(MOZ_TO_RESULT(InsertDataFromObjectStore(aConnection))){auto tryResult1365 = (ToResult(InsertDataFromObjectStore(aConnection
))); static_assert(std::is_empty_v<typename decltype(tryResult1365
)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(InsertDataFromObjectStore(aConnection))"
, tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18005, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}
;
18006
18007 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1366 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1366)::ok_type
>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18007, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
;
18008
18009 return NS_OK;
18010}
18011
18012NS_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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18013); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
18013; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18013); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 18013; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18013); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 18013
; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18013); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 18013; __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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18013); 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; }
18013 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18013); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
18013; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18013); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 18013; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18013); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 18013
; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18013); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 18013; __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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18013); 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; }
;
18014
18015NS_IMETHODIMPnsresult
18016CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall(
18017 mozIStorageValueArray* aValues, nsIVariant** _retval) {
18018 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18018); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")"
); do { *((volatile int*)__null) = 18018; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18019 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18019); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")"
); do { *((volatile int*)__null) = 18019; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18020 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18020); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 18020; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18021 mConnection->AssertIsOnConnectionThread();
18022 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18022); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp" ")");
do { *((volatile int*)__null) = 18022; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18023 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18023); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp->mFileManager"
")"); do { *((volatile int*)__null) = 18023; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18024
18025 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject18026( "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall"
, nullptr, JS::ProfilingCategoryPair::DOM)
18026 "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall", DOM)mozilla::AutoProfilerLabel raiiObject18026( "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18027
18028#ifdef DEBUG1
18029 {
18030 uint32_t argCount;
18031 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18031); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetNumEntries(&argCount))"
")"); do { *((volatile int*)__null) = 18031; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18032 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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18032); AnnotateMozCrashReason("MOZ_ASSERT" "(" "argCount == 4"
")"); do { *((volatile int*)__null) = 18032; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
; // key, index_data_values, file_ids, data
18033
18034 int32_t valueType;
18035 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18035); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(0, &valueType))"
")"); do { *((volatile int*)__null) = 18035; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18036 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { *((volatile int*)__null) = 18036; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18037
18038 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18038); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(1, &valueType))"
")"); do { *((volatile int*)__null) = 18038; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18039 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { *((volatile int*)__null) = 18040; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
18040 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { *((volatile int*)__null) = 18040; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18041
18042 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18042); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(2, &valueType))"
")"); do { *((volatile int*)__null) = 18042; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18043 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18044); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 18044; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
18044 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18044); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 18044; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18045
18046 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18046); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(3, &valueType))"
")"); do { *((volatile int*)__null) = 18046; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18047 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER"
")"); do { *((volatile int*)__null) = 18048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
18048 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER"
")"); do { *((volatile int*)__null) = 18048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18049 }
18050#endif
18051
18052 QM_TRY_UNWRAP(auto cloneInfo, GetStructuredCloneReadInfoFromValueArray(auto tryResult1367 = (GetStructuredCloneReadInfoFromValueArray
( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)"
, tryResult1367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18055, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); } auto cloneInfo = tryResult1367.unwrap();
18053 aValues,auto tryResult1367 = (GetStructuredCloneReadInfoFromValueArray
( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)"
, tryResult1367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18055, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); } auto cloneInfo = tryResult1367.unwrap();
18054 /* aDataIndex */ 3,auto tryResult1367 = (GetStructuredCloneReadInfoFromValueArray
( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)"
, tryResult1367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18055, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); } auto cloneInfo = tryResult1367.unwrap();
18055 /* aFileIdsIndex */ 2, *mOp->mFileManager))auto tryResult1367 = (GetStructuredCloneReadInfoFromValueArray
( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)"
, tryResult1367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18055, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); } auto cloneInfo = tryResult1367.unwrap();
;
18056
18057 const IndexMetadata& metadata = mOp->mMetadata;
18058 const IndexOrObjectStoreId& objectStoreId = mOp->mObjectStoreId;
18059
18060 // XXX does this really need a non-const cloneInfo?
18061 QM_TRY_INSPECT(const auto& updateInfos,auto tryResult1368 = (DeserializeIndexValueToUpdateInfos( metadata
.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale
(), cloneInfo)); if ((__builtin_expect(!!(tryResult1368.isErr
()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)"
, tryResult1368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18064, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); } const auto& updateInfos = tryResult1368
.inspect();
18062 DeserializeIndexValueToUpdateInfos(auto tryResult1368 = (DeserializeIndexValueToUpdateInfos( metadata
.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale
(), cloneInfo)); if ((__builtin_expect(!!(tryResult1368.isErr
()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)"
, tryResult1368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18064, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); } const auto& updateInfos = tryResult1368
.inspect();
18063 metadata.id(), metadata.keyPath(), metadata.multiEntry(),auto tryResult1368 = (DeserializeIndexValueToUpdateInfos( metadata
.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale
(), cloneInfo)); if ((__builtin_expect(!!(tryResult1368.isErr
()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)"
, tryResult1368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18064, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); } const auto& updateInfos = tryResult1368
.inspect();
18064 metadata.locale(), cloneInfo))auto tryResult1368 = (DeserializeIndexValueToUpdateInfos( metadata
.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale
(), cloneInfo)); if ((__builtin_expect(!!(tryResult1368.isErr
()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)"
, tryResult1368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18064, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); } const auto& updateInfos = tryResult1368
.inspect();
;
18065
18066 if (updateInfos.IsEmpty()) {
18067 // XXX See if we can do this without copying...
18068
18069 nsCOMPtr<nsIVariant> unmodifiedValue;
18070
18071 // No changes needed, just return the original value.
18072 QM_TRY_INSPECT(const int32_t& valueType,auto tryResult1369 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult1369
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)"
, tryResult1369.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18073, mozilla::dom::quota::Severity::Error); return tryResult1369
.propagateErr(); } const int32_t& valueType = tryResult1369
.inspect();
18073 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 1))auto tryResult1369 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult1369
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)"
, tryResult1369.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18073, mozilla::dom::quota::Severity::Error); return tryResult1369
.propagateErr(); } const int32_t& valueType = tryResult1369
.inspect();
;
18074
18075 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18076); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { *((volatile int*)__null) = 18076; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
18076 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18076); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { *((volatile int*)__null) = 18076; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18077
18078 if (valueType == mozIStorageValueArray::VALUE_TYPE_NULL) {
18079 unmodifiedValue = new storage::NullVariant();
18080 unmodifiedValue.forget(_retval);
18081 return NS_OK;
18082 }
18083
18084 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18084); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { *((volatile int*)__null) = 18084; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18085
18086 const uint8_t* blobData;
18087 uint32_t blobDataLength;
18088 QM_TRY({auto tryResult1370 = (ToResult(aValues->GetSharedBlob(1, &
blobDataLength, &blobData))); static_assert(std::is_empty_v
<typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect
(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aValues->GetSharedBlob(1, &blobDataLength, &blobData))"
, tryResult1370.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18089, mozilla::dom::quota::Severity::Error); return tryResult1370
.propagateErr(); }}
18089 MOZ_TO_RESULT(aValues->GetSharedBlob(1, &blobDataLength, &blobData))){auto tryResult1370 = (ToResult(aValues->GetSharedBlob(1, &
blobDataLength, &blobData))); static_assert(std::is_empty_v
<typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect
(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aValues->GetSharedBlob(1, &blobDataLength, &blobData))"
, tryResult1370.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18089, mozilla::dom::quota::Severity::Error); return tryResult1370
.propagateErr(); }}
;
18090
18091 const std::pair<uint8_t*, int> copiedBlobDataPair(
18092 static_cast<uint8_t*>(malloc(blobDataLength)), blobDataLength);
18093
18094 if (!copiedBlobDataPair.first) {
18095 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18095, "UnknownErr")
;
18096 return NS_ERROR_OUT_OF_MEMORY;
18097 }
18098
18099 memcpy(copiedBlobDataPair.first, blobData, blobDataLength);
18100
18101 unmodifiedValue = new storage::AdoptedBlobVariant(copiedBlobDataPair);
18102 unmodifiedValue.forget(_retval);
18103
18104 return NS_OK;
18105 }
18106
18107 Key key;
18108 QM_TRY(MOZ_TO_RESULT(key.SetFromValueArray(aValues, 0))){auto tryResult1371 = (ToResult(key.SetFromValueArray(aValues
, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1371
)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(key.SetFromValueArray(aValues, 0))"
, tryResult1371.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18108, mozilla::dom::quota::Severity::Error); return tryResult1371
.propagateErr(); }}
;
18109
18110 QM_TRY_UNWRAP(auto indexValues, ReadCompressedIndexDataValues(*aValues, 1))auto tryResult1372 = (ReadCompressedIndexDataValues(*aValues,
1)); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) {
mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(*aValues, 1)"
, tryResult1372.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18110, mozilla::dom::quota::Severity::Error); return tryResult1372
.propagateErr(); } auto indexValues = tryResult1372.unwrap();
;
18111
18112 const bool hadPreviousIndexValues = !indexValues.IsEmpty();
18113
18114 const uint32_t updateInfoCount = updateInfos.Length();
18115
18116 QM_TRY(OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount,{auto tryResult1373 = (OkIf(indexValues.SetCapacity(indexValues
.Length() + updateInfoCount, fallible))); static_assert(std::
is_empty_v<typename decltype(tryResult1373)::ok_type>);
if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { auto
tryTempError = tryResult1373.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18118, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18118, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, NS_ERROR_OUT_OF_MEMORY); }}
18117 fallible)),{auto tryResult1373 = (OkIf(indexValues.SetCapacity(indexValues
.Length() + updateInfoCount, fallible))); static_assert(std::
is_empty_v<typename decltype(tryResult1373)::ok_type>);
if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { auto
tryTempError = tryResult1373.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18118, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18118, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, NS_ERROR_OUT_OF_MEMORY); }}
18118 NS_ERROR_OUT_OF_MEMORY, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1373 = (OkIf(indexValues.SetCapacity(indexValues
.Length() + updateInfoCount, fallible))); static_assert(std::
is_empty_v<typename decltype(tryResult1373)::ok_type>);
if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { auto
tryTempError = tryResult1373.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18118, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18118, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, NS_ERROR_OUT_OF_MEMORY); }}
;
18119
18120 // First construct the full list to update the index_data_values row.
18121 for (const IndexUpdateInfo& info : updateInfos) {
18122 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18125); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { *((volatile int*)__null) = 18125; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18123 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18125); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { *((volatile int*)__null) = 18125; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18124 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18125); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { *((volatile int*)__null) = 18125; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18125 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18125); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { *((volatile int*)__null) = 18125; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18126 }
18127
18128 QM_TRY_UNWRAP((auto [indexValuesBlob, indexValuesBlobLength]),auto tryResult1374 = (MakeCompressedIndexDataValues(indexValues
)); if ((__builtin_expect(!!(tryResult1374.isErr()), 0))) { mozilla
::dom::quota::HandleError("MakeCompressedIndexDataValues(indexValues)"
, tryResult1374.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18129, mozilla::dom::quota::Severity::Error); return tryResult1374
.propagateErr(); } auto [indexValuesBlob, indexValuesBlobLength
] = tryResult1374.unwrap();
18129 MakeCompressedIndexDataValues(indexValues))auto tryResult1374 = (MakeCompressedIndexDataValues(indexValues
)); if ((__builtin_expect(!!(tryResult1374.isErr()), 0))) { mozilla
::dom::quota::HandleError("MakeCompressedIndexDataValues(indexValues)"
, tryResult1374.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18129, mozilla::dom::quota::Severity::Error); return tryResult1374
.propagateErr(); } auto [indexValuesBlob, indexValuesBlobLength
] = tryResult1374.unwrap();
;
18130
18131 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())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18131); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexValuesBlobLength == !(indexValuesBlob.get())"
")"); do { *((volatile int*)__null) = 18131; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18132
18133 nsCOMPtr<nsIVariant> value;
18134
18135 if (!indexValuesBlob) {
18136 value = new storage::NullVariant();
18137
18138 value.forget(_retval);
18139 return NS_OK;
18140 }
18141
18142 // Now insert the new table rows. We only need to construct a new list if
18143 // the full list is different.
18144 if (hadPreviousIndexValues) {
18145 indexValues.ClearAndRetainStorage();
18146
18147 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18147); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexValues.Capacity() >= updateInfoCount"
")"); do { *((volatile int*)__null) = 18147; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18148
18149 for (const IndexUpdateInfo& info : updateInfos) {
18150 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18153); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { *((volatile int*)__null) = 18153; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18151 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18153); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { *((volatile int*)__null) = 18153; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18152 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18153); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { *((volatile int*)__null) = 18153; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18153 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18153); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { *((volatile int*)__null) = 18153; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18154 }
18155 }
18156
18157 QM_TRY(MOZ_TO_RESULT({auto tryResult1375 = (ToResult(InsertIndexTableRows(mConnection
, objectStoreId, key, indexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect
(!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))"
, tryResult1375.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1375
.propagateErr(); }}
18158 InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))){auto tryResult1375 = (ToResult(InsertIndexTableRows(mConnection
, objectStoreId, key, indexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect
(!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))"
, tryResult1375.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1375
.propagateErr(); }}
;
18159
18160 value = new storage::AdoptedBlobVariant(
18161 std::pair(indexValuesBlob.release(), indexValuesBlobLength));
18162
18163 value.forget(_retval);
18164 return NS_OK;
18165}
18166
18167DeleteIndexOp::DeleteIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
18168 const IndexOrObjectStoreId aObjectStoreId,
18169 const IndexOrObjectStoreId aIndexId,
18170 const bool aUnique, const bool aIsLastIndex)
18171 : VersionChangeTransactionOp(std::move(aTransaction)),
18172 mObjectStoreId(aObjectStoreId),
18173 mIndexId(aIndexId),
18174 mUnique(aUnique),
18175 mIsLastIndex(aIsLastIndex) {
18176 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18176); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId"
")"); do { *((volatile int*)__null) = 18176; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18177 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18177); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aIndexId" ")"
); do { *((volatile int*)__null) = 18177; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18178}
18179
18180nsresult DeleteIndexOp::RemoveReferencesToIndex(
18181 DatabaseConnection* aConnection, const Key& aObjectStoreKey,
18182 nsTArray<IndexDataValue>& aIndexValues) const {
18183 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18183); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 18183; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18184 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18184); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 18184; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18185 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18185); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 18185; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18186 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18186); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()"
")"); do { *((volatile int*)__null) = 18186; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18187 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18187); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIndexValues.IsEmpty()"
")"); do { *((volatile int*)__null) = 18187; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18188
18189 AUTO_PROFILER_LABEL("DeleteIndexOp::RemoveReferencesToIndex", DOM)mozilla::AutoProfilerLabel raiiObject18189( "DeleteIndexOp::RemoveReferencesToIndex"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18190
18191 if (mIsLastIndex) {
18192 // There is no need to parse the previous entry in the index_data_values
18193 // column if this is the last index. Simply set it to NULL.
18194 QM_TRY_INSPECT(const auto& stmt,auto tryResult1376 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1376.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)"
, tryResult1376.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18200, mozilla::dom::quota::Severity::Error); return tryResult1376
.propagateErr(); } const auto& stmt = tryResult1376.inspect
();
18195 aConnection->BorrowCachedStatement(auto tryResult1376 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1376.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)"
, tryResult1376.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18200, mozilla::dom::quota::Severity::Error); return tryResult1376
.propagateErr(); } const auto& stmt = tryResult1376.inspect
();
18196 "UPDATE object_data "auto tryResult1376 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1376.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)"
, tryResult1376.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18200, mozilla::dom::quota::Severity::Error); return tryResult1376
.propagateErr(); } const auto& stmt = tryResult1376.inspect
();
18197 "SET index_data_values = NULL "auto tryResult1376 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1376.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)"
, tryResult1376.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18200, mozilla::dom::quota::Severity::Error); return tryResult1376
.propagateErr(); } const auto& stmt = tryResult1376.inspect
();
18198 "WHERE object_store_id = :"_ns +auto tryResult1376 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1376.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)"
, tryResult1376.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18200, mozilla::dom::quota::Severity::Error); return tryResult1376
.propagateErr(); } const auto& stmt = tryResult1376.inspect
();
18199 kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult1376 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1376.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)"
, tryResult1376.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18200, mozilla::dom::quota::Severity::Error); return tryResult1376
.propagateErr(); } const auto& stmt = tryResult1376.inspect
();
18200 kStmtParamNameKey + ";"_ns))auto tryResult1376 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1376.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)"
, tryResult1376.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18200, mozilla::dom::quota::Severity::Error); return tryResult1376
.propagateErr(); } const auto& stmt = tryResult1376.inspect
();
;
18201
18202 QM_TRY(MOZ_TO_RESULT({auto tryResult1377 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1377)::ok_type>); if ((__builtin_expect
(!!(tryResult1377.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1377.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18203, mozilla::dom::quota::Severity::Error); return tryResult1377
.propagateErr(); }}
18203 stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1377 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1377)::ok_type>); if ((__builtin_expect
(!!(tryResult1377.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1377.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18203, mozilla::dom::quota::Severity::Error); return tryResult1377
.propagateErr(); }}
;
18204
18205 QM_TRY(MOZ_TO_RESULT({auto tryResult1378 = (ToResult(aObjectStoreKey.BindToStatement
(&*stmt, kStmtParamNameKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1378)::ok_type>); if ((__builtin_expect
(!!(tryResult1378.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))"
, tryResult1378.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18206, mozilla::dom::quota::Severity::Error); return tryResult1378
.propagateErr(); }}
18206 aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))){auto tryResult1378 = (ToResult(aObjectStoreKey.BindToStatement
(&*stmt, kStmtParamNameKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1378)::ok_type>); if ((__builtin_expect
(!!(tryResult1378.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))"
, tryResult1378.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18206, mozilla::dom::quota::Severity::Error); return tryResult1378
.propagateErr(); }}
;
18207
18208 QM_TRY(MOZ_TO_RESULT(stmt->Execute())){auto tryResult1379 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1379)::ok_type
>); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1379.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18208, mozilla::dom::quota::Severity::Error); return tryResult1379
.propagateErr(); }}
;
18209
18210 return NS_OK;
18211 }
18212
18213 {
18214 IndexDataValue search;
18215 search.mIndexId = mIndexId;
18216
18217 // Use raw pointers for search to avoid redundant index validity checks.
18218 // Maybe this should better be encapsulated in nsTArray.
18219 const auto* const begin = aIndexValues.Elements();
18220 const auto* const end = aIndexValues.Elements() + aIndexValues.Length();
18221
18222 const auto indexIdComparator = [](const IndexDataValue& aA,
18223 const IndexDataValue& aB) {
18224 return aA.mIndexId < aB.mIndexId;
18225 };
18226
18227 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "std::is_sorted(begin, end, indexIdComparator)"
")"); do { *((volatile int*)__null) = 18227; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18228
18229 const auto [beginRange, endRange] =
18230 std::equal_range(begin, end, search, indexIdComparator);
18231 if (beginRange == end) {
18232 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18232, "UnknownErr")
;
18233 return NS_ERROR_FILE_CORRUPTED;
18234 }
18235
18236 aIndexValues.RemoveElementsAt(beginRange - begin, endRange - beginRange);
18237 }
18238
18239 QM_TRY(MOZ_TO_RESULT(UpdateIndexValues(aConnection, mObjectStoreId,{auto tryResult1380 = (ToResult(UpdateIndexValues(aConnection
, mObjectStoreId, aObjectStoreKey, aIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1380)::ok_type
>); if ((__builtin_expect(!!(tryResult1380.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(UpdateIndexValues(aConnection, mObjectStoreId, aObjectStoreKey, aIndexValues))"
, tryResult1380.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18240, mozilla::dom::quota::Severity::Error); return tryResult1380
.propagateErr(); }}
18240 aObjectStoreKey, aIndexValues))){auto tryResult1380 = (ToResult(UpdateIndexValues(aConnection
, mObjectStoreId, aObjectStoreKey, aIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1380)::ok_type
>); if ((__builtin_expect(!!(tryResult1380.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(UpdateIndexValues(aConnection, mObjectStoreId, aObjectStoreKey, aIndexValues))"
, tryResult1380.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18240, mozilla::dom::quota::Severity::Error); return tryResult1380
.propagateErr(); }}
;
18241
18242 return NS_OK;
18243}
18244
18245nsresult DeleteIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) {
18246 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18246); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 18246; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18247 aConnection->AssertIsOnConnectionThread();
18248
18249#ifdef DEBUG1
18250 {
18251 // Make sure |mIsLastIndex| is telling the truth.
18252 // The parameter names are not used, parameters are bound by index only
18253 // locally in the same function.
18254 QM_TRY_INSPECT(const auto& stmt,auto tryResult1381 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1381.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18259, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18259); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18259; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1381.inspect();
18255 aConnection->BorrowCachedStatement(auto tryResult1381 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1381.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18259, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18259); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18259; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1381.inspect();
18256 "SELECT id "auto tryResult1381 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1381.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18259, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18259); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18259; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1381.inspect();
18257 "FROM object_store_index "auto tryResult1381 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1381.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18259, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18259); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18259; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1381.inspect();
18258 "WHERE object_store_id = :object_store_id;"_ns),auto tryResult1381 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1381.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18259, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18259); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18259; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1381.inspect();
18259 QM_ASSERT_UNREACHABLE)auto tryResult1381 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1381.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18259, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18259); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18259; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1381.inspect();
;
18260
18261 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->BindInt64ByIndex(0, mObjectStoreId))"
")"); do { *((volatile int*)__null) = 18261; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18262
18263 bool foundThisIndex = false;
18264 bool foundOtherIndex = false;
18265
18266 while (true) {
18267 bool hasResult;
18268 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18268); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))"
")"); do { *((volatile int*)__null) = 18268; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18269
18270 if (!hasResult) {
18271 break;
18272 }
18273
18274 int64_t id;
18275 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18275); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->GetInt64(0, &id))"
")"); do { *((volatile int*)__null) = 18275; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18276
18277 if (id == mIndexId) {
18278 foundThisIndex = true;
18279 } else {
18280 foundOtherIndex = true;
18281 }
18282 }
18283
18284 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18284); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisIndex && !foundOtherIndex"
")"); do { *((volatile int*)__null) = 18284; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18285 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisIndex && foundOtherIndex"
")"); do { *((volatile int*)__null) = 18285; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18286 }
18287#endif
18288
18289 AUTO_PROFILER_LABEL("DeleteIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18289( "DeleteIndexOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18290
18291 DatabaseConnection::AutoSavepoint autoSave;
18292 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1382 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382
.isErr()), 0))) { auto tryTempError = tryResult1382.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18297, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18293#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1382 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382
.isErr()), 0))) { auto tryTempError = tryResult1382.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18297, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18294 ,{auto tryResult1382 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382
.isErr()), 0))) { auto tryTempError = tryResult1382.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18297, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18295 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1382 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382
.isErr()), 0))) { auto tryTempError = tryResult1382.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18297, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18296#endif{auto tryResult1382 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382
.isErr()), 0))) { auto tryTempError = tryResult1382.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18297, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18297 ){auto tryResult1382 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382
.isErr()), 0))) { auto tryTempError = tryResult1382.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18297, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
18298
18299 // mozStorage warns that these statements trigger a sort operation but we
18300 // don't care because this is a very rare call and we expect it to be slow.
18301 // The cost of having an index on this field is too high.
18302 QM_TRY_INSPECT(auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18303 const auto& selectStmt,auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18304 aConnection->BorrowCachedStatement(auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18305 mUniqueauto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18306 ? (mIsLastIndexauto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18307 ? "/* do not warn (bug someone else) */ "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18308 "SELECT value, object_data_key "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18309 "FROM unique_index_data "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18310 "WHERE index_id = :"_ns +auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18311 kStmtParamNameIndexId +auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18312 " ORDER BY object_data_key ASC;"_nsauto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18313 : "/* do not warn (bug out) */ "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18314 "SELECT unique_index_data.value, "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18315 "unique_index_data.object_data_key, "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18316 "object_data.index_data_values "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18317 "FROM unique_index_data "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18318 "JOIN object_data "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18319 "ON unique_index_data.object_data_key = object_data.key "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18320 "WHERE unique_index_data.index_id = :"_ns +auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18321 kStmtParamNameIndexId +auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18322 " AND object_data.object_store_id = :"_ns +auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18323 kStmtParamNameObjectStoreId +auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18324 " ORDER BY unique_index_data.object_data_key ASC;"_ns)auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18325 : (mIsLastIndexauto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18326 ? "/* do not warn (bug me not) */ "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18327 "SELECT value, object_data_key "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18328 "FROM index_data "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18329 "WHERE index_id = :"_ns +auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18330 kStmtParamNameIndexId +auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18331 " AND object_store_id = :"_ns +auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18332 kStmtParamNameObjectStoreId +auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18333 " ORDER BY object_data_key ASC;"_nsauto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18334 : "/* do not warn (bug off) */ "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18335 "SELECT index_data.value, "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18336 "index_data.object_data_key, "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18337 "object_data.index_data_values "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18338 "FROM index_data "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18339 "JOIN object_data "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18340 "ON index_data.object_data_key = object_data.key "auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18341 "WHERE index_data.index_id = :"_ns +auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18342 kStmtParamNameIndexId +auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18343 " AND object_data.object_store_id = :"_ns +auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18344 kStmtParamNameObjectStoreId +auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
18345 " ORDER BY index_data.object_data_key ASC;"_ns)))auto tryResult1383 = (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
(!!(tryResult1383.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))"
, tryResult1383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18345, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& selectStmt = tryResult1383
.inspect();
;
18346
18347 QM_TRY(MOZ_TO_RESULT({auto tryResult1384 = (ToResult(selectStmt->BindInt64ByName
(kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1384)::ok_type>); if ((__builtin_expect
(!!(tryResult1384.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))"
, tryResult1384.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18348, mozilla::dom::quota::Severity::Error); return tryResult1384
.propagateErr(); }}
18348 selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))){auto tryResult1384 = (ToResult(selectStmt->BindInt64ByName
(kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1384)::ok_type>); if ((__builtin_expect
(!!(tryResult1384.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))"
, tryResult1384.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18348, mozilla::dom::quota::Severity::Error); return tryResult1384
.propagateErr(); }}
;
18349
18350 if (!mUnique || !mIsLastIndex) {
18351 QM_TRY(MOZ_TO_RESULT(selectStmt->BindInt64ByName({auto tryResult1385 = (ToResult(selectStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, mObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1385)::ok_type
>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName( kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18352, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); }}
18352 kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1385 = (ToResult(selectStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, mObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1385)::ok_type
>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName( kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18352, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); }}
;
18353 }
18354
18355 Key lastObjectStoreKey;
18356 IndexDataValuesAutoArray lastIndexValues;
18357
18358 QM_TRY(CollectWhileHasResult({auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18359 *selectStmt,{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18360 [this, &aConnection, &lastObjectStoreKey, &lastIndexValues,{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18361 deleteIndexRowStmt ={auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18362 DatabaseConnection::LazyStatement{{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18363 *aConnection,{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18364 mUnique{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18365 ? "DELETE FROM unique_index_data "{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18366 "WHERE index_id = :"_ns +{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18367 kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18368 kStmtParamNameValue + ";"_ns{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18369 : "DELETE FROM index_data "{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18370 "WHERE index_id = :"_ns +{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18371 kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18372 kStmtParamNameValue + " AND object_data_key = :"_ns +{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18373 kStmtParamNameObjectDataKey + ";"_ns}]({auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18374 auto& selectStmt) mutable -> Result<Ok, nsresult> {{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18375 // We always need the index key to delete the index row.{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18376 Key indexKey;{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18377 QM_TRY(MOZ_TO_RESULT(indexKey.SetFromStatement(&selectStmt, 0)));{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18378
18379 QM_TRY(OkIf(!indexKey.IsUnset()), Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18380 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18381
18382 // Don't call |lastObjectStoreKey.BindToStatement()| directly because we{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18383 // don't want to copy the same key multiple times.{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18384 const uint8_t* objectStoreKeyData;{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18385 uint32_t objectStoreKeyDataLength;{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18386 QM_TRY(MOZ_TO_RESULT(selectStmt.GetSharedBlob({auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18387 1, &objectStoreKeyDataLength, &objectStoreKeyData)));{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18388
18389 QM_TRY(OkIf(objectStoreKeyDataLength), Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18390 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18391
18392 const nsDependentCString currentObjectStoreKeyBuffer({auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18393 reinterpret_cast<const char*>(objectStoreKeyData),{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18394 objectStoreKeyDataLength);{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18395 if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) {{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18396 // We just walked to the next object store key.{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18397 if (!lastObjectStoreKey.IsUnset()) {{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18398 // Before we move on to the next key we need to update the previous{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18399 // key's index_data_values column.{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18400 QM_TRY(MOZ_TO_RESULT(RemoveReferencesToIndex({auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18401 aConnection, lastObjectStoreKey, lastIndexValues)));{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18402 }{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18403
18404 // Save the object store key.{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18405 lastObjectStoreKey = Key(currentObjectStoreKeyBuffer);{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18406
18407 // And the |index_data_values| row if this isn't the only index.{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18408 if (!mIsLastIndex) {{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18409 lastIndexValues.ClearAndRetainStorage();{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18410 QM_TRY(MOZ_TO_RESULT({auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18411 ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues)));{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18412
18413 QM_TRY(OkIf(!lastIndexValues.IsEmpty()),{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18414 Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18415 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18416 }{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18417 }{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18418
18419 // Now delete the index row.{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18420 {{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18421 QM_TRY_INSPECT(const auto& borrowedDeleteIndexRowStmt,{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18422 deleteIndexRowStmt.Borrow());{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18423
18424 QM_TRY(MOZ_TO_RESULT(borrowedDeleteIndexRowStmt->BindInt64ByName({auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18425 kStmtParamNameIndexId, mIndexId)));{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18426
18427 QM_TRY(MOZ_TO_RESULT(indexKey.BindToStatement({auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18428 &*borrowedDeleteIndexRowStmt, kStmtParamNameValue)));{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18429
18430 if (!mUnique) {{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18431 QM_TRY(MOZ_TO_RESULT(lastObjectStoreKey.BindToStatement({auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18432 &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey)));{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18433 }{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18434
18435 QM_TRY(MOZ_TO_RESULT(borrowedDeleteIndexRowStmt->Execute()));{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18436 }{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18437
18438 return Ok{};{auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
18439 })){auto tryResult1398 = (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 tryResult1386 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1386)::ok_type
>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1387
)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr
()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1389
)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr
()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18390, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect
(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18411, mozilla::dom::quota::Severity::Error); return tryResult1391
.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392
.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18415, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18422, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1393.inspect();; {auto tryResult1394 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18425, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1395
)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18432, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18435, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.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 tryResult1386 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1386.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1388 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { auto tryTempError = tryResult1389.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18390, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __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 tryResult1390 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1391 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1391.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18411, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { auto tryTempError = tryResult1392.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18415, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1393 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18422, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1393.inspect();; {auto tryResult1394 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1394.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18425, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; {auto tryResult1395 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18428, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; if (!mUnique) { {auto tryResult1396 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18432, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } {auto tryResult1397 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18435, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; } return Ok{}; })"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18439, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
;
18440
18441 // Take care of the last key.
18442 if (!lastObjectStoreKey.IsUnset()) {
18443 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18443); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!lastIndexValues.IsEmpty()"
")"); do { *((volatile int*)__null) = 18443; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18444
18445 QM_TRY(MOZ_TO_RESULT(RemoveReferencesToIndex({auto tryResult1399 = (ToResult(RemoveReferencesToIndex( aConnection
, lastObjectStoreKey, lastIndexValues))); static_assert(std::
is_empty_v<typename decltype(tryResult1399)::ok_type>);
if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18446, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}
18446 aConnection, lastObjectStoreKey, lastIndexValues))){auto tryResult1399 = (ToResult(RemoveReferencesToIndex( aConnection
, lastObjectStoreKey, lastIndexValues))); static_assert(std::
is_empty_v<typename decltype(tryResult1399)::ok_type>);
if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18446, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}
;
18447 }
18448
18449 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1401 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1400 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1400)::ok_type>
); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18454, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; return Ok{}; }))); 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 object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1400 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1400.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18454, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; return Ok{}; }))"
, tryResult1401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18457, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}
18450 "DELETE FROM object_store_index "{auto tryResult1401 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1400 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1400)::ok_type>
); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18454, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; return Ok{}; }))); 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 object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1400 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1400.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18454, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; return Ok{}; }))"
, tryResult1401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18457, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}
18451 "WHERE id = :index_id;"_ns,{auto tryResult1401 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1400 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1400)::ok_type>
); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18454, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; return Ok{}; }))); 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 object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1400 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1400.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18454, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; return Ok{}; }))"
, tryResult1401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18457, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}
18452 [indexId ={auto tryResult1401 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1400 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1400)::ok_type>
); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18454, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; return Ok{}; }))); 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 object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1400 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1400.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18454, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; return Ok{}; }))"
, tryResult1401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18457, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}
18453 mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> {{auto tryResult1401 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1400 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1400)::ok_type>
); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18454, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; return Ok{}; }))); 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 object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1400 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1400.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18454, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; return Ok{}; }))"
, tryResult1401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18457, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}
18454 QM_TRY(MOZ_TO_RESULT(deleteStmt.BindInt64ByIndex(0, indexId)));{auto tryResult1401 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1400 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1400)::ok_type>
); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18454, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; return Ok{}; }))); 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 object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1400 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1400.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18454, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; return Ok{}; }))"
, tryResult1401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18457, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}
18455
18456 return Ok{};{auto tryResult1401 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1400 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1400)::ok_type>
); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18454, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; return Ok{}; }))); 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 object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1400 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1400.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18454, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; return Ok{}; }))"
, tryResult1401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18457, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}
18457 }))){auto tryResult1401 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1400 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1400)::ok_type>
); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18454, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; return Ok{}; }))); 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 object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1400 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1400.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18454, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; return Ok{}; }))"
, tryResult1401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18457, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}
;
18458
18459#ifdef DEBUG1
18460 {
18461 int32_t deletedRowCount;
18462 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18463); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { *((volatile int*)__null) = 18463; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18463 &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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18463); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { *((volatile int*)__null) = 18463; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18464 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18464); AnnotateMozCrashReason("MOZ_ASSERT" "(" "deletedRowCount == 1"
")"); do { *((volatile int*)__null) = 18464; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18465 }
18466#endif
18467
18468 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1402 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1402)::ok_type
>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18468, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
;
18469
18470 return NS_OK;
18471}
18472
18473nsresult RenameIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) {
18474 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18474); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 18474; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18475 aConnection->AssertIsOnConnectionThread();
18476
18477 AUTO_PROFILER_LABEL("RenameIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18477( "RenameIndexOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18478
18479#ifdef DEBUG1
18480 {
18481 // Make sure that we're not renaming an index with the same name as another
18482 // that already exists. This should be impossible because we should have
18483 // thrown an error long before now...
18484 // The parameter names are not used, parameters are bound by index only
18485 // locally in the same function.
18486 QM_TRY_INSPECT(const bool& hasResult,auto tryResult1406 = (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 tryResult1403
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1403
)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18496, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1404)::ok_type>); if ((__builtin_expect
(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1404
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18498, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1405
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18500, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1406.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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18505; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1406.inspect();
18487 aConnectionauto tryResult1406 = (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 tryResult1403
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1403
)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18496, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1404)::ok_type>); if ((__builtin_expect
(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1404
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18498, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1405
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18500, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1406.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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18505; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1406.inspect();
18488 ->BorrowAndExecuteSingleStepStatement(auto tryResult1406 = (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 tryResult1403
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1403
)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18496, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1404)::ok_type>); if ((__builtin_expect
(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1404
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18498, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1405
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18500, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1406.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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18505; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1406.inspect();
18489 "SELECT name "auto tryResult1406 = (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 tryResult1403
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1403
)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18496, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1404)::ok_type>); if ((__builtin_expect
(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1404
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18498, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1405
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18500, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1406.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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18505; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1406.inspect();
18490 "FROM object_store_index "auto tryResult1406 = (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 tryResult1403
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1403
)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18496, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1404)::ok_type>); if ((__builtin_expect
(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1404
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18498, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1405
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18500, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1406.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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18505; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1406.inspect();
18491 "WHERE object_store_id = :object_store_id "auto tryResult1406 = (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 tryResult1403
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1403
)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18496, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1404)::ok_type>); if ((__builtin_expect
(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1404
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18498, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1405
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18500, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1406.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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18505; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1406.inspect();
18492 "AND name = :name "auto tryResult1406 = (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 tryResult1403
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1403
)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18496, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1404)::ok_type>); if ((__builtin_expect
(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1404
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18498, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1405
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18500, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1406.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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18505; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1406.inspect();
18493 "AND id != :id;"_ns,auto tryResult1406 = (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 tryResult1403
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1403
)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18496, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1404)::ok_type>); if ((__builtin_expect
(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1404
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18498, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1405
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18500, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1406.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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18505; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1406.inspect();
18494 [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1406 = (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 tryResult1403
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1403
)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18496, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1404)::ok_type>); if ((__builtin_expect
(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1404
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18498, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1405
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18500, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1406.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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18505; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1406.inspect();
18495 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(auto tryResult1406 = (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 tryResult1403
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1403
)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18496, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1404)::ok_type>); if ((__builtin_expect
(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1404
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18498, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1405
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18500, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1406.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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18505; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1406.inspect();
18496 0, self.mObjectStoreId)));auto tryResult1406 = (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 tryResult1403
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1403
)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18496, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1404)::ok_type>); if ((__builtin_expect
(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1404
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18498, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1405
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18500, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1406.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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18505; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1406.inspect();
18497 QM_TRY(MOZ_TO_RESULT(auto tryResult1406 = (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 tryResult1403
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1403
)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18496, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1404)::ok_type>); if ((__builtin_expect
(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1404
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18498, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1405
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18500, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1406.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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18505; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1406.inspect();
18498 stmt.BindStringByIndex(1, self.mNewName)));auto tryResult1406 = (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 tryResult1403
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1403
)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18496, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1404)::ok_type>); if ((__builtin_expect
(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1404
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18498, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1405
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18500, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1406.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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18505; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1406.inspect();
18499 QM_TRY(MOZ_TO_RESULT(auto tryResult1406 = (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 tryResult1403
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1403
)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18496, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1404)::ok_type>); if ((__builtin_expect
(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1404
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18498, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1405
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18500, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1406.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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18505; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1406.inspect();
18500 stmt.BindInt64ByIndex(2, self.mIndexId)));auto tryResult1406 = (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 tryResult1403
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1403
)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18496, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1404)::ok_type>); if ((__builtin_expect
(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1404
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18498, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1405
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18500, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1406.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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18505; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1406.inspect();
18501
18502 return Ok{};auto tryResult1406 = (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 tryResult1403
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1403
)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18496, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1404)::ok_type>); if ((__builtin_expect
(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1404
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18498, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1405
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18500, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1406.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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18505; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1406.inspect();
18503 })auto tryResult1406 = (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 tryResult1403
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1403
)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18496, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1404)::ok_type>); if ((__builtin_expect
(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1404
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18498, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1405
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18500, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1406.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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18505; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1406.inspect();
18504 .map(IsSome),auto tryResult1406 = (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 tryResult1403
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1403
)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18496, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1404)::ok_type>); if ((__builtin_expect
(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1404
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18498, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1405
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18500, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1406.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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18505; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1406.inspect();
18505 QM_ASSERT_UNREACHABLE)auto tryResult1406 = (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 tryResult1403
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1403
)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18496, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1404)::ok_type>); if ((__builtin_expect
(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1404
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18498, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1405
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18500, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1406.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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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 tryResult1403 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18496, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18498, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18500, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18505); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18505; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1406.inspect();
;
18506
18507 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18507); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult"
")"); do { *((volatile int*)__null) = 18507; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18508 }
18509#else
18510 Unused << mObjectStoreId;
18511#endif
18512
18513 DatabaseConnection::AutoSavepoint autoSave;
18514 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1407 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407
.isErr()), 0))) { auto tryTempError = tryResult1407.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18519, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18515#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1407 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407
.isErr()), 0))) { auto tryTempError = tryResult1407.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18519, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18516 ,{auto tryResult1407 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407
.isErr()), 0))) { auto tryTempError = tryResult1407.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18519, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18517 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1407 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407
.isErr()), 0))) { auto tryTempError = tryResult1407.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18519, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18518#endif{auto tryResult1407 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407
.isErr()), 0))) { auto tryTempError = tryResult1407.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18519, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18519 ){auto tryResult1407 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407
.isErr()), 0))) { auto tryTempError = tryResult1407.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18519, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
18520
18521 // The parameter names are not used, parameters are bound by index only
18522 // locally in the same function.
18523 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1410 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1408
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18528, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1409
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18530, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.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 tryResult1408 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1408.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18528, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1409.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18530, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }))"
, tryResult1410.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18533, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}
18524 "UPDATE object_store_index "{auto tryResult1410 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1408
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18528, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1409
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18530, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.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 tryResult1408 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1408.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18528, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1409.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18530, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }))"
, tryResult1410.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18533, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}
18525 "SET name = :name "{auto tryResult1410 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1408
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18528, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1409
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18530, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.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 tryResult1408 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1408.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18528, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1409.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18530, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }))"
, tryResult1410.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18533, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}
18526 "WHERE id = :id;"_ns,{auto tryResult1410 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1408
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18528, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1409
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18530, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.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 tryResult1408 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1408.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18528, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1409.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18530, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }))"
, tryResult1410.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18533, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}
18527 [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1410 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1408
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18528, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1409
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18530, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.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 tryResult1408 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1408.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18528, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1409.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18530, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }))"
, tryResult1410.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18533, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}
18528 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));{auto tryResult1410 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1408
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18528, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1409
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18530, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.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 tryResult1408 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1408.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18528, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1409.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18530, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }))"
, tryResult1410.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18533, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}
18529
18530 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mIndexId)));{auto tryResult1410 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1408
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18528, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1409
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18530, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.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 tryResult1408 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1408.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18528, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1409.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18530, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }))"
, tryResult1410.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18533, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}
18531
18532 return Ok{};{auto tryResult1410 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1408
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18528, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1409
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18530, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.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 tryResult1408 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1408.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18528, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1409.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18530, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }))"
, tryResult1410.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18533, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}
18533 }))){auto tryResult1410 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1408
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18528, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1409
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18530, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.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 tryResult1408 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1408.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18528, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1409.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18530, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }))"
, tryResult1410.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18533, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}
;
18534
18535 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1411 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1411)::ok_type
>); if ((__builtin_expect(!!(tryResult1411.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1411.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18535, mozilla::dom::quota::Severity::Error); return tryResult1411
.propagateErr(); }}
;
18536
18537 return NS_OK;
18538}
18539
18540Result<bool, nsresult> NormalTransactionOp::ObjectStoreHasIndexes(
18541 DatabaseConnection& aConnection, const IndexOrObjectStoreId aObjectStoreId,
18542 const bool aMayHaveIndexes) {
18543 aConnection.AssertIsOnConnectionThread();
18544 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18544); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId"
")"); do { *((volatile int*)__null) = 18544; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18545
18546 if (Transaction().GetMode() == IDBTransaction::Mode::VersionChange &&
18547 aMayHaveIndexes) {
18548 // If this is a version change transaction then mObjectStoreMayHaveIndexes
18549 // could be wrong (e.g. if a unique index failed to be created due to a
18550 // constraint error). We have to check on this thread by asking the database
18551 // directly.
18552 QM_TRY_RETURN(DatabaseOperationBase::ObjectStoreHasIndexes(aConnection,{auto tryResult1412 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1412
.isErr()), 0))) { mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryResult1412.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18553, mozilla::dom::quota::Severity::Error); } return tryResult1412
;}
18553 aObjectStoreId)){auto tryResult1412 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1412
.isErr()), 0))) { mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryResult1412.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18553, mozilla::dom::quota::Severity::Error); } return tryResult1412
;}
;
18554 }
18555
18556#ifdef DEBUG1
18557 QM_TRY_INSPECT(auto tryResult1413 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1413
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1413.unwrapErr(); mozilla::dom::quota::HandleError
("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18560, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18560); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18560; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1413.inspect();
18558 const bool& hasIndexes,auto tryResult1413 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1413
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1413.unwrapErr(); mozilla::dom::quota::HandleError
("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18560, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18560); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18560; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1413.inspect();
18559 DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId),auto tryResult1413 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1413
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1413.unwrapErr(); mozilla::dom::quota::HandleError
("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18560, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18560); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18560; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1413.inspect();
18560 QM_ASSERT_UNREACHABLE)auto tryResult1413 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1413
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1413.unwrapErr(); mozilla::dom::quota::HandleError
("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18560, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18560); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18560; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1413.inspect();
;
18561 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMayHaveIndexes == hasIndexes"
")"); do { *((volatile int*)__null) = 18561; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18562#endif
18563
18564 return aMayHaveIndexes;
18565}
18566
18567Result<PreprocessParams, nsresult> NormalTransactionOp::GetPreprocessParams() {
18568 return PreprocessParams{};
18569}
18570
18571nsresult NormalTransactionOp::SendPreprocessInfo() {
18572 AssertIsOnOwningThread();
18573 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 18573; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18574
18575 QM_TRY_INSPECT(const auto& params, GetPreprocessParams())auto tryResult1414 = (GetPreprocessParams()); if ((__builtin_expect
(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetPreprocessParams()", tryResult1414.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18575, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); } const auto& params = tryResult1414.inspect
();
;
18576
18577 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "params.type() != PreprocessParams::T__None"
")"); do { *((volatile int*)__null) = 18577; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18578
18579 if (NS_WARN_IF(!PBackgroundIDBRequestParent::SendPreprocess(params))NS_warn_if_impl(!PBackgroundIDBRequestParent::SendPreprocess(
params), "!PBackgroundIDBRequestParent::SendPreprocess(params)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18579)
) {
18580 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18580, "UnknownErr")
;
18581 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
18582 }
18583
18584 return NS_OK;
18585}
18586
18587nsresult NormalTransactionOp::SendSuccessResult() {
18588 AssertIsOnOwningThread();
18589
18590 if (!IsActorDestroyed()) {
18591 static const size_t kMaxIDBMsgOverhead = 1024 * 1024 * 10; // 10MB
18592 const uint32_t maximalSizeFromPref =
18593 IndexedDatabaseManager::MaxSerializedMsgSize();
18594 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18594); AnnotateMozCrashReason("MOZ_ASSERT" "(" "maximalSizeFromPref > kMaxIDBMsgOverhead"
")"); do { *((volatile int*)__null) = 18594; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18595 const size_t kMaxMessageSize = maximalSizeFromPref - kMaxIDBMsgOverhead;
18596
18597 RequestResponse response;
18598 size_t responseSize = kMaxMessageSize;
18599 GetResponse(response, &responseSize);
18600
18601 if (responseSize >= kMaxMessageSize) {
18602 nsPrintfCString warning(
18603 "The serialized value is too large"
18604 " (size=%zu bytes, max=%zu bytes).",
18605 responseSize, kMaxMessageSize);
18606 NS_WARNING(warning.get())NS_DebugBreak(NS_DEBUG_WARNING, warning.get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18606)
;
18607 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
18608 }
18609
18610 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18610); AnnotateMozCrashReason("MOZ_ASSERT" "(" "response.type() != RequestResponse::T__None"
")"); do { *((volatile int*)__null) = 18610; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18611
18612 if (response.type() == RequestResponse::Tnsresult) {
18613 MOZ_ASSERT(NS_FAILED(response.get_nsresult()))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(response.
get_nsresult())), 0))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
NS_FAILED_impl(response.get_nsresult())), 0)))))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(NS_FAILED_impl(response.get_nsresult())), 0)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18613); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(response.get_nsresult())), 0)))"
")"); do { *((volatile int*)__null) = 18613; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18614
18615 return response.get_nsresult();
18616 }
18617
18618 if (NS_WARN_IF(NS_warn_if_impl(!PBackgroundIDBRequestParent::Send__delete__(
this, response), "!PBackgroundIDBRequestParent::Send__delete__(this, response)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18619)
18619 !PBackgroundIDBRequestParent::Send__delete__(this, response))NS_warn_if_impl(!PBackgroundIDBRequestParent::Send__delete__(
this, response), "!PBackgroundIDBRequestParent::Send__delete__(this, response)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18619)
) {
18620 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18620, "UnknownErr")
;
18621 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
18622 }
18623 }
18624
18625#ifdef DEBUG1
18626 mResponseSent = true;
18627#endif
18628
18629 return NS_OK;
18630}
18631
18632bool NormalTransactionOp::SendFailureResult(nsresult aResultCode) {
18633 AssertIsOnOwningThread();
18634 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18634); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))"
")"); do { *((volatile int*)__null) = 18634; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18635
18636 bool result = false;
18637
18638 if (!IsActorDestroyed()) {
18639 result = PBackgroundIDBRequestParent::Send__delete__(
18640 this, ClampResultCode(aResultCode));
18641 }
18642
18643#ifdef DEBUG1
18644 mResponseSent = true;
18645#endif
18646
18647 return result;
18648}
18649
18650void NormalTransactionOp::Cleanup() {
18651 AssertIsOnOwningThread();
18652 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18652); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponseSent"
")"); do { *((volatile int*)__null) = 18652; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18653
18654 TransactionDatabaseOperationBase::Cleanup();
18655}
18656
18657void NormalTransactionOp::ActorDestroy(ActorDestroyReason aWhy) {
18658 AssertIsOnOwningThread();
18659
18660 NoteActorDestroyed();
18661
18662 // Assume ActorDestroy can happen at any time, so we can't probe the current
18663 // state since mInternalState can be modified on any thread (only one thread
18664 // at a time based on the state machine).
18665 // However we can use mWaitingForContinue which is only touched on the owning
18666 // thread. If mWaitingForContinue is true, we can also modify mInternalState
18667 // since we are guaranteed that there are no pending runnables which would
18668 // probe mInternalState to decide what code needs to run (there shouldn't be
18669 // any running runnables on other threads either).
18670
18671 if (IsWaitingForContinue()) {
18672 NoteContinueReceived();
18673 }
18674
18675 // We don't have to handle the case when mWaitingForContinue is not true since
18676 // it means that either nothing has been initialized yet, so nothing to
18677 // cleanup or there are pending runnables that will detect that the actor has
18678 // been destroyed and cleanup accordingly.
18679}
18680
18681mozilla::ipc::IPCResult NormalTransactionOp::RecvContinue(
18682 const PreprocessResponse& aResponse) {
18683 AssertIsOnOwningThread();
18684
18685 switch (aResponse.type()) {
18686 case PreprocessResponse::Tnsresult:
18687 SetFailureCode(aResponse.get_nsresult());
18688 break;
18689
18690 case PreprocessResponse::TObjectStoreGetPreprocessResponse:
18691 case PreprocessResponse::TObjectStoreGetAllPreprocessResponse:
18692 break;
18693
18694 default:
18695 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18695); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18695; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
18696 }
18697
18698 NoteContinueReceived();
18699
18700 return IPC_OK()mozilla::ipc::IPCResult::Ok();
18701}
18702
18703ObjectStoreAddOrPutRequestOp::ObjectStoreAddOrPutRequestOp(
18704 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
18705 RequestParams&& aParams)
18706 : NormalTransactionOp(std::move(aTransaction), aRequestId),
18707 mParams(
18708 std::move(aParams.type() == RequestParams::TObjectStoreAddParams
18709 ? aParams.get_ObjectStoreAddParams().commonParams()
18710 : aParams.get_ObjectStorePutParams().commonParams())),
18711 mOriginMetadata(Transaction().GetDatabase().OriginMetadata()),
18712 mPersistenceType(Transaction().GetDatabase().Type()),
18713 mOverwrite(aParams.type() == RequestParams::TObjectStorePutParams),
18714 mObjectStoreMayHaveIndexes(false) {
18715 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18716); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams"
")"); do { *((volatile int*)__null) = 18716; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
18716 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18716); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams"
")"); do { *((volatile int*)__null) = 18716; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18717
18718 mMetadata =
18719 Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId());
18720 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18720); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18721
18722 mObjectStoreMayHaveIndexes = mMetadata->HasLiveIndexes();
18723
18724 mDataOverThreshold =
18725 snappy::MaxCompressedLength(mParams.cloneInfo().data().data.Size()) >
18726 IndexedDatabaseManager::DataThreshold();
18727}
18728
18729nsresult ObjectStoreAddOrPutRequestOp::RemoveOldIndexDataValues(
18730 DatabaseConnection* aConnection) {
18731 AssertIsOnConnectionThread();
18732 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18732); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 18732; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18733 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18733); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOverwrite"
")"); do { *((volatile int*)__null) = 18733; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18734 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18734); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponse.IsUnset()"
")"); do { *((volatile int*)__null) = 18734; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18735
18736#ifdef DEBUG1
18737 {
18738 QM_TRY_INSPECT(const bool& hasIndexes,auto tryResult1415 = (DatabaseOperationBase::ObjectStoreHasIndexes
( *aConnection, mParams.objectStoreId())); if ((__builtin_expect
(!!(tryResult1415.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1415.unwrapErr(); mozilla::dom::quota
::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18741, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18741); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18741; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1415.inspect();
18739 DatabaseOperationBase::ObjectStoreHasIndexes(auto tryResult1415 = (DatabaseOperationBase::ObjectStoreHasIndexes
( *aConnection, mParams.objectStoreId())); if ((__builtin_expect
(!!(tryResult1415.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1415.unwrapErr(); mozilla::dom::quota
::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18741, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18741); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18741; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1415.inspect();
18740 *aConnection, mParams.objectStoreId()),auto tryResult1415 = (DatabaseOperationBase::ObjectStoreHasIndexes
( *aConnection, mParams.objectStoreId())); if ((__builtin_expect
(!!(tryResult1415.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1415.unwrapErr(); mozilla::dom::quota
::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18741, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18741); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18741; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1415.inspect();
18741 QM_ASSERT_UNREACHABLE)auto tryResult1415 = (DatabaseOperationBase::ObjectStoreHasIndexes
( *aConnection, mParams.objectStoreId())); if ((__builtin_expect
(!!(tryResult1415.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1415.unwrapErr(); mozilla::dom::quota
::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18741, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18741); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18741; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1415.inspect();
;
18742
18743 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18744); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes"
") (" "Don't use this slow method if there are no indexes!" ")"
); do { *((volatile int*)__null) = 18744; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
18744 "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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18744); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes"
") (" "Don't use this slow method if there are no indexes!" ")"
); do { *((volatile int*)__null) = 18744; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18745 }
18746#endif
18747
18748 QM_TRY_INSPECT(auto tryResult1418 = (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 tryResult1416 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1416)::ok_type>); if ((__builtin_expect
(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1416.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18758, mozilla::dom::quota::Severity::Error); return tryResult1416
.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1417)::ok_type
>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1417.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18761, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1418.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 tryResult1416 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1416.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); return tryResult1416.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1417.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18761, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; return Ok{}; })"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18764, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); } const auto& indexValuesStmt = tryResult1418
.inspect();
18749 const auto& indexValuesStmt,auto tryResult1418 = (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 tryResult1416 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1416)::ok_type>); if ((__builtin_expect
(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1416.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18758, mozilla::dom::quota::Severity::Error); return tryResult1416
.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1417)::ok_type
>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1417.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18761, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1418.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 tryResult1416 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1416.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); return tryResult1416.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1417.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18761, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; return Ok{}; })"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18764, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); } const auto& indexValuesStmt = tryResult1418
.inspect();
18750 aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult1418 = (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 tryResult1416 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1416)::ok_type>); if ((__builtin_expect
(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1416.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18758, mozilla::dom::quota::Severity::Error); return tryResult1416
.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1417)::ok_type
>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1417.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18761, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1418.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 tryResult1416 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1416.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); return tryResult1416.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1417.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18761, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; return Ok{}; })"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18764, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); } const auto& indexValuesStmt = tryResult1418
.inspect();
18751 "SELECT index_data_values "auto tryResult1418 = (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 tryResult1416 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1416)::ok_type>); if ((__builtin_expect
(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1416.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18758, mozilla::dom::quota::Severity::Error); return tryResult1416
.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1417)::ok_type
>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1417.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18761, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1418.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 tryResult1416 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1416.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); return tryResult1416.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1417.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18761, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; return Ok{}; })"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18764, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); } const auto& indexValuesStmt = tryResult1418
.inspect();
18752 "FROM object_data "auto tryResult1418 = (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 tryResult1416 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1416)::ok_type>); if ((__builtin_expect
(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1416.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18758, mozilla::dom::quota::Severity::Error); return tryResult1416
.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1417)::ok_type
>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1417.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18761, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1418.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 tryResult1416 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1416.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); return tryResult1416.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1417.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18761, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; return Ok{}; })"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18764, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); } const auto& indexValuesStmt = tryResult1418
.inspect();
18753 "WHERE object_store_id = :"_ns +auto tryResult1418 = (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 tryResult1416 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1416)::ok_type>); if ((__builtin_expect
(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1416.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18758, mozilla::dom::quota::Severity::Error); return tryResult1416
.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1417)::ok_type
>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1417.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18761, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1418.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 tryResult1416 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1416.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); return tryResult1416.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1417.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18761, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; return Ok{}; })"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18764, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); } const auto& indexValuesStmt = tryResult1418
.inspect();
18754 kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult1418 = (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 tryResult1416 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1416)::ok_type>); if ((__builtin_expect
(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1416.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18758, mozilla::dom::quota::Severity::Error); return tryResult1416
.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1417)::ok_type
>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1417.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18761, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1418.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 tryResult1416 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1416.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); return tryResult1416.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1417.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18761, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; return Ok{}; })"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18764, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); } const auto& indexValuesStmt = tryResult1418
.inspect();
18755 kStmtParamNameKey + ";"_ns,auto tryResult1418 = (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 tryResult1416 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1416)::ok_type>); if ((__builtin_expect
(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1416.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18758, mozilla::dom::quota::Severity::Error); return tryResult1416
.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1417)::ok_type
>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1417.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18761, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1418.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 tryResult1416 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1416.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); return tryResult1416.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1417.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18761, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; return Ok{}; })"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18764, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); } const auto& indexValuesStmt = tryResult1418
.inspect();
18756 [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult1418 = (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 tryResult1416 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1416)::ok_type>); if ((__builtin_expect
(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1416.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18758, mozilla::dom::quota::Severity::Error); return tryResult1416
.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1417)::ok_type
>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1417.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18761, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1418.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 tryResult1416 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1416.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); return tryResult1416.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1417.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18761, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; return Ok{}; })"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18764, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); } const auto& indexValuesStmt = tryResult1418
.inspect();
18757 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult1418 = (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 tryResult1416 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1416)::ok_type>); if ((__builtin_expect
(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1416.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18758, mozilla::dom::quota::Severity::Error); return tryResult1416
.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1417)::ok_type
>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1417.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18761, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1418.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 tryResult1416 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1416.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); return tryResult1416.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1417.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18761, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; return Ok{}; })"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18764, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); } const auto& indexValuesStmt = tryResult1418
.inspect();
18758 kStmtParamNameObjectStoreId, self.mParams.objectStoreId())));auto tryResult1418 = (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 tryResult1416 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1416)::ok_type>); if ((__builtin_expect
(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1416.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18758, mozilla::dom::quota::Severity::Error); return tryResult1416
.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1417)::ok_type
>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1417.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18761, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1418.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 tryResult1416 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1416.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); return tryResult1416.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1417.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18761, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; return Ok{}; })"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18764, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); } const auto& indexValuesStmt = tryResult1418
.inspect();
18759
18760 QM_TRY(MOZ_TO_RESULT(auto tryResult1418 = (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 tryResult1416 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1416)::ok_type>); if ((__builtin_expect
(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1416.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18758, mozilla::dom::quota::Severity::Error); return tryResult1416
.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1417)::ok_type
>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1417.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18761, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1418.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 tryResult1416 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1416.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); return tryResult1416.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1417.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18761, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; return Ok{}; })"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18764, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); } const auto& indexValuesStmt = tryResult1418
.inspect();
18761 self.mResponse.BindToStatement(&stmt, kStmtParamNameKey)));auto tryResult1418 = (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 tryResult1416 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1416)::ok_type>); if ((__builtin_expect
(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1416.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18758, mozilla::dom::quota::Severity::Error); return tryResult1416
.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1417)::ok_type
>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1417.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18761, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1418.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 tryResult1416 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1416.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); return tryResult1416.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1417.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18761, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; return Ok{}; })"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18764, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); } const auto& indexValuesStmt = tryResult1418
.inspect();
18762
18763 return Ok{};auto tryResult1418 = (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 tryResult1416 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1416)::ok_type>); if ((__builtin_expect
(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1416.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18758, mozilla::dom::quota::Severity::Error); return tryResult1416
.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1417)::ok_type
>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1417.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18761, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1418.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 tryResult1416 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1416.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); return tryResult1416.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1417.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18761, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; return Ok{}; })"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18764, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); } const auto& indexValuesStmt = tryResult1418
.inspect();
18764 }))auto tryResult1418 = (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 tryResult1416 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1416)::ok_type>); if ((__builtin_expect
(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1416.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18758, mozilla::dom::quota::Severity::Error); return tryResult1416
.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1417)::ok_type
>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1417.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18761, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1418.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 tryResult1416 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1416.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); return tryResult1416.propagateErr(); }}; {auto tryResult1417 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1417.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18761, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; return Ok{}; })"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18764, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); } const auto& indexValuesStmt = tryResult1418
.inspect();
;
18765
18766 if (indexValuesStmt) {
18767 QM_TRY_INSPECT(const auto& existingIndexValues,auto tryResult1419 = (ReadCompressedIndexDataValues(**indexValuesStmt
, 0)); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) {
mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(**indexValuesStmt, 0)"
, tryResult1419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18768, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); } const auto& existingIndexValues = tryResult1419
.inspect();
18768 ReadCompressedIndexDataValues(**indexValuesStmt, 0))auto tryResult1419 = (ReadCompressedIndexDataValues(**indexValuesStmt
, 0)); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) {
mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(**indexValuesStmt, 0)"
, tryResult1419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18768, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); } const auto& existingIndexValues = tryResult1419
.inspect();
;
18769
18770 QM_TRY(MOZ_TO_RESULT({auto tryResult1420 = (ToResult(DeleteIndexDataTableRows(aConnection
, mResponse, existingIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect
(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))"
, tryResult1420.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18771, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); }}
18771 DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))){auto tryResult1420 = (ToResult(DeleteIndexDataTableRows(aConnection
, mResponse, existingIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect
(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))"
, tryResult1420.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18771, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); }}
;
18772 }
18773
18774 return NS_OK;
18775}
18776
18777bool ObjectStoreAddOrPutRequestOp::Init(TransactionBase& aTransaction) {
18778 AssertIsOnOwningThread();
18779
18780 const nsTArray<IndexUpdateInfo>& indexUpdateInfos =
18781 mParams.indexUpdateInfos();
18782
18783 if (!indexUpdateInfos.IsEmpty()) {
18784 mUniqueIndexTable.emplace();
18785
18786 for (const auto& updateInfo : indexUpdateInfos) {
18787 auto indexMetadata = mMetadata->mIndexes.Lookup(updateInfo.indexId());
18788 MOZ_ALWAYS_TRUE(indexMetadata)do { if ((__builtin_expect(!!(indexMetadata), 1))) { } else {
do { do { } while (false); MOZ_ReportCrash("" "indexMetadata"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18788); AnnotateMozCrashReason("MOZ_CRASH(" "indexMetadata"
")"); do { *((volatile int*)__null) = 18788; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18789
18790 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18790); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(*indexMetadata)->mDeleted"
")"); do { *((volatile int*)__null) = 18790; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18791
18792 const IndexOrObjectStoreId& indexId =
18793 (*indexMetadata)->mCommonMetadata.id();
18794 const bool& unique = (*indexMetadata)->mCommonMetadata.unique();
18795
18796 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexId == updateInfo.indexId()"
")"); do { *((volatile int*)__null) = 18796; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18797 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUniqueIndexTable.ref().Contains(indexId)"
")"); do { *((volatile int*)__null) = 18798; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
18798 !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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUniqueIndexTable.ref().Contains(indexId)"
")"); do { *((volatile int*)__null) = 18798; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18799
18800 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18801)
18801 fallible))NS_warn_if_impl(!mUniqueIndexTable.ref().InsertOrUpdate(indexId
, unique, fallible), "!mUniqueIndexTable.ref().InsertOrUpdate(indexId, unique, fallible)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18801)
) {
18802 return false;
18803 }
18804 }
18805 } else if (mOverwrite) {
18806 mUniqueIndexTable.emplace();
18807 }
18808
18809 if (mUniqueIndexTable.isSome()) {
18810 mUniqueIndexTable.ref().MarkImmutable();
18811 }
18812
18813 QM_TRY_UNWRAP(auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18814 mStoredFileInfos,auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18815 TransformIntoNewArray(auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18816 mParams.fileAddInfos(),auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18817 [](const auto& fileAddInfo) {auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18818 MOZ_ASSERT(fileAddInfo.type() == StructuredCloneFileBase::eBlob ||auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18819 fileAddInfo.type() ==auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18820 StructuredCloneFileBase::eMutableFile);auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18821
18822 switch (fileAddInfo.type()) {auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18823 case StructuredCloneFileBase::eBlob: {auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18824 PBackgroundIDBDatabaseFileParent* file =auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18825 fileAddInfo.file().AsParent();auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18826 MOZ_ASSERT(file);auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18827
18828 auto* const fileActor = static_cast<DatabaseFile*>(file);auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18829 MOZ_ASSERT(fileActor);auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18830
18831 return StoredFileInfo::CreateForBlob(auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18832 fileActor->GetFileInfoPtr(), fileActor);auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18833 }auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18834
18835 default:auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18836 MOZ_CRASH("Should never get here!");auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18837 }auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18838 },auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18839 fallible),auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
18840 false)auto tryResult1421 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18829; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18836); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18836; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1421.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18840, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { 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\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18820); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18820; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18826); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18826; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18829); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18829; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18836); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18836; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1421.unwrap
();
;
18841
18842 if (mDataOverThreshold) {
18843 auto fileInfo =
18844 aTransaction.GetDatabase().GetFileManager().CreateFileInfo();
18845 if (NS_WARN_IF(!fileInfo)NS_warn_if_impl(!fileInfo, "!fileInfo", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18845)
) {
18846 return false;
18847 }
18848
18849 mStoredFileInfos.EmplaceBack(StoredFileInfo::CreateForStructuredClone(
18850 std::move(fileInfo),
18851 MakeRefPtr<SCInputStream>(mParams.cloneInfo().data().data)));
18852 }
18853
18854 return true;
18855}
18856
18857nsresult ObjectStoreAddOrPutRequestOp::DoDatabaseWork(
18858 DatabaseConnection* aConnection) {
18859 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18859); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 18859; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18860 aConnection->AssertIsOnConnectionThread();
18861 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18861); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection->HasStorageConnection()"
")"); do { *((volatile int*)__null) = 18861; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18862
18863 AUTO_PROFILER_LABEL("ObjectStoreAddOrPutRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18863( "ObjectStoreAddOrPutRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18864
18865 DatabaseConnection::AutoSavepoint autoSave;
18866 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1422 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1422)::ok_type>); if ((__builtin_expect(!!(tryResult1422
.isErr()), 0))) { auto tryTempError = tryResult1422.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18871, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18867#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1422 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1422)::ok_type>); if ((__builtin_expect(!!(tryResult1422
.isErr()), 0))) { auto tryTempError = tryResult1422.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18871, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18868 ,{auto tryResult1422 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1422)::ok_type>); if ((__builtin_expect(!!(tryResult1422
.isErr()), 0))) { auto tryTempError = tryResult1422.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18871, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18869 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1422 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1422)::ok_type>); if ((__builtin_expect(!!(tryResult1422
.isErr()), 0))) { auto tryTempError = tryResult1422.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18871, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18870#endif{auto tryResult1422 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1422)::ok_type>); if ((__builtin_expect(!!(tryResult1422
.isErr()), 0))) { auto tryTempError = tryResult1422.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18871, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18871 ){auto tryResult1422 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1422)::ok_type>); if ((__builtin_expect(!!(tryResult1422
.isErr()), 0))) { auto tryTempError = tryResult1422.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18871, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
18872
18873 QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult1423 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1423.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18875, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1423
.inspect();
18874 ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult1423 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1423.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18875, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1423
.inspect();
18875 mObjectStoreMayHaveIndexes))auto tryResult1423 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1423.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18875, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1423
.inspect();
;
18876
18877 // This will be the final key we use.
18878 Key& key = mResponse;
18879 key = mParams.key();
18880
18881 const bool keyUnset = key.IsUnset();
18882 const IndexOrObjectStoreId osid = mParams.objectStoreId();
18883
18884 // First delete old index_data_values if we're overwriting something and we
18885 // have indexes.
18886 if (mOverwrite && !keyUnset && objectStoreHasIndexes) {
18887 QM_TRY(MOZ_TO_RESULT(RemoveOldIndexDataValues(aConnection))){auto tryResult1424 = (ToResult(RemoveOldIndexDataValues(aConnection
))); static_assert(std::is_empty_v<typename decltype(tryResult1424
)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveOldIndexDataValues(aConnection))"
, tryResult1424.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18887, mozilla::dom::quota::Severity::Error); return tryResult1424
.propagateErr(); }}
;
18888 }
18889
18890 int64_t autoIncrementNum = 0;
18891
18892 {
18893 // The "|| keyUnset" here is mostly a debugging tool. If a key isn't
18894 // specified we should never have a collision and so it shouldn't matter
18895 // if we allow overwrite or not. By not allowing overwrite we raise
18896 // detectable errors rather than corrupting data.
18897 const auto optReplaceDirective =
18898 (!mOverwrite || keyUnset) ? ""_ns : "OR REPLACE "_ns;
18899 QM_TRY_INSPECT(const auto& stmt,auto tryResult1425 = (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(!!(tryResult1425.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)"
, tryResult1425.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18907, mozilla::dom::quota::Severity::Error); return tryResult1425
.propagateErr(); } const auto& stmt = tryResult1425.inspect
();
18900 aConnection->BorrowCachedStatement(auto tryResult1425 = (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(!!(tryResult1425.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)"
, tryResult1425.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18907, mozilla::dom::quota::Severity::Error); return tryResult1425
.propagateErr(); } const auto& stmt = tryResult1425.inspect
();
18901 "INSERT "_ns + optReplaceDirective +auto tryResult1425 = (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(!!(tryResult1425.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)"
, tryResult1425.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18907, mozilla::dom::quota::Severity::Error); return tryResult1425
.propagateErr(); } const auto& stmt = tryResult1425.inspect
();
18902 "INTO object_data "auto tryResult1425 = (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(!!(tryResult1425.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)"
, tryResult1425.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18907, mozilla::dom::quota::Severity::Error); return tryResult1425
.propagateErr(); } const auto& stmt = tryResult1425.inspect
();
18903 "(object_store_id, key, file_ids, data) "auto tryResult1425 = (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(!!(tryResult1425.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)"
, tryResult1425.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18907, mozilla::dom::quota::Severity::Error); return tryResult1425
.propagateErr(); } const auto& stmt = tryResult1425.inspect
();
18904 "VALUES (:"_ns +auto tryResult1425 = (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(!!(tryResult1425.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)"
, tryResult1425.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18907, mozilla::dom::quota::Severity::Error); return tryResult1425
.propagateErr(); } const auto& stmt = tryResult1425.inspect
();
18905 kStmtParamNameObjectStoreId + ", :"_ns +auto tryResult1425 = (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(!!(tryResult1425.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)"
, tryResult1425.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18907, mozilla::dom::quota::Severity::Error); return tryResult1425
.propagateErr(); } const auto& stmt = tryResult1425.inspect
();
18906 kStmtParamNameKey + ", :"_ns + kStmtParamNameFileIds +auto tryResult1425 = (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(!!(tryResult1425.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)"
, tryResult1425.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18907, mozilla::dom::quota::Severity::Error); return tryResult1425
.propagateErr(); } const auto& stmt = tryResult1425.inspect
();
18907 ", :"_ns + kStmtParamNameData + ");"_ns))auto tryResult1425 = (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(!!(tryResult1425.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)"
, tryResult1425.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18907, mozilla::dom::quota::Severity::Error); return tryResult1425
.propagateErr(); } const auto& stmt = tryResult1425.inspect
();
;
18908
18909 QM_TRY(MOZ_TO_RESULT({auto tryResult1426 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, osid))); static_assert(std::is_empty_v<typename decltype
(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))"
, tryResult1426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1426
.propagateErr(); }}
18910 stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))){auto tryResult1426 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, osid))); static_assert(std::is_empty_v<typename decltype
(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))"
, tryResult1426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1426
.propagateErr(); }}
;
18911
18912 const SerializedStructuredCloneWriteInfo& cloneInfo = mParams.cloneInfo();
18913 const JSStructuredCloneData& cloneData = cloneInfo.data().data;
18914 const size_t cloneDataSize = cloneData.Size();
18915
18916 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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18917); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset || mMetadata->mCommonMetadata.autoIncrement()"
") (" "Should have key unless autoIncrement" ")"); do { *((volatile
int*)__null) = 18917; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false)
18917 "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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18917); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset || mMetadata->mCommonMetadata.autoIncrement()"
") (" "Should have key unless autoIncrement" ")"); do { *((volatile
int*)__null) = 18917; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false)
;
18918
18919 if (mMetadata->mCommonMetadata.autoIncrement()) {
18920 if (keyUnset) {
18921 {
18922 const auto&& lockedAutoIncrementIds =
18923 mMetadata->mAutoIncrementIds.Lock();
18924
18925 autoIncrementNum = lockedAutoIncrementIds->next;
18926 }
18927
18928 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18928); AnnotateMozCrashReason("MOZ_ASSERT" "(" "autoIncrementNum > 0"
")"); do { *((volatile int*)__null) = 18928; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18929
18930 if (autoIncrementNum > (1LL << 53)) {
18931 return NS_ERROR_DOM_INDEXEDDB_CONSTRAINT_ERR;
18932 }
18933
18934 QM_TRY(key.SetFromInteger(autoIncrementNum)){auto tryResult1427 = (key.SetFromInteger(autoIncrementNum));
static_assert(std::is_empty_v<typename decltype(tryResult1427
)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr
()), 0))) { mozilla::dom::quota::HandleError("key.SetFromInteger(autoIncrementNum)"
, tryResult1427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18934, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}
;
18935
18936 // Update index keys if primary key is preserved in child.
18937 for (auto& updateInfo : mParams.indexUpdateInfos()) {
18938 updateInfo.value().MaybeUpdateAutoIncrementKey(autoIncrementNum);
18939 }
18940 } else if (key.IsFloat()) {
18941 double numericKey = key.ToFloat();
18942 numericKey = std::min(numericKey, double(1LL << 53));
18943 numericKey = floor(numericKey);
18944
18945 const auto&& lockedAutoIncrementIds =
18946 mMetadata->mAutoIncrementIds.Lock();
18947 if (numericKey >= lockedAutoIncrementIds->next) {
18948 autoIncrementNum = numericKey;
18949 }
18950 }
18951
18952 if (keyUnset && mMetadata->mCommonMetadata.keyPath().IsValid()) {
18953 const SerializedStructuredCloneWriteInfo& cloneInfo =
18954 mParams.cloneInfo();
18955 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18955); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp()"
")"); do { *((volatile int*)__null) = 18955; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18956 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)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneDataSize > sizeof(uint64_t)"
")"); do { *((volatile int*)__null) = 18956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18957 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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18958); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))"
")"); do { *((volatile int*)__null) = 18958; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
18958 (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))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18958); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))"
")"); do { *((volatile int*)__null) = 18958; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18959
18960 // Special case where someone put an object into an autoIncrement'ing
18961 // objectStore with no key in its keyPath set. We needed to figure out
18962 // which row id we would get above before we could set that properly.
18963 uint64_t keyPropValue =
18964 ReinterpretDoubleAsUInt64(static_cast<double>(autoIncrementNum));
18965
18966 static const size_t keyPropSize = sizeof(uint64_t);
18967
18968 char keyPropBuffer[keyPropSize];
18969 LittleEndian::writeUint64(keyPropBuffer, keyPropValue);
18970
18971 auto iter = cloneData.Start();
18972 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())"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18972); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.Advance(iter, cloneInfo.offsetToKeyProp())"
")"); do { *((volatile int*)__null) = 18972; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18973 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18974); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)"
")"); do { *((volatile int*)__null) = 18974; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18974 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18974); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)"
")"); do { *((volatile int*)__null) = 18974; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18975 }
18976 }
18977
18978 key.BindToStatement(&*stmt, kStmtParamNameKey);
18979
18980 if (mDataOverThreshold) {
18981 // The data we store in the SQLite database is a (signed) 64-bit integer.
18982 // The flags are left-shifted 32 bits so the max value is 0xFFFFFFFF.
18983 // The file_ids index occupies the lower 32 bits and its max is
18984 // 0xFFFFFFFF.
18985 static const uint32_t kCompressedFlag = (1 << 0);
18986
18987 uint32_t flags = 0;
18988 flags |= kCompressedFlag;
18989
18990 const uint32_t index = mStoredFileInfos.Length() - 1;
18991
18992 const int64_t data = (uint64_t(flags) << 32) | index;
18993
18994 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameData, data))){auto tryResult1428 = (ToResult(stmt->BindInt64ByName(kStmtParamNameData
, data))); static_assert(std::is_empty_v<typename decltype
(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameData, data))"
, tryResult1428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18994, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}
;
18995 } else {
18996 AutoTArray<char, 4096> flatCloneData; // 4096 from JSStructuredCloneData
18997 QM_TRY(OkIf(flatCloneData.SetLength(cloneDataSize, fallible)),{auto tryResult1429 = (OkIf(flatCloneData.SetLength(cloneDataSize
, fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1429.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(flatCloneData.SetLength(cloneDataSize, fallible))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18998, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(flatCloneData.SetLength(cloneDataSize, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}
18998 Err(NS_ERROR_OUT_OF_MEMORY)){auto tryResult1429 = (OkIf(flatCloneData.SetLength(cloneDataSize
, fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1429.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(flatCloneData.SetLength(cloneDataSize, fallible))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18998, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(flatCloneData.SetLength(cloneDataSize, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}
;
18999
19000 {
19001 auto iter = cloneData.Start();
19002 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19003); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)"
")"); do { *((volatile int*)__null) = 19003; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
19003 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)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19003); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)"
")"); do { *((volatile int*)__null) = 19003; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
19004 }
19005
19006 // Compress the bytes before adding into the database.
19007 const char* const uncompressed = flatCloneData.Elements();
19008 const size_t uncompressedLength = cloneDataSize;
19009
19010 size_t compressedLength = snappy::MaxCompressedLength(uncompressedLength);
19011
19012 UniqueFreePtr<char> compressed(
19013 static_cast<char*>(malloc(compressedLength)));
19014 if (NS_WARN_IF(!compressed)NS_warn_if_impl(!compressed, "!compressed", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19014)
) {
19015 return NS_ERROR_OUT_OF_MEMORY;
19016 }
19017
19018 snappy::RawCompress(uncompressed, uncompressedLength, compressed.get(),
19019 &compressedLength);
19020
19021 uint8_t* const dataBuffer =
19022 reinterpret_cast<uint8_t*>(compressed.release());
19023 const size_t dataBufferLength = compressedLength;
19024
19025 QM_TRY(MOZ_TO_RESULT(stmt->BindAdoptedBlobByName({auto tryResult1430 = (ToResult(stmt->BindAdoptedBlobByName
( kStmtParamNameData, dataBuffer, dataBufferLength))); static_assert
(std::is_empty_v<typename decltype(tryResult1430)::ok_type
>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt->BindAdoptedBlobByName( kStmtParamNameData, dataBuffer, dataBufferLength))"
, tryResult1430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19026, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}
19026 kStmtParamNameData, dataBuffer, dataBufferLength))){auto tryResult1430 = (ToResult(stmt->BindAdoptedBlobByName
( kStmtParamNameData, dataBuffer, dataBufferLength))); static_assert
(std::is_empty_v<typename decltype(tryResult1430)::ok_type
>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt->BindAdoptedBlobByName( kStmtParamNameData, dataBuffer, dataBufferLength))"
, tryResult1430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19026, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}
;
19027 }
19028
19029 if (!mStoredFileInfos.IsEmpty()) {
19030 // Moved outside the loop to allow it to be cached when demanded by the
19031 // first write. (We may have mStoredFileInfos without any required
19032 // writes.)
19033 Maybe<FileHelper> fileHelper;
19034 nsAutoString fileIds;
19035
19036 for (auto& storedFileInfo : mStoredFileInfos) {
19037 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19037); AnnotateMozCrashReason("MOZ_ASSERT" "(" "storedFileInfo.IsValid()"
")"); do { *((volatile int*)__null) = 19037; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19038
19039 QM_TRY_INSPECT(const auto& inputStream,auto tryResult1431 = (storedFileInfo.GetInputStream()); if ((
__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom
::quota::HandleError("storedFileInfo.GetInputStream()", tryResult1431
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19040, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); } const auto& inputStream = tryResult1431
.inspect();
19040 storedFileInfo.GetInputStream())auto tryResult1431 = (storedFileInfo.GetInputStream()); if ((
__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom
::quota::HandleError("storedFileInfo.GetInputStream()", tryResult1431
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19040, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); } const auto& inputStream = tryResult1431
.inspect();
;
19041
19042 if (inputStream) {
19043 if (fileHelper.isNothing()) {
19044 fileHelper.emplace(Transaction().GetDatabase().GetFileManagerPtr());
19045 QM_TRY(MOZ_TO_RESULT(fileHelper->Init()),{auto tryResult1432 = (ToResult(fileHelper->Init())); static_assert
(std::is_empty_v<typename decltype(tryResult1432)::ok_type
>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) {
auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(fileHelper->Init())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19047, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19047, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->Init())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19046 NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1432 = (ToResult(fileHelper->Init())); static_assert
(std::is_empty_v<typename decltype(tryResult1432)::ok_type
>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) {
auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(fileHelper->Init())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19047, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19047, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->Init())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19047 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1432 = (ToResult(fileHelper->Init())); static_assert
(std::is_empty_v<typename decltype(tryResult1432)::ok_type
>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) {
auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(fileHelper->Init())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19047, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19047, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->Init())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
19048 }
19049
19050 const DatabaseFileInfo& fileInfo = storedFileInfo.GetFileInfo();
19051 const DatabaseFileManager& fileManager = fileInfo.Manager();
19052
19053 const auto file = fileHelper->GetFile(fileInfo);
19054 QM_TRY(OkIf(file), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1433 = (OkIf(file)); static_assert(std::is_empty_v
<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { auto tryTempError = tryResult1433
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(file)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19055, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19055, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError
, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19055 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1433 = (OkIf(file)); static_assert(std::is_empty_v
<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { auto tryTempError = tryResult1433
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(file)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19055, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19055, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError
, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
19056
19057 const auto journalFile = fileHelper->GetJournalFile(fileInfo);
19058 QM_TRY(OkIf(journalFile), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1434 = (OkIf(journalFile)); static_assert(std::
is_empty_v<typename decltype(tryResult1434)::ok_type>);
if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto
tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(journalFile)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19059, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19059, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(journalFile)", tryTempError
, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19059 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1434 = (OkIf(journalFile)); static_assert(std::
is_empty_v<typename decltype(tryResult1434)::ok_type>);
if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto
tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(journalFile)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19059, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19059, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(journalFile)", tryTempError
, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
19060
19061 nsCString fileKeyId;
19062 fileKeyId.AppendInt(fileInfo.Id());
19063
19064 const auto maybeKey =
19065 fileManager.IsInPrivateBrowsingMode()
19066 ? fileManager.MutableCipherKeyManagerRef().Get(fileKeyId)
19067 : Nothing();
19068
19069 QM_TRY(MOZ_TO_RESULT(fileHelper->CreateFileFromStream({auto tryResult1436 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19075, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1436)::ok_type>); if ((__builtin_expect
(!!(tryResult1436.isErr()), 0))) { auto tryTempError = tryResult1436
.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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19087, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1435 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1435.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19070 *file, *journalFile, *inputStream,{auto tryResult1436 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19075, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1436)::ok_type>); if ((__builtin_expect
(!!(tryResult1436.isErr()), 0))) { auto tryTempError = tryResult1436
.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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19087, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1435 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1435.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19071 storedFileInfo.ShouldCompress(), maybeKey)){auto tryResult1436 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19075, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1436)::ok_type>); if ((__builtin_expect
(!!(tryResult1436.isErr()), 0))) { auto tryTempError = tryResult1436
.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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19087, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1435 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1435.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19072 .mapErr([](const nsresult rv) {{auto tryResult1436 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19075, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1436)::ok_type>); if ((__builtin_expect
(!!(tryResult1436.isErr()), 0))) { auto tryTempError = tryResult1436
.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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19087, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1435 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1435.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19073 if (NS_ERROR_GET_MODULE(rv) !={auto tryResult1436 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19075, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1436)::ok_type>); if ((__builtin_expect
(!!(tryResult1436.isErr()), 0))) { auto tryTempError = tryResult1436
.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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19087, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1435 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1435.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19074 NS_ERROR_MODULE_DOM_INDEXEDDB) {{auto tryResult1436 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19075, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1436)::ok_type>); if ((__builtin_expect
(!!(tryResult1436.isErr()), 0))) { auto tryTempError = tryResult1436
.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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19087, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1435 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1435.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19075 IDB_REPORT_INTERNAL_ERR();{auto tryResult1436 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19075, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1436)::ok_type>); if ((__builtin_expect
(!!(tryResult1436.isErr()), 0))) { auto tryTempError = tryResult1436
.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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19087, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1435 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1435.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19076 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;{auto tryResult1436 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19075, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1436)::ok_type>); if ((__builtin_expect
(!!(tryResult1436.isErr()), 0))) { auto tryTempError = tryResult1436
.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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19087, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1435 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1435.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19077 }{auto tryResult1436 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19075, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1436)::ok_type>); if ((__builtin_expect
(!!(tryResult1436.isErr()), 0))) { auto tryTempError = tryResult1436
.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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19087, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1435 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1435.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19078 return rv;{auto tryResult1436 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19075, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1436)::ok_type>); if ((__builtin_expect
(!!(tryResult1436.isErr()), 0))) { auto tryTempError = tryResult1436
.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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19087, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1435 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1435.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19079 }),{auto tryResult1436 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19075, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1436)::ok_type>); if ((__builtin_expect
(!!(tryResult1436.isErr()), 0))) { auto tryTempError = tryResult1436
.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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19087, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1435 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1435.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19080 QM_PROPAGATE,{auto tryResult1436 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19075, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1436)::ok_type>); if ((__builtin_expect
(!!(tryResult1436.isErr()), 0))) { auto tryTempError = tryResult1436
.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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19087, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1435 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1435.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19081 ([&fileManager, &file = *file,{auto tryResult1436 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19075, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1436)::ok_type>); if ((__builtin_expect
(!!(tryResult1436.isErr()), 0))) { auto tryTempError = tryResult1436
.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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19087, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1435 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1435.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19082 &journalFile = *journalFile](const auto) {{auto tryResult1436 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19075, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1436)::ok_type>); if ((__builtin_expect
(!!(tryResult1436.isErr()), 0))) { auto tryTempError = tryResult1436
.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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19087, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1435 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1435.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19083 // Try to remove the file if the copy failed.{auto tryResult1436 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19075, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1436)::ok_type>); if ((__builtin_expect
(!!(tryResult1436.isErr()), 0))) { auto tryTempError = tryResult1436
.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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19087, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1435 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1435.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19084 QM_TRY(MOZ_TO_RESULT({auto tryResult1436 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19075, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1436)::ok_type>); if ((__builtin_expect
(!!(tryResult1436.isErr()), 0))) { auto tryTempError = tryResult1436
.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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19087, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1435 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1435.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19085 fileManager.SyncDeleteFile(file, journalFile)),{auto tryResult1436 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19075, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1436)::ok_type>); if ((__builtin_expect
(!!(tryResult1436.isErr()), 0))) { auto tryTempError = tryResult1436
.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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19087, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1435 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1435.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19086 QM_VOID);{auto tryResult1436 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19075, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1436)::ok_type>); if ((__builtin_expect
(!!(tryResult1436.isErr()), 0))) { auto tryTempError = tryResult1436
.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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19087, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1435 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1435.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19087 })){auto tryResult1436 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19075, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1436)::ok_type>); if ((__builtin_expect
(!!(tryResult1436.isErr()), 0))) { auto tryTempError = tryResult1436
.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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19087, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1435 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1435.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __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) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19075, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
;
19088
19089 storedFileInfo.NotifyWriteSucceeded();
19090 }
19091
19092 if (!fileIds.IsEmpty()) {
19093 fileIds.Append(' ');
19094 }
19095 storedFileInfo.Serialize(fileIds);
19096 }
19097
19098 QM_TRY(MOZ_TO_RESULT({auto tryResult1437 = (ToResult(stmt->BindStringByName(kStmtParamNameFileIds
, fileIds))); static_assert(std::is_empty_v<typename decltype
(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByName(kStmtParamNameFileIds, fileIds))"
, tryResult1437.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19099, mozilla::dom::quota::Severity::Error); return tryResult1437
.propagateErr(); }}
19099 stmt->BindStringByName(kStmtParamNameFileIds, fileIds))){auto tryResult1437 = (ToResult(stmt->BindStringByName(kStmtParamNameFileIds
, fileIds))); static_assert(std::is_empty_v<typename decltype
(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByName(kStmtParamNameFileIds, fileIds))"
, tryResult1437.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19099, mozilla::dom::quota::Severity::Error); return tryResult1437
.propagateErr(); }}
;
19100 } else {
19101 QM_TRY(MOZ_TO_RESULT(stmt->BindNullByName(kStmtParamNameFileIds))){auto tryResult1438 = (ToResult(stmt->BindNullByName(kStmtParamNameFileIds
))); static_assert(std::is_empty_v<typename decltype(tryResult1438
)::ok_type>); if ((__builtin_expect(!!(tryResult1438.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindNullByName(kStmtParamNameFileIds))"
, tryResult1438.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19101, mozilla::dom::quota::Severity::Error); return tryResult1438
.propagateErr(); }}
;
19102 }
19103
19104 QM_TRY(MOZ_TO_RESULT(stmt->Execute()), QM_PROPAGATE,{auto tryResult1439 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1439)::ok_type
>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) {
auto tryTempError = tryResult1439.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19109, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19107); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset"
") (" "Generated key had a collision!" ")"); do { *((volatile
int*)__null) = 19107; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } }(tryTempError); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(stmt->Execute())"
, tryTempError, Err(tryTempError)); }}
19105 [keyUnset = DebugOnly{keyUnset}](const nsresult rv) {{auto tryResult1439 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1439)::ok_type
>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) {
auto tryTempError = tryResult1439.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19109, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19107); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset"
") (" "Generated key had a collision!" ")"); do { *((volatile
int*)__null) = 19107; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } }(tryTempError); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(stmt->Execute())"
, tryTempError, Err(tryTempError)); }}
19106 if (rv == NS_ERROR_STORAGE_CONSTRAINT) {{auto tryResult1439 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1439)::ok_type
>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) {
auto tryTempError = tryResult1439.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19109, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19107); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset"
") (" "Generated key had a collision!" ")"); do { *((volatile
int*)__null) = 19107; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } }(tryTempError); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(stmt->Execute())"
, tryTempError, Err(tryTempError)); }}
19107 MOZ_ASSERT(!keyUnset, "Generated key had a collision!");{auto tryResult1439 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1439)::ok_type
>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) {
auto tryTempError = tryResult1439.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19109, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19107); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset"
") (" "Generated key had a collision!" ")"); do { *((volatile
int*)__null) = 19107; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } }(tryTempError); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(stmt->Execute())"
, tryTempError, Err(tryTempError)); }}
19108 }{auto tryResult1439 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1439)::ok_type
>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) {
auto tryTempError = tryResult1439.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19109, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19107); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset"
") (" "Generated key had a collision!" ")"); do { *((volatile
int*)__null) = 19107; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } }(tryTempError); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(stmt->Execute())"
, tryTempError, Err(tryTempError)); }}
19109 }){auto tryResult1439 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1439)::ok_type
>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) {
auto tryTempError = tryResult1439.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19109, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19107); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset"
") (" "Generated key had a collision!" ")"); do { *((volatile
int*)__null) = 19107; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } }(tryTempError); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(stmt->Execute())"
, tryTempError, Err(tryTempError)); }}
;
19110 }
19111
19112 // Update our indexes if needed.
19113 if (!mParams.indexUpdateInfos().IsEmpty()) {
19114 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19114); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUniqueIndexTable.isSome()"
")"); do { *((volatile int*)__null) = 19114; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19115
19116 // Write the index_data_values column.
19117 QM_TRY_INSPECT(const auto& indexValues,auto tryResult1440 = (IndexDataValuesFromUpdateInfos(mParams.
indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError
("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())"
, tryResult1440.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19119, mozilla::dom::quota::Severity::Error); return tryResult1440
.propagateErr(); } const auto& indexValues = tryResult1440
.inspect();
19118 IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(),auto tryResult1440 = (IndexDataValuesFromUpdateInfos(mParams.
indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError
("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())"
, tryResult1440.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19119, mozilla::dom::quota::Severity::Error); return tryResult1440
.propagateErr(); } const auto& indexValues = tryResult1440
.inspect();
19119 mUniqueIndexTable.ref()))auto tryResult1440 = (IndexDataValuesFromUpdateInfos(mParams.
indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError
("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())"
, tryResult1440.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19119, mozilla::dom::quota::Severity::Error); return tryResult1440
.propagateErr(); } const auto& indexValues = tryResult1440
.inspect();
;
19120
19121 QM_TRY({auto tryResult1441 = (ToResult(UpdateIndexValues(aConnection
, osid, key, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect
(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(UpdateIndexValues(aConnection, osid, key, indexValues))"
, tryResult1441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19122, mozilla::dom::quota::Severity::Error); return tryResult1441
.propagateErr(); }}
19122 MOZ_TO_RESULT(UpdateIndexValues(aConnection, osid, key, indexValues))){auto tryResult1441 = (ToResult(UpdateIndexValues(aConnection
, osid, key, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect
(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(UpdateIndexValues(aConnection, osid, key, indexValues))"
, tryResult1441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19122, mozilla::dom::quota::Severity::Error); return tryResult1441
.propagateErr(); }}
;
19123
19124 QM_TRY(MOZ_TO_RESULT({auto tryResult1442 = (ToResult(InsertIndexTableRows(aConnection
, osid, key, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect
(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(InsertIndexTableRows(aConnection, osid, key, indexValues))"
, tryResult1442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19125, mozilla::dom::quota::Severity::Error); return tryResult1442
.propagateErr(); }}
19125 InsertIndexTableRows(aConnection, osid, key, indexValues))){auto tryResult1442 = (ToResult(InsertIndexTableRows(aConnection
, osid, key, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect
(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(InsertIndexTableRows(aConnection, osid, key, indexValues))"
, tryResult1442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19125, mozilla::dom::quota::Severity::Error); return tryResult1442
.propagateErr(); }}
;
19126 }
19127
19128 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1443 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1443)::ok_type
>); if ((__builtin_expect(!!(tryResult1443.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19128, mozilla::dom::quota::Severity::Error); return tryResult1443
.propagateErr(); }}
;
19129
19130 if (autoIncrementNum) {
19131 {
19132 auto&& lockedAutoIncrementIds = mMetadata->mAutoIncrementIds.Lock();
19133
19134 lockedAutoIncrementIds->next = autoIncrementNum + 1;
19135 }
19136
19137 Transaction().NoteModifiedAutoIncrementObjectStore(mMetadata);
19138 }
19139
19140 return NS_OK;
19141}
19142
19143void ObjectStoreAddOrPutRequestOp::GetResponse(RequestResponse& aResponse,
19144 size_t* aResponseSize) {
19145 AssertIsOnOwningThread();
19146
19147 if (mOverwrite) {
19148 aResponse = ObjectStorePutResponse(mResponse);
19149 *aResponseSize = mResponse.GetBuffer().Length();
19150 } else {
19151 aResponse = ObjectStoreAddResponse(mResponse);
19152 *aResponseSize = mResponse.GetBuffer().Length();
19153 }
19154}
19155
19156void ObjectStoreAddOrPutRequestOp::Cleanup() {
19157 AssertIsOnOwningThread();
19158
19159 mStoredFileInfos.Clear();
19160
19161 NormalTransactionOp::Cleanup();
19162}
19163
19164NS_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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19164); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
19164; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19164); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 19164; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19164); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 19164
; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19164); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 19164; __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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19164); 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; }
19165
19166NS_IMETHODIMPnsresult
19167ObjectStoreAddOrPutRequestOp::SCInputStream::Close() { return NS_OK; }
19168
19169NS_IMETHODIMPnsresult
19170ObjectStoreAddOrPutRequestOp::SCInputStream::Available(uint64_t* _retval) {
19171 return NS_ERROR_NOT_IMPLEMENTED;
19172}
19173
19174NS_IMETHODIMPnsresult
19175ObjectStoreAddOrPutRequestOp::SCInputStream::StreamStatus() { return NS_OK; }
19176
19177NS_IMETHODIMPnsresult
19178ObjectStoreAddOrPutRequestOp::SCInputStream::Read(char* aBuf, uint32_t aCount,
19179 uint32_t* _retval) {
19180 return ReadSegments(NS_CopySegmentToBuffer, aBuf, aCount, _retval);
19181}
19182
19183NS_IMETHODIMPnsresult
19184ObjectStoreAddOrPutRequestOp::SCInputStream::ReadSegments(
19185 nsWriteSegmentFun aWriter, void* aClosure, uint32_t aCount,
19186 uint32_t* _retval) {
19187 *_retval = 0;
19188
19189 while (aCount) {
19190 uint32_t count = std::min(uint32_t(mIter.RemainingInSegment()), aCount);
19191 if (!count) {
19192 // We've run out of data in the last segment.
19193 break;
19194 }
19195
19196 uint32_t written;
19197 nsresult rv =
19198 aWriter(this, aClosure, mIter.Data(), *_retval, count, &written);
19199 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19199)
) {
19200 // InputStreams do not propagate errors to caller.
19201 return NS_OK;
19202 }
19203
19204 // Writer should write what we asked it to write.
19205 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "written == count"
")"); do { *((volatile int*)__null) = 19205; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19206
19207 *_retval += count;
19208 aCount -= count;
19209
19210 if (NS_WARN_IF(!mData.Advance(mIter, count))NS_warn_if_impl(!mData.Advance(mIter, count), "!mData.Advance(mIter, count)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19210)
) {
19211 // InputStreams do not propagate errors to caller.
19212 return NS_OK;
19213 }
19214 }
19215
19216 return NS_OK;
19217}
19218
19219NS_IMETHODIMPnsresult
19220ObjectStoreAddOrPutRequestOp::SCInputStream::IsNonBlocking(bool* _retval) {
19221 *_retval = false;
19222 return NS_OK;
19223}
19224
19225ObjectStoreGetRequestOp::ObjectStoreGetRequestOp(
19226 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
19227 const RequestParams& aParams, bool aGetAll)
19228 : NormalTransactionOp(std::move(aTransaction), aRequestId),
19229 mObjectStoreId(aGetAll
19230 ? aParams.get_ObjectStoreGetAllParams().objectStoreId()
19231 : aParams.get_ObjectStoreGetParams().objectStoreId()),
19232 mDatabase(Transaction().GetDatabasePtr()),
19233 mOptionalKeyRange(
19234 aGetAll ? aParams.get_ObjectStoreGetAllParams().optionalKeyRange()
19235 : Some(aParams.get_ObjectStoreGetParams().keyRange())),
19236 mBackgroundParent(Transaction().GetBackgroundParent()),
19237 mPreprocessInfoCount(0),
19238 mLimit(aGetAll ? aParams.get_ObjectStoreGetAllParams().limit() : 1),
19239 mGetAll(aGetAll) {
19240 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19241); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams"
")"); do { *((volatile int*)__null) = 19241; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19241 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19241); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams"
")"); do { *((volatile int*)__null) = 19241; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19242 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19242); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId"
")"); do { *((volatile int*)__null) = 19242; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19243 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19243); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase"
")"); do { *((volatile int*)__null) = 19243; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19244 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19244); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { *((volatile int*)__null) = 19244; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19245 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19245); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent"
")"); do { *((volatile int*)__null) = 19245; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19246}
19247
19248template <typename T>
19249Result<T, nsresult> ObjectStoreGetRequestOp::ConvertResponse(
19250 StructuredCloneReadInfoParent&& aInfo) {
19251 T result;
19252
19253 static_assert(std::is_same_v<T, SerializedStructuredCloneReadInfo> ||
19254 std::is_same_v<T, PreprocessInfo>);
19255
19256 if constexpr (std::is_same_v<T, SerializedStructuredCloneReadInfo>) {
19257 result.data().data = aInfo.ReleaseData();
19258 result.hasPreprocessInfo() = aInfo.HasPreprocessInfo();
19259 }
19260
19261 QM_TRY_UNWRAP(result.files(), SerializeStructuredCloneFiles(auto tryResult1444 = (SerializeStructuredCloneFiles( mDatabase
, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if
((__builtin_expect(!!(tryResult1444.isErr()), 0))) { mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)"
, tryResult1444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); return tryResult1444
.propagateErr(); } result.files() = tryResult1444.unwrap();
19262 mDatabase, aInfo.Files(),auto tryResult1444 = (SerializeStructuredCloneFiles( mDatabase
, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if
((__builtin_expect(!!(tryResult1444.isErr()), 0))) { mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)"
, tryResult1444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); return tryResult1444
.propagateErr(); } result.files() = tryResult1444.unwrap();
19263 std::is_same_v<T, PreprocessInfo>))auto tryResult1444 = (SerializeStructuredCloneFiles( mDatabase
, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if
((__builtin_expect(!!(tryResult1444.isErr()), 0))) { mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)"
, tryResult1444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); return tryResult1444
.propagateErr(); } result.files() = tryResult1444.unwrap();
;
19264
19265 return result;
19266}
19267
19268nsresult ObjectStoreGetRequestOp::DoDatabaseWork(
19269 DatabaseConnection* aConnection) {
19270 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19270); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 19270; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19271 aConnection->AssertIsOnConnectionThread();
19272 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19272); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { *((volatile int*)__null) = 19272; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19273 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1"
")"); do { *((volatile int*)__null) = 19273; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19274
19275 AUTO_PROFILER_LABEL("ObjectStoreGetRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19275( "ObjectStoreGetRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19276
19277 const nsCString query =
19278 "SELECT file_ids, data "
19279 "FROM object_data "
19280 "WHERE object_store_id = :"_ns +
19281 kStmtParamNameObjectStoreId +
19282 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameKey) +
19283 " ORDER BY key ASC"_ns +
19284 (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString());
19285
19286 QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult1445 = (aConnection->BorrowCachedStatement(query
)); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)"
, tryResult1445.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19286, mozilla::dom::quota::Severity::Error); return tryResult1445
.propagateErr(); } const auto& stmt = tryResult1445.inspect
();
;
19287
19288 QM_TRY(MOZ_TO_RESULT({auto tryResult1446 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1446)::ok_type>); if ((__builtin_expect
(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1446.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19289, mozilla::dom::quota::Severity::Error); return tryResult1446
.propagateErr(); }}
19289 stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1446 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1446)::ok_type>); if ((__builtin_expect
(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1446.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19289, mozilla::dom::quota::Severity::Error); return tryResult1446
.propagateErr(); }}
;
19290
19291 if (mOptionalKeyRange.isSome()) {
19292 QM_TRY(MOZ_TO_RESULT({auto tryResult1447 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1447)::ok_type>); if ((__builtin_expect
(!!(tryResult1447.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1447.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19293, mozilla::dom::quota::Severity::Error); return tryResult1447
.propagateErr(); }}
19293 BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1447 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1447)::ok_type>); if ((__builtin_expect
(!!(tryResult1447.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1447.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19293, mozilla::dom::quota::Severity::Error); return tryResult1447
.propagateErr(); }}
;
19294 }
19295
19296 QM_TRY(CollectWhileHasResult({auto tryResult1450 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1448.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19300, mozilla::dom::quota::Severity::Error); return tryResult1448
.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1449)::ok_type>); if ((__builtin_expect
(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19307, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1450
)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1448.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19300, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19307, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19310, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); }}
19297 *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1450 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1448.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19300, mozilla::dom::quota::Severity::Error); return tryResult1448
.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1449)::ok_type>); if ((__builtin_expect
(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19307, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1450
)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1448.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19300, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19307, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19310, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); }}
19298 QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult1450 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1448.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19300, mozilla::dom::quota::Severity::Error); return tryResult1448
.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1449)::ok_type>); if ((__builtin_expect
(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19307, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1450
)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1448.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19300, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19307, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19310, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); }}
19299 GetStructuredCloneReadInfoFromStatement({auto tryResult1450 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1448.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19300, mozilla::dom::quota::Severity::Error); return tryResult1448
.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1449)::ok_type>); if ((__builtin_expect
(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19307, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1450
)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1448.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19300, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19307, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19310, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); }}
19300 &stmt, 1, 0, mDatabase->GetFileManager()));{auto tryResult1450 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1448.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19300, mozilla::dom::quota::Severity::Error); return tryResult1448
.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1449)::ok_type>); if ((__builtin_expect
(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19307, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1450
)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1448.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19300, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19307, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19310, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); }}
19301
19302 if (cloneInfo.HasPreprocessInfo()) {{auto tryResult1450 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1448.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19300, mozilla::dom::quota::Severity::Error); return tryResult1448
.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1449)::ok_type>); if ((__builtin_expect
(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19307, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1450
)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1448.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19300, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19307, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19310, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); }}
19303 mPreprocessInfoCount++;{auto tryResult1450 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1448.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19300, mozilla::dom::quota::Severity::Error); return tryResult1448
.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1449)::ok_type>); if ((__builtin_expect
(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19307, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1450
)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1448.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19300, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19307, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19310, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); }}
19304 }{auto tryResult1450 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1448.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19300, mozilla::dom::quota::Severity::Error); return tryResult1448
.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1449)::ok_type>); if ((__builtin_expect
(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19307, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1450
)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1448.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19300, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19307, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19310, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); }}
19305
19306 QM_TRY(OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult1450 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1448.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19300, mozilla::dom::quota::Severity::Error); return tryResult1448
.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1449)::ok_type>); if ((__builtin_expect
(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19307, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1450
)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1448.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19300, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19307, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19310, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); }}
19307 Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1450 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1448.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19300, mozilla::dom::quota::Severity::Error); return tryResult1448
.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1449)::ok_type>); if ((__builtin_expect
(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19307, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1450
)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1448.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19300, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19307, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19310, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); }}
19308
19309 return Ok{};{auto tryResult1450 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1448.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19300, mozilla::dom::quota::Severity::Error); return tryResult1448
.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1449)::ok_type>); if ((__builtin_expect
(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19307, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1450
)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1448.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19300, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19307, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19310, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); }}
19310 })){auto tryResult1450 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1448.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19300, mozilla::dom::quota::Severity::Error); return tryResult1448
.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1449)::ok_type>); if ((__builtin_expect
(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19307, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1450
)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1448 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1448.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19300, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); } auto cloneInfo = tryResult1448.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1449 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1449.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19307, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19310, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); }}
;
19311
19312 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { *((volatile int*)__null) = 19312; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19313
19314 return NS_OK;
19315}
19316
19317bool ObjectStoreGetRequestOp::HasPreprocessInfo() {
19318 return mPreprocessInfoCount > 0;
19319}
19320
19321Result<PreprocessParams, nsresult>
19322ObjectStoreGetRequestOp::GetPreprocessParams() {
19323 AssertIsOnOwningThread();
19324 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19324); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponse.IsEmpty()"
")"); do { *((volatile int*)__null) = 19324; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19325
19326 if (mGetAll) {
19327 auto params = ObjectStoreGetAllPreprocessParams();
19328
19329 auto& preprocessInfos = params.preprocessInfos();
19330 if (NS_WARN_IF(NS_warn_if_impl(!preprocessInfos.SetCapacity(mPreprocessInfoCount
, fallible), "!preprocessInfos.SetCapacity(mPreprocessInfoCount, fallible)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19331)
19331 !preprocessInfos.SetCapacity(mPreprocessInfoCount, fallible))NS_warn_if_impl(!preprocessInfos.SetCapacity(mPreprocessInfoCount
, fallible), "!preprocessInfos.SetCapacity(mPreprocessInfoCount, fallible)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19331)
) {
19332 return Err(NS_ERROR_OUT_OF_MEMORY);
19333 }
19334
19335 QM_TRY(TransformIfAbortOnErr({auto tryResult1451 = (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 self.ConvertResponse<PreprocessInfo
>(std::move(info)); })); static_assert(std::is_empty_v<
typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.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 self.ConvertResponse<PreprocessInfo>(std::move(info)); })"
, tryResult1451.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19342, mozilla::dom::quota::Severity::Error); return tryResult1451
.propagateErr(); }}
19336 std::make_move_iterator(mResponse.begin()),{auto tryResult1451 = (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 self.ConvertResponse<PreprocessInfo
>(std::move(info)); })); static_assert(std::is_empty_v<
typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.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 self.ConvertResponse<PreprocessInfo>(std::move(info)); })"
, tryResult1451.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19342, mozilla::dom::quota::Severity::Error); return tryResult1451
.propagateErr(); }}
19337 std::make_move_iterator(mResponse.end()),{auto tryResult1451 = (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 self.ConvertResponse<PreprocessInfo
>(std::move(info)); })); static_assert(std::is_empty_v<
typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.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 self.ConvertResponse<PreprocessInfo>(std::move(info)); })"
, tryResult1451.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19342, mozilla::dom::quota::Severity::Error); return tryResult1451
.propagateErr(); }}
19338 MakeBackInserter(preprocessInfos),{auto tryResult1451 = (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 self.ConvertResponse<PreprocessInfo
>(std::move(info)); })); static_assert(std::is_empty_v<
typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.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 self.ConvertResponse<PreprocessInfo>(std::move(info)); })"
, tryResult1451.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19342, mozilla::dom::quota::Severity::Error); return tryResult1451
.propagateErr(); }}
19339 [](const auto& info) { return info.HasPreprocessInfo(); },{auto tryResult1451 = (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 self.ConvertResponse<PreprocessInfo
>(std::move(info)); })); static_assert(std::is_empty_v<
typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.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 self.ConvertResponse<PreprocessInfo>(std::move(info)); })"
, tryResult1451.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19342, mozilla::dom::quota::Severity::Error); return tryResult1451
.propagateErr(); }}
19340 [&self = *this](StructuredCloneReadInfoParent&& info) {{auto tryResult1451 = (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 self.ConvertResponse<PreprocessInfo
>(std::move(info)); })); static_assert(std::is_empty_v<
typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.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 self.ConvertResponse<PreprocessInfo>(std::move(info)); })"
, tryResult1451.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19342, mozilla::dom::quota::Severity::Error); return tryResult1451
.propagateErr(); }}
19341 return self.ConvertResponse<PreprocessInfo>(std::move(info));{auto tryResult1451 = (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 self.ConvertResponse<PreprocessInfo
>(std::move(info)); })); static_assert(std::is_empty_v<
typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.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 self.ConvertResponse<PreprocessInfo>(std::move(info)); })"
, tryResult1451.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19342, mozilla::dom::quota::Severity::Error); return tryResult1451
.propagateErr(); }}
19342 })){auto tryResult1451 = (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 self.ConvertResponse<PreprocessInfo
>(std::move(info)); })); static_assert(std::is_empty_v<
typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.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 self.ConvertResponse<PreprocessInfo>(std::move(info)); })"
, tryResult1451.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19342, mozilla::dom::quota::Severity::Error); return tryResult1451
.propagateErr(); }}
;
19343
19344 return PreprocessParams{std::move(params)};
19345 }
19346
19347 auto params = ObjectStoreGetPreprocessParams();
19348
19349 QM_TRY_UNWRAP(params.preprocessInfo(),auto tryResult1452 = (ConvertResponse<PreprocessInfo>(std
::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1452
.isErr()), 0))) { mozilla::dom::quota::HandleError("ConvertResponse<PreprocessInfo>(std::move(mResponse[0]))"
, tryResult1452.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19350, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); } params.preprocessInfo() = tryResult1452.unwrap
();
19350 ConvertResponse<PreprocessInfo>(std::move(mResponse[0])))auto tryResult1452 = (ConvertResponse<PreprocessInfo>(std
::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1452
.isErr()), 0))) { mozilla::dom::quota::HandleError("ConvertResponse<PreprocessInfo>(std::move(mResponse[0]))"
, tryResult1452.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19350, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); } params.preprocessInfo() = tryResult1452.unwrap
();
;
19351
19352 return PreprocessParams{std::move(params)};
19353}
19354
19355void ObjectStoreGetRequestOp::GetResponse(RequestResponse& aResponse,
19356 size_t* aResponseSize) {
19357 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19357); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= mLimit"
")"); do { *((volatile int*)__null) = 19357; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19358
19359 if (mGetAll) {
19360 aResponse = ObjectStoreGetAllResponse();
19361 *aResponseSize = 0;
19362
19363 if (!mResponse.IsEmpty()) {
19364 QM_TRY_UNWRAP(auto tryResult1453 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1453.isErr())
, 0))) { auto tryTempError = tryResult1453.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>( std::move(info)); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19375, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1453.unwrap();
19365 aResponse.get_ObjectStoreGetAllResponse().cloneInfos(),auto tryResult1453 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1453.isErr())
, 0))) { auto tryTempError = tryResult1453.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>( std::move(info)); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19375, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1453.unwrap();
19366 TransformIntoNewArrayAbortOnErr(auto tryResult1453 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1453.isErr())
, 0))) { auto tryTempError = tryResult1453.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>( std::move(info)); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19375, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1453.unwrap();
19367 std::make_move_iterator(mResponse.begin()),auto tryResult1453 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1453.isErr())
, 0))) { auto tryTempError = tryResult1453.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>( std::move(info)); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19375, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1453.unwrap();
19368 std::make_move_iterator(mResponse.end()),auto tryResult1453 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1453.isErr())
, 0))) { auto tryTempError = tryResult1453.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>( std::move(info)); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19375, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1453.unwrap();
19369 [this, &aResponseSize](StructuredCloneReadInfoParent&& info) {auto tryResult1453 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1453.isErr())
, 0))) { auto tryTempError = tryResult1453.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>( std::move(info)); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19375, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1453.unwrap();
19370 *aResponseSize += info.Size();auto tryResult1453 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1453.isErr())
, 0))) { auto tryTempError = tryResult1453.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>( std::move(info)); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19375, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1453.unwrap();
19371 return ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult1453 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1453.isErr())
, 0))) { auto tryTempError = tryResult1453.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>( std::move(info)); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19375, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1453.unwrap();
19372 std::move(info));auto tryResult1453 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1453.isErr())
, 0))) { auto tryTempError = tryResult1453.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>( std::move(info)); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19375, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1453.unwrap();
19373 },auto tryResult1453 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1453.isErr())
, 0))) { auto tryTempError = tryResult1453.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>( std::move(info)); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19375, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1453.unwrap();
19374 fallible),auto tryResult1453 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1453.isErr())
, 0))) { auto tryTempError = tryResult1453.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>( std::move(info)); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19375, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1453.unwrap();
19375 QM_VOID, [&aResponse](const nsresult result) { aResponse = result; })auto tryResult1453 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1453.isErr())
, 0))) { auto tryTempError = tryResult1453.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>( std::move(info)); }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19375, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1453.unwrap();
;
19376 }
19377
19378 return;
19379 }
19380
19381 aResponse = ObjectStoreGetResponse();
19382 *aResponseSize = 0;
19383
19384 if (!mResponse.IsEmpty()) {
19385 SerializedStructuredCloneReadInfo& serializedInfo =
19386 aResponse.get_ObjectStoreGetResponse().cloneInfo();
19387
19388 *aResponseSize += mResponse[0].Size();
19389 QM_TRY_UNWRAP(serializedInfo,auto tryResult1454 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1454
.isErr()), 0))) { auto tryTempError = tryResult1454.unwrapErr
(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19393, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1454.unwrap
();
19390 ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult1454 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1454
.isErr()), 0))) { auto tryTempError = tryResult1454.unwrapErr
(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19393, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1454.unwrap
();
19391 std::move(mResponse[0])),auto tryResult1454 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1454
.isErr()), 0))) { auto tryTempError = tryResult1454.unwrapErr
(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19393, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1454.unwrap
();
19392 QM_VOID,auto tryResult1454 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1454
.isErr()), 0))) { auto tryTempError = tryResult1454.unwrapErr
(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19393, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1454.unwrap
();
19393 [&aResponse](const nsresult result) { aResponse = result; })auto tryResult1454 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1454
.isErr()), 0))) { auto tryTempError = tryResult1454.unwrapErr
(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19393, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1454.unwrap
();
;
19394 }
19395}
19396
19397ObjectStoreGetKeyRequestOp::ObjectStoreGetKeyRequestOp(
19398 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
19399 const RequestParams& aParams, bool aGetAll)
19400 : NormalTransactionOp(std::move(aTransaction), aRequestId),
19401 mObjectStoreId(
19402 aGetAll ? aParams.get_ObjectStoreGetAllKeysParams().objectStoreId()
19403 : aParams.get_ObjectStoreGetKeyParams().objectStoreId()),
19404 mOptionalKeyRange(
19405 aGetAll ? aParams.get_ObjectStoreGetAllKeysParams().optionalKeyRange()
19406 : Some(aParams.get_ObjectStoreGetKeyParams().keyRange())),
19407 mLimit(aGetAll ? aParams.get_ObjectStoreGetAllKeysParams().limit() : 1),
19408 mGetAll(aGetAll) {
19409 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19410); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams"
")"); do { *((volatile int*)__null) = 19410; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19410 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19410); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams"
")"); do { *((volatile int*)__null) = 19410; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19411 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19411); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId"
")"); do { *((volatile int*)__null) = 19411; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19412 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19412); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { *((volatile int*)__null) = 19412; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19413}
19414
19415nsresult ObjectStoreGetKeyRequestOp::DoDatabaseWork(
19416 DatabaseConnection* aConnection) {
19417 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19417); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 19417; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19418 aConnection->AssertIsOnConnectionThread();
19419
19420 AUTO_PROFILER_LABEL("ObjectStoreGetKeyRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19420( "ObjectStoreGetKeyRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19421
19422 const nsCString query =
19423 "SELECT key "
19424 "FROM object_data "
19425 "WHERE object_store_id = :"_ns +
19426 kStmtParamNameObjectStoreId +
19427 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameKey) +
19428 " ORDER BY key ASC"_ns +
19429 (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString());
19430
19431 QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult1455 = (aConnection->BorrowCachedStatement(query
)); if ((__builtin_expect(!!(tryResult1455.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)"
, tryResult1455.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19431, mozilla::dom::quota::Severity::Error); return tryResult1455
.propagateErr(); } const auto& stmt = tryResult1455.inspect
();
;
19432
19433 nsresult rv =
19434 stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId);
19435 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19435)
) {
19436 return rv;
19437 }
19438
19439 if (mOptionalKeyRange.isSome()) {
19440 rv = BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt);
19441 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19441)
) {
19442 return rv;
19443 }
19444 }
19445
19446 QM_TRY(CollectWhileHasResult({auto tryResult1458 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1456
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1456)::ok_type>); if ((__builtin_expect(!!(tryResult1456
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1456.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19449, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1457 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1457)::ok_type>);
if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1457.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19450, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect
(!!(tryResult1458.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1456 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1456)::ok_type>); if ((__builtin_expect(!!(tryResult1456.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1456.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19449, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1457 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1457.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19450, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; return Ok{}; })"
, tryResult1458.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19453, mozilla::dom::quota::Severity::Error); return tryResult1458
.propagateErr(); }}
19447 *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1458 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1456
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1456)::ok_type>); if ((__builtin_expect(!!(tryResult1456
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1456.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19449, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1457 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1457)::ok_type>);
if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1457.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19450, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect
(!!(tryResult1458.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1456 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1456)::ok_type>); if ((__builtin_expect(!!(tryResult1456.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1456.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19449, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1457 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1457.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19450, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; return Ok{}; })"
, tryResult1458.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19453, mozilla::dom::quota::Severity::Error); return tryResult1458
.propagateErr(); }}
19448 Key* const key = mResponse.AppendElement(fallible);{auto tryResult1458 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1456
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1456)::ok_type>); if ((__builtin_expect(!!(tryResult1456
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1456.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19449, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1457 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1457)::ok_type>);
if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1457.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19450, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect
(!!(tryResult1458.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1456 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1456)::ok_type>); if ((__builtin_expect(!!(tryResult1456.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1456.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19449, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1457 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1457.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19450, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; return Ok{}; })"
, tryResult1458.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19453, mozilla::dom::quota::Severity::Error); return tryResult1458
.propagateErr(); }}
19449 QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1458 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1456
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1456)::ok_type>); if ((__builtin_expect(!!(tryResult1456
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1456.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19449, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1457 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1457)::ok_type>);
if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1457.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19450, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect
(!!(tryResult1458.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1456 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1456)::ok_type>); if ((__builtin_expect(!!(tryResult1456.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1456.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19449, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1457 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1457.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19450, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; return Ok{}; })"
, tryResult1458.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19453, mozilla::dom::quota::Severity::Error); return tryResult1458
.propagateErr(); }}
19450 QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult1458 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1456
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1456)::ok_type>); if ((__builtin_expect(!!(tryResult1456
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1456.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19449, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1457 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1457)::ok_type>);
if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1457.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19450, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect
(!!(tryResult1458.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1456 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1456)::ok_type>); if ((__builtin_expect(!!(tryResult1456.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1456.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19449, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1457 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1457.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19450, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; return Ok{}; })"
, tryResult1458.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19453, mozilla::dom::quota::Severity::Error); return tryResult1458
.propagateErr(); }}
19451
19452 return Ok{};{auto tryResult1458 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1456
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1456)::ok_type>); if ((__builtin_expect(!!(tryResult1456
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1456.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19449, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1457 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1457)::ok_type>);
if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1457.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19450, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect
(!!(tryResult1458.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1456 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1456)::ok_type>); if ((__builtin_expect(!!(tryResult1456.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1456.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19449, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1457 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1457.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19450, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; return Ok{}; })"
, tryResult1458.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19453, mozilla::dom::quota::Severity::Error); return tryResult1458
.propagateErr(); }}
19453 })){auto tryResult1458 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1456
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1456)::ok_type>); if ((__builtin_expect(!!(tryResult1456
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1456.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19449, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1457 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1457)::ok_type>);
if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1457.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19450, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect
(!!(tryResult1458.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1456 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1456)::ok_type>); if ((__builtin_expect(!!(tryResult1456.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1456.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19449, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1457 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1457.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19450, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; return Ok{}; })"
, tryResult1458.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19453, mozilla::dom::quota::Severity::Error); return tryResult1458
.propagateErr(); }}
;
19454
19455 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19455); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { *((volatile int*)__null) = 19455; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19456
19457 return NS_OK;
19458}
19459
19460void ObjectStoreGetKeyRequestOp::GetResponse(RequestResponse& aResponse,
19461 size_t* aResponseSize) {
19462 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19462); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= mLimit"
")"); do { *((volatile int*)__null) = 19462; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19463
19464 if (mGetAll) {
19465 aResponse = ObjectStoreGetAllKeysResponse();
19466 *aResponseSize = std::accumulate(mResponse.begin(), mResponse.end(), 0u,
19467 [](size_t old, const auto& entry) {
19468 return old + entry.GetBuffer().Length();
19469 });
19470
19471 aResponse.get_ObjectStoreGetAllKeysResponse().keys() = std::move(mResponse);
19472
19473 return;
19474 }
19475
19476 aResponse = ObjectStoreGetKeyResponse();
19477 *aResponseSize = 0;
19478
19479 if (!mResponse.IsEmpty()) {
19480 *aResponseSize = mResponse[0].GetBuffer().Length();
19481 aResponse.get_ObjectStoreGetKeyResponse().key() = std::move(mResponse[0]);
19482 }
19483}
19484
19485ObjectStoreDeleteRequestOp::ObjectStoreDeleteRequestOp(
19486 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
19487 const ObjectStoreDeleteParams& aParams)
19488 : NormalTransactionOp(std::move(aTransaction), aRequestId),
19489 mParams(aParams),
19490 mObjectStoreMayHaveIndexes(false) {
19491 AssertIsOnBackgroundThread();
19492
19493 SafeRefPtr<FullObjectStoreMetadata> metadata =
19494 Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId());
19495 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19495); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 19495; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
19496
19497 mObjectStoreMayHaveIndexes = metadata->HasLiveIndexes();
19498}
19499
19500nsresult ObjectStoreDeleteRequestOp::DoDatabaseWork(
19501 DatabaseConnection* aConnection) {
19502 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19502); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 19502; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19503 aConnection->AssertIsOnConnectionThread();
19504 AUTO_PROFILER_LABEL("ObjectStoreDeleteRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19504( "ObjectStoreDeleteRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19505
19506 DatabaseConnection::AutoSavepoint autoSave;
19507 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1459 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459
.isErr()), 0))) { auto tryTempError = tryResult1459.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19512, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19508#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1459 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459
.isErr()), 0))) { auto tryTempError = tryResult1459.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19512, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19509 ,{auto tryResult1459 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459
.isErr()), 0))) { auto tryTempError = tryResult1459.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19512, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19510 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1459 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459
.isErr()), 0))) { auto tryTempError = tryResult1459.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19512, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19511#endif{auto tryResult1459 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459
.isErr()), 0))) { auto tryTempError = tryResult1459.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19512, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19512 ){auto tryResult1459 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459
.isErr()), 0))) { auto tryTempError = tryResult1459.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19512, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
19513
19514 QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult1460 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1460.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1460.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19516, mozilla::dom::quota::Severity::Error); return tryResult1460
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1460
.inspect();
19515 ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult1460 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1460.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1460.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19516, mozilla::dom::quota::Severity::Error); return tryResult1460
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1460
.inspect();
19516 mObjectStoreMayHaveIndexes))auto tryResult1460 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1460.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1460.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19516, mozilla::dom::quota::Severity::Error); return tryResult1460
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1460
.inspect();
;
19517
19518 if (objectStoreHasIndexes) {
19519 QM_TRY(MOZ_TO_RESULT(DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult1461 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Some(mParams.keyRange
())))); static_assert(std::is_empty_v<typename decltype(tryResult1461
)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))"
, tryResult1461.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19520, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}
19520 aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))){auto tryResult1461 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Some(mParams.keyRange
())))); static_assert(std::is_empty_v<typename decltype(tryResult1461
)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))"
, tryResult1461.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19520, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}
;
19521 } else {
19522 const auto keyRangeClause =
19523 GetBindingClauseForKeyRange(mParams.keyRange(), kColumnNameKey);
19524
19525 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1464 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1462 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1462
)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1462.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19532, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect
(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1463.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19535, mozilla::dom::quota::Severity::Error); return tryResult1463
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect
(!!(tryResult1464.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 tryResult1462 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1462.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19532, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1463.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19535, mozilla::dom::quota::Severity::Error); return tryResult1463.propagateErr(); }}; return Ok{}; }))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19538, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}
19526 "DELETE FROM object_data "{auto tryResult1464 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1462 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1462
)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1462.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19532, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect
(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1463.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19535, mozilla::dom::quota::Severity::Error); return tryResult1463
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect
(!!(tryResult1464.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 tryResult1462 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1462.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19532, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1463.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19535, mozilla::dom::quota::Severity::Error); return tryResult1463.propagateErr(); }}; return Ok{}; }))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19538, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}
19527 "WHERE object_store_id = :"_ns +{auto tryResult1464 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1462 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1462
)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1462.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19532, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect
(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1463.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19535, mozilla::dom::quota::Severity::Error); return tryResult1463
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect
(!!(tryResult1464.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 tryResult1462 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1462.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19532, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1463.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19535, mozilla::dom::quota::Severity::Error); return tryResult1463.propagateErr(); }}; return Ok{}; }))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19538, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}
19528 kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns,{auto tryResult1464 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1462 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1462
)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1462.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19532, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect
(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1463.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19535, mozilla::dom::quota::Severity::Error); return tryResult1463
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect
(!!(tryResult1464.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 tryResult1462 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1462.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19532, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1463.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19535, mozilla::dom::quota::Severity::Error); return tryResult1463.propagateErr(); }}; return Ok{}; }))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19538, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}
19529 [&params = mParams]({auto tryResult1464 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1462 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1462
)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1462.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19532, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect
(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1463.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19535, mozilla::dom::quota::Severity::Error); return tryResult1463
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect
(!!(tryResult1464.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 tryResult1462 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1462.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19532, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1463.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19535, mozilla::dom::quota::Severity::Error); return tryResult1463.propagateErr(); }}; return Ok{}; }))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19538, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}
19530 mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> {{auto tryResult1464 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1462 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1462
)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1462.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19532, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect
(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1463.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19535, mozilla::dom::quota::Severity::Error); return tryResult1463
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect
(!!(tryResult1464.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 tryResult1462 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1462.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19532, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1463.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19535, mozilla::dom::quota::Severity::Error); return tryResult1463.propagateErr(); }}; return Ok{}; }))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19538, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}
19531 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(kStmtParamNameObjectStoreId,{auto tryResult1464 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1462 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1462
)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1462.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19532, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect
(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1463.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19535, mozilla::dom::quota::Severity::Error); return tryResult1463
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect
(!!(tryResult1464.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 tryResult1462 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1462.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19532, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1463.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19535, mozilla::dom::quota::Severity::Error); return tryResult1463.propagateErr(); }}; return Ok{}; }))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19538, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}
19532 params.objectStoreId())));{auto tryResult1464 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1462 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1462
)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1462.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19532, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect
(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1463.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19535, mozilla::dom::quota::Severity::Error); return tryResult1463
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect
(!!(tryResult1464.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 tryResult1462 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1462.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19532, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1463.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19535, mozilla::dom::quota::Severity::Error); return tryResult1463.propagateErr(); }}; return Ok{}; }))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19538, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}
19533
19534 QM_TRY({auto tryResult1464 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1462 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1462
)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1462.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19532, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect
(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1463.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19535, mozilla::dom::quota::Severity::Error); return tryResult1463
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect
(!!(tryResult1464.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 tryResult1462 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1462.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19532, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1463.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19535, mozilla::dom::quota::Severity::Error); return tryResult1463.propagateErr(); }}; return Ok{}; }))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19538, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}
19535 MOZ_TO_RESULT(BindKeyRangeToStatement(params.keyRange(), &stmt)));{auto tryResult1464 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1462 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1462
)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1462.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19532, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect
(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1463.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19535, mozilla::dom::quota::Severity::Error); return tryResult1463
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect
(!!(tryResult1464.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 tryResult1462 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1462.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19532, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1463.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19535, mozilla::dom::quota::Severity::Error); return tryResult1463.propagateErr(); }}; return Ok{}; }))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19538, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}
19536
19537 return Ok{};{auto tryResult1464 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1462 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1462
)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1462.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19532, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect
(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1463.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19535, mozilla::dom::quota::Severity::Error); return tryResult1463
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect
(!!(tryResult1464.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 tryResult1462 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1462.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19532, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1463.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19535, mozilla::dom::quota::Severity::Error); return tryResult1463.propagateErr(); }}; return Ok{}; }))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19538, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}
19538 }))){auto tryResult1464 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1462 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1462
)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1462.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19532, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect
(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1463.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19535, mozilla::dom::quota::Severity::Error); return tryResult1463
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect
(!!(tryResult1464.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 tryResult1462 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1462.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19532, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1463.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19535, mozilla::dom::quota::Severity::Error); return tryResult1463.propagateErr(); }}; return Ok{}; }))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19538, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}
;
19539 }
19540
19541 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1465 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1465)::ok_type
>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1465.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19541, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}
;
19542
19543 return NS_OK;
19544}
19545
19546ObjectStoreClearRequestOp::ObjectStoreClearRequestOp(
19547 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
19548 const ObjectStoreClearParams& aParams)
19549 : NormalTransactionOp(std::move(aTransaction), aRequestId),
19550 mParams(aParams),
19551 mObjectStoreMayHaveIndexes(false) {
19552 AssertIsOnBackgroundThread();
19553
19554 SafeRefPtr<FullObjectStoreMetadata> metadata =
19555 Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId());
19556 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19556); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 19556; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
19557
19558 mObjectStoreMayHaveIndexes = metadata->HasLiveIndexes();
19559}
19560
19561nsresult ObjectStoreClearRequestOp::DoDatabaseWork(
19562 DatabaseConnection* aConnection) {
19563 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19563); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 19563; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19564 aConnection->AssertIsOnConnectionThread();
19565
19566 AUTO_PROFILER_LABEL("ObjectStoreClearRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19566( "ObjectStoreClearRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19567
19568 DatabaseConnection::AutoSavepoint autoSave;
19569 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1466 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466
.isErr()), 0))) { auto tryTempError = tryResult1466.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19574, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19570#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1466 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466
.isErr()), 0))) { auto tryTempError = tryResult1466.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19574, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19571 ,{auto tryResult1466 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466
.isErr()), 0))) { auto tryTempError = tryResult1466.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19574, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19572 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1466 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466
.isErr()), 0))) { auto tryTempError = tryResult1466.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19574, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19573#endif{auto tryResult1466 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466
.isErr()), 0))) { auto tryTempError = tryResult1466.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19574, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19574 ){auto tryResult1466 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466
.isErr()), 0))) { auto tryTempError = tryResult1466.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19574, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
19575
19576 QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult1467 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1467.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19578, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1467
.inspect();
19577 ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult1467 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1467.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19578, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1467
.inspect();
19578 mObjectStoreMayHaveIndexes))auto tryResult1467 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1467.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19578, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1467
.inspect();
;
19579
19580 // The parameter names are not used, parameters are bound by index only
19581 // locally in the same function.
19582 QM_TRY(MOZ_TO_RESULT({auto tryResult1469 = (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
tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1468
)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1468.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19593, 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
("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 tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1468.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19593, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; return Ok{}; }))"
, tryResult1469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19596, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
19583 objectStoreHasIndexes{auto tryResult1469 = (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
tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1468
)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1468.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19593, 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
("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 tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1468.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19593, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; return Ok{}; }))"
, tryResult1469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19596, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
19584 ? DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult1469 = (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
tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1468
)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1468.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19593, 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
("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 tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1468.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19593, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; return Ok{}; }))"
, tryResult1469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19596, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
19585 aConnection, mParams.objectStoreId(), Nothing()){auto tryResult1469 = (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
tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1468
)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1468.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19593, 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
("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 tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1468.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19593, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; return Ok{}; }))"
, tryResult1469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19596, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
19586 : aConnection->ExecuteCachedStatement({auto tryResult1469 = (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
tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1468
)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1468.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19593, 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
("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 tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1468.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19593, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; return Ok{}; }))"
, tryResult1469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19596, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
19587 "DELETE FROM object_data "{auto tryResult1469 = (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
tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1468
)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1468.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19593, 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
("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 tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1468.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19593, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; return Ok{}; }))"
, tryResult1469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19596, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
19588 "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1469 = (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
tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1468
)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1468.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19593, 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
("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 tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1468.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19593, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; return Ok{}; }))"
, tryResult1469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19596, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
19589 [objectStoreId ={auto tryResult1469 = (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
tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1468
)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1468.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19593, 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
("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 tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1468.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19593, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; return Ok{}; }))"
, tryResult1469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19596, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
19590 mParams.objectStoreId()](mozIStorageStatement& stmt){auto tryResult1469 = (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
tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1468
)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1468.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19593, 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
("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 tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1468.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19593, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; return Ok{}; }))"
, tryResult1469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19596, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
19591 -> mozilla::Result<Ok, nsresult> {{auto tryResult1469 = (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
tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1468
)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1468.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19593, 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
("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 tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1468.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19593, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; return Ok{}; }))"
, tryResult1469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19596, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
19592 QM_TRY({auto tryResult1469 = (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
tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1468
)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1468.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19593, 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
("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 tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1468.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19593, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; return Ok{}; }))"
, tryResult1469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19596, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
19593 MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, objectStoreId)));{auto tryResult1469 = (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
tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1468
)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1468.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19593, 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
("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 tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1468.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19593, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; return Ok{}; }))"
, tryResult1469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19596, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
19594
19595 return Ok{};{auto tryResult1469 = (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
tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1468
)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1468.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19593, 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
("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 tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1468.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19593, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; return Ok{}; }))"
, tryResult1469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19596, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
19596 }))){auto tryResult1469 = (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
tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1468
)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1468.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19593, 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
("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 tryResult1468 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1468.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19593, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; return Ok{}; }))"
, tryResult1469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19596, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
;
19597
19598 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1470 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1470)::ok_type
>); if ((__builtin_expect(!!(tryResult1470.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19598, mozilla::dom::quota::Severity::Error); return tryResult1470
.propagateErr(); }}
;
19599
19600 return NS_OK;
19601}
19602
19603nsresult ObjectStoreCountRequestOp::DoDatabaseWork(
19604 DatabaseConnection* aConnection) {
19605 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19605); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 19605; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19606 aConnection->AssertIsOnConnectionThread();
19607
19608 AUTO_PROFILER_LABEL("ObjectStoreCountRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19608( "ObjectStoreCountRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19609
19610 const auto keyRangeClause = MaybeGetBindingClauseForKeyRange(
19611 mParams.optionalKeyRange(), kColumnNameKey);
19612
19613 QM_TRY_INSPECT(auto tryResult1473 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19622, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1473.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 tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19622, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1472.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; } return Ok{}; })"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19630, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); } const auto& maybeStmt = tryResult1473.
inspect();
19614 const auto& maybeStmt,auto tryResult1473 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19622, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1473.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 tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19622, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1472.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; } return Ok{}; })"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19630, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); } const auto& maybeStmt = tryResult1473.
inspect();
19615 aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult1473 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19622, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1473.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 tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19622, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1472.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; } return Ok{}; })"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19630, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); } const auto& maybeStmt = tryResult1473.
inspect();
19616 "SELECT count(*) "auto tryResult1473 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19622, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1473.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 tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19622, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1472.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; } return Ok{}; })"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19630, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); } const auto& maybeStmt = tryResult1473.
inspect();
19617 "FROM object_data "auto tryResult1473 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19622, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1473.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 tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19622, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1472.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; } return Ok{}; })"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19630, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); } const auto& maybeStmt = tryResult1473.
inspect();
19618 "WHERE object_store_id = :"_ns +auto tryResult1473 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19622, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1473.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 tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19622, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1472.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; } return Ok{}; })"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19630, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); } const auto& maybeStmt = tryResult1473.
inspect();
19619 kStmtParamNameObjectStoreId + keyRangeClause,auto tryResult1473 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19622, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1473.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 tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19622, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1472.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; } return Ok{}; })"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19630, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); } const auto& maybeStmt = tryResult1473.
inspect();
19620 [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult1473 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19622, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1473.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 tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19622, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1472.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; } return Ok{}; })"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19630, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); } const auto& maybeStmt = tryResult1473.
inspect();
19621 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult1473 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19622, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1473.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 tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19622, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1472.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; } return Ok{}; })"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19630, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); } const auto& maybeStmt = tryResult1473.
inspect();
19622 kStmtParamNameObjectStoreId, params.objectStoreId())));auto tryResult1473 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19622, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1473.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 tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19622, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1472.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; } return Ok{}; })"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19630, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); } const auto& maybeStmt = tryResult1473.
inspect();
19623
19624 if (params.optionalKeyRange().isSome()) {auto tryResult1473 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19622, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1473.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 tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19622, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1472.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; } return Ok{}; })"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19630, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); } const auto& maybeStmt = tryResult1473.
inspect();
19625 QM_TRY(MOZ_TO_RESULT(BindKeyRangeToStatement(auto tryResult1473 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19622, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1473.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 tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19622, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1472.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; } return Ok{}; })"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19630, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); } const auto& maybeStmt = tryResult1473.
inspect();
19626 params.optionalKeyRange().ref(), &stmt)));auto tryResult1473 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19622, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1473.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 tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19622, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1472.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; } return Ok{}; })"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19630, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); } const auto& maybeStmt = tryResult1473.
inspect();
19627 }auto tryResult1473 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19622, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1473.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 tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19622, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1472.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; } return Ok{}; })"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19630, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); } const auto& maybeStmt = tryResult1473.
inspect();
19628
19629 return Ok{};auto tryResult1473 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19622, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1473.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 tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19622, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1472.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; } return Ok{}; })"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19630, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); } const auto& maybeStmt = tryResult1473.
inspect();
19630 }))auto tryResult1473 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19622, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1473.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 tryResult1471 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19622, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1472 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1472.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; } return Ok{}; })"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19630, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); } const auto& maybeStmt = tryResult1473.
inspect();
;
19631
19632 QM_TRY(OkIf(maybeStmt.isSome()), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1474 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1474)::ok_type
>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) {
auto tryTempError = tryResult1474.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19638, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19636); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19636; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19637, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19633 [](const auto) {{auto tryResult1474 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1474)::ok_type
>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) {
auto tryTempError = tryResult1474.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19638, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19636); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19636; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19637, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19634 // XXX Why do we have an assertion here, but not at most other{auto tryResult1474 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1474)::ok_type
>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) {
auto tryTempError = tryResult1474.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19638, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19636); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19636; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19637, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19635 // places using IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1474 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1474)::ok_type
>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) {
auto tryTempError = tryResult1474.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19638, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19636); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19636; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19637, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19636 MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1474 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1474)::ok_type
>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) {
auto tryTempError = tryResult1474.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19638, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19636); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19636; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19637, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19637 IDB_REPORT_INTERNAL_ERR();{auto tryResult1474 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1474)::ok_type
>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) {
auto tryTempError = tryResult1474.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19638, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19636); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19636; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19637, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19638 }){auto tryResult1474 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1474)::ok_type
>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) {
auto tryTempError = tryResult1474.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19638, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19636); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19636; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19637, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
19639
19640 const auto& stmt = *maybeStmt;
19641
19642 const int64_t count = stmt->AsInt64(0);
19643 QM_TRY(OkIf(count >= 0), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, [](const auto) {{auto tryResult1475 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1475)::ok_type>
); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { auto
tryTempError = tryResult1475.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19648, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19646); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19646; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19647, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19644 // XXX Why do we have an assertion here, but not at most other places using{auto tryResult1475 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1475)::ok_type>
); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { auto
tryTempError = tryResult1475.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19648, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19646); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19646; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19647, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19645 // IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1475 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1475)::ok_type>
); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { auto
tryTempError = tryResult1475.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19648, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19646); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19646; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19647, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19646 MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1475 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1475)::ok_type>
); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { auto
tryTempError = tryResult1475.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19648, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19646); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19646; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19647, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19647 IDB_REPORT_INTERNAL_ERR();{auto tryResult1475 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1475)::ok_type>
); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { auto
tryTempError = tryResult1475.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19648, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19646); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19646; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19647, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19648 }){auto tryResult1475 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1475)::ok_type>
); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { auto
tryTempError = tryResult1475.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19648, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19646); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19646; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19647, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
19649
19650 mResponse.count() = count;
19651
19652 return NS_OK;
19653}
19654
19655// static
19656SafeRefPtr<FullIndexMetadata> IndexRequestOpBase::IndexMetadataForParams(
19657 const TransactionBase& aTransaction, const RequestParams& aParams) {
19658 AssertIsOnBackgroundThread();
19659 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::
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::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::TIndexCountParams"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19663); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams"
")"); do { *((volatile int*)__null) = 19663; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19660 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::
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::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::TIndexCountParams"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19663); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams"
")"); do { *((volatile int*)__null) = 19663; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19661 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::
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::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::TIndexCountParams"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19663); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams"
")"); do { *((volatile int*)__null) = 19663; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19662 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::
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::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::TIndexCountParams"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19663); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams"
")"); do { *((volatile int*)__null) = 19663; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19663 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::
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::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::TIndexCountParams"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19663); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams"
")"); do { *((volatile int*)__null) = 19663; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19664
19665 IndexOrObjectStoreId objectStoreId;
19666 IndexOrObjectStoreId indexId;
19667
19668 switch (aParams.type()) {
19669 case RequestParams::TIndexGetParams: {
19670 const IndexGetParams& params = aParams.get_IndexGetParams();
19671 objectStoreId = params.objectStoreId();
19672 indexId = params.indexId();
19673 break;
19674 }
19675
19676 case RequestParams::TIndexGetKeyParams: {
19677 const IndexGetKeyParams& params = aParams.get_IndexGetKeyParams();
19678 objectStoreId = params.objectStoreId();
19679 indexId = params.indexId();
19680 break;
19681 }
19682
19683 case RequestParams::TIndexGetAllParams: {
19684 const IndexGetAllParams& params = aParams.get_IndexGetAllParams();
19685 objectStoreId = params.objectStoreId();
19686 indexId = params.indexId();
19687 break;
19688 }
19689
19690 case RequestParams::TIndexGetAllKeysParams: {
19691 const IndexGetAllKeysParams& params = aParams.get_IndexGetAllKeysParams();
19692 objectStoreId = params.objectStoreId();
19693 indexId = params.indexId();
19694 break;
19695 }
19696
19697 case RequestParams::TIndexCountParams: {
19698 const IndexCountParams& params = aParams.get_IndexCountParams();
19699 objectStoreId = params.objectStoreId();
19700 indexId = params.indexId();
19701 break;
19702 }
19703
19704 default:
19705 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19705); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 19705; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
19706 }
19707
19708 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
19709 aTransaction.GetMetadataForObjectStoreId(objectStoreId);
19710 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata"
")"); do { *((volatile int*)__null) = 19710; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19711
19712 SafeRefPtr<FullIndexMetadata> indexMetadata =
19713 aTransaction.GetMetadataForIndexId(*objectStoreMetadata, indexId);
19714 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",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19714); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 19714; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19715
19716 return indexMetadata;
19717}
19718
19719IndexGetRequestOp::IndexGetRequestOp(SafeRefPtr<TransactionBase> aTransaction,
19720 const int64_t aRequestId,
19721 const RequestParams& aParams, bool aGetAll)
19722 : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams),
19723 mDatabase(Transaction().GetDatabasePtr()),
19724 mOptionalKeyRange(aGetAll
19725 ? aParams.get_IndexGetAllParams().optionalKeyRange()
19726 : Some(aParams.get_IndexGetParams().keyRange())),
19727 mBackgroundParent(Transaction().GetBackgroundParent()),
19728 mLimit(aGetAll ? aParams.get_IndexGetAllParams().limit() : 1),
19729 mGetAll(aGetAll) {
19730 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19731); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams"
")"); do { *((volatile int*)__null) = 19731; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19731 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19731); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams"
")"); do { *((volatile int*)__null) = 19731; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19732 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19732); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase"
")"); do { *((volatile int*)__null) = 19732; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19733 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19733); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { *((volatile int*)__null) = 19733; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19734 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19734); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent"
")"); do { *((volatile int*)__null) = 19734; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19735}
19736
19737nsresult IndexGetRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) {
19738 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19738); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 19738; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19739 aConnection->AssertIsOnConnectionThread();
19740 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19740); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { *((volatile int*)__null) = 19740; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19741 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19741); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1"
")"); do { *((volatile int*)__null) = 19741; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19742
19743 AUTO_PROFILER_LABEL("IndexGetRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19743( "IndexGetRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19744
19745 const auto indexTable = mMetadata->mCommonMetadata.unique()
19746 ? "unique_index_data "_ns
19747 : "index_data "_ns;
19748
19749 QM_TRY_INSPECT(auto tryResult1476 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1476
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19765, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); } const auto& stmt = tryResult1476.inspect
();
19750 const auto& stmt,auto tryResult1476 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1476
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19765, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); } const auto& stmt = tryResult1476.inspect
();
19751 aConnection->BorrowCachedStatement(auto tryResult1476 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1476
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19765, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); } const auto& stmt = tryResult1476.inspect
();
19752 "SELECT file_ids, data "auto tryResult1476 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1476
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19765, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); } const auto& stmt = tryResult1476.inspect
();
19753 "FROM object_data "auto tryResult1476 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1476
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19765, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); } const auto& stmt = tryResult1476.inspect
();
19754 "INNER JOIN "_ns +auto tryResult1476 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1476
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19765, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); } const auto& stmt = tryResult1476.inspect
();
19755 indexTable +auto tryResult1476 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1476
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19765, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); } const auto& stmt = tryResult1476.inspect
();
19756 "AS index_table "auto tryResult1476 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1476
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19765, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); } const auto& stmt = tryResult1476.inspect
();
19757 "ON object_data.object_store_id = "auto tryResult1476 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1476
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19765, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); } const auto& stmt = tryResult1476.inspect
();
19758 "index_table.object_store_id "auto tryResult1476 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1476
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19765, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); } const auto& stmt = tryResult1476.inspect
();
19759 "AND object_data.key = "auto tryResult1476 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1476
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19765, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); } const auto& stmt = tryResult1476.inspect
();
19760 "index_table.object_data_key "auto tryResult1476 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1476
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19765, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); } const auto& stmt = tryResult1476.inspect
();
19761 "WHERE index_id = :"_ns +auto tryResult1476 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1476
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19765, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); } const auto& stmt = tryResult1476.inspect
();
19762 kStmtParamNameIndexId +auto tryResult1476 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1476
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19765, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); } const auto& stmt = tryResult1476.inspect
();
19763 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange,auto tryResult1476 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1476
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19765, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); } const auto& stmt = tryResult1476.inspect
();
19764 kColumnNameValue) +auto tryResult1476 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1476
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19765, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); } const auto& stmt = tryResult1476.inspect
();
19765 (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString())))auto tryResult1476 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1476
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19765, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); } const auto& stmt = tryResult1476.inspect
();
;
19766
19767 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1477 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId
, mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v
<typename decltype(tryResult1477)::ok_type>); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))"
, tryResult1477.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19768, mozilla::dom::quota::Severity::Error); return tryResult1477
.propagateErr(); }}
19768 mMetadata->mCommonMetadata.id()))){auto tryResult1477 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId
, mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v
<typename decltype(tryResult1477)::ok_type>); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))"
, tryResult1477.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19768, mozilla::dom::quota::Severity::Error); return tryResult1477
.propagateErr(); }}
;
19769
19770 if (mOptionalKeyRange.isSome()) {
19771 QM_TRY(MOZ_TO_RESULT({auto tryResult1478 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1478)::ok_type>); if ((__builtin_expect
(!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19772, mozilla::dom::quota::Severity::Error); return tryResult1478
.propagateErr(); }}
19772 BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1478 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1478)::ok_type>); if ((__builtin_expect
(!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19772, mozilla::dom::quota::Severity::Error); return tryResult1478
.propagateErr(); }}
;
19773 }
19774
19775 QM_TRY(CollectWhileHasResult({auto tryResult1481 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1479.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19779, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19787, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1481
)::ok_type>); if ((__builtin_expect(!!(tryResult1481.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1479.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19779, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19787, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19790, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
19776 *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1481 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1479.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19779, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19787, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1481
)::ok_type>); if ((__builtin_expect(!!(tryResult1481.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1479.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19779, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19787, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19790, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
19777 QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult1481 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1479.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19779, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19787, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1481
)::ok_type>); if ((__builtin_expect(!!(tryResult1481.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1479.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19779, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19787, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19790, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
19778 GetStructuredCloneReadInfoFromStatement({auto tryResult1481 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1479.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19779, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19787, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1481
)::ok_type>); if ((__builtin_expect(!!(tryResult1481.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1479.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19779, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19787, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19790, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
19779 &stmt, 1, 0, mDatabase->GetFileManager()));{auto tryResult1481 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1479.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19779, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19787, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1481
)::ok_type>); if ((__builtin_expect(!!(tryResult1481.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1479.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19779, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19787, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19790, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
19780
19781 if (cloneInfo.HasPreprocessInfo()) {{auto tryResult1481 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1479.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19779, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19787, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1481
)::ok_type>); if ((__builtin_expect(!!(tryResult1481.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1479.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19779, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19787, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19790, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
19782 IDB_WARNING("Preprocessing for indexes not yet implemented!");{auto tryResult1481 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1479.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19779, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19787, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1481
)::ok_type>); if ((__builtin_expect(!!(tryResult1481.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1479.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19779, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19787, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19790, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
19783 return Err(NS_ERROR_NOT_IMPLEMENTED);{auto tryResult1481 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1479.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19779, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19787, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1481
)::ok_type>); if ((__builtin_expect(!!(tryResult1481.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1479.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19779, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19787, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19790, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
19784 }{auto tryResult1481 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1479.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19779, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19787, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1481
)::ok_type>); if ((__builtin_expect(!!(tryResult1481.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1479.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19779, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19787, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19790, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
19785
19786 QM_TRY(OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult1481 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1479.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19779, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19787, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1481
)::ok_type>); if ((__builtin_expect(!!(tryResult1481.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1479.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19779, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19787, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19790, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
19787 Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1481 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1479.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19779, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19787, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1481
)::ok_type>); if ((__builtin_expect(!!(tryResult1481.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1479.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19779, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19787, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19790, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
19788
19789 return Ok{};{auto tryResult1481 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1479.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19779, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19787, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1481
)::ok_type>); if ((__builtin_expect(!!(tryResult1481.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1479.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19779, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19787, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19790, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
19790 })){auto tryResult1481 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1479.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19779, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19787, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __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(tryResult1481
)::ok_type>); if ((__builtin_expect(!!(tryResult1481.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1479 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1479.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19779, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); } auto cloneInfo = tryResult1479.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1480 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1480.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19787, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19790, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
;
19791
19792 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19792); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { *((volatile int*)__null) = 19792; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19793
19794 return NS_OK;
19795}
19796
19797// XXX This is more or less a duplicate of ObjectStoreGetRequestOp::GetResponse
19798void IndexGetRequestOp::GetResponse(RequestResponse& aResponse,
19799 size_t* aResponseSize) {
19800 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19800); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { *((volatile int*)__null) = 19800; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19801
19802 auto convertResponse = [this](StructuredCloneReadInfoParent&& info)
19803 -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> {
19804 SerializedStructuredCloneReadInfo result;
19805
19806 result.data().data = info.ReleaseData();
19807
19808 QM_TRY_UNWRAP(result.files(), SerializeStructuredCloneFiles(auto tryResult1482 = (SerializeStructuredCloneFiles( mDatabase
, info.Files(), false)); if ((__builtin_expect(!!(tryResult1482
.isErr()), 0))) { mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, info.Files(), false)"
, tryResult1482.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19809, mozilla::dom::quota::Severity::Error); return tryResult1482
.propagateErr(); } result.files() = tryResult1482.unwrap();
19809 mDatabase, info.Files(), false))auto tryResult1482 = (SerializeStructuredCloneFiles( mDatabase
, info.Files(), false)); if ((__builtin_expect(!!(tryResult1482
.isErr()), 0))) { mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, info.Files(), false)"
, tryResult1482.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19809, mozilla::dom::quota::Severity::Error); return tryResult1482
.propagateErr(); } result.files() = tryResult1482.unwrap();
;
19810
19811 return result;
19812 };
19813
19814 if (mGetAll) {
19815 aResponse = IndexGetAllResponse();
19816 *aResponseSize = 0;
19817
19818 if (!mResponse.IsEmpty()) {
19819 QM_TRY_UNWRAP(auto tryResult1483 = (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(!!(tryResult1483
.isErr()), 0))) { auto tryTempError = tryResult1483.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19830, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1483.unwrap();
19820 aResponse.get_IndexGetAllResponse().cloneInfos(),auto tryResult1483 = (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(!!(tryResult1483
.isErr()), 0))) { auto tryTempError = tryResult1483.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19830, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1483.unwrap();
19821 TransformIntoNewArrayAbortOnErr(auto tryResult1483 = (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(!!(tryResult1483
.isErr()), 0))) { auto tryTempError = tryResult1483.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19830, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1483.unwrap();
19822 std::make_move_iterator(mResponse.begin()),auto tryResult1483 = (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(!!(tryResult1483
.isErr()), 0))) { auto tryTempError = tryResult1483.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19830, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1483.unwrap();
19823 std::make_move_iterator(mResponse.end()),auto tryResult1483 = (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(!!(tryResult1483
.isErr()), 0))) { auto tryTempError = tryResult1483.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19830, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1483.unwrap();
19824 [convertResponse,auto tryResult1483 = (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(!!(tryResult1483
.isErr()), 0))) { auto tryTempError = tryResult1483.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19830, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1483.unwrap();
19825 &aResponseSize](StructuredCloneReadInfoParent&& info) {auto tryResult1483 = (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(!!(tryResult1483
.isErr()), 0))) { auto tryTempError = tryResult1483.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19830, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1483.unwrap();
19826 *aResponseSize += info.Size();auto tryResult1483 = (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(!!(tryResult1483
.isErr()), 0))) { auto tryTempError = tryResult1483.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19830, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1483.unwrap();
19827 return convertResponse(std::move(info));auto tryResult1483 = (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(!!(tryResult1483
.isErr()), 0))) { auto tryTempError = tryResult1483.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19830, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1483.unwrap();
19828 },auto tryResult1483 = (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(!!(tryResult1483
.isErr()), 0))) { auto tryTempError = tryResult1483.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19830, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1483.unwrap();
19829 fallible),auto tryResult1483 = (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(!!(tryResult1483
.isErr()), 0))) { auto tryTempError = tryResult1483.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19830, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1483.unwrap();
19830 QM_VOID, [&aResponse](const nsresult result) { aResponse = result; })auto tryResult1483 = (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(!!(tryResult1483
.isErr()), 0))) { auto tryTempError = tryResult1483.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, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19830, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1483.unwrap();
;
19831 }
19832
19833 return;
19834 }
19835
19836 aResponse = IndexGetResponse();
19837 *aResponseSize = 0;
19838
19839 if (!mResponse.IsEmpty()) {
19840 SerializedStructuredCloneReadInfo& serializedInfo =
19841 aResponse.get_IndexGetResponse().cloneInfo();
19842
19843 *aResponseSize += mResponse[0].Size();
19844 QM_TRY_UNWRAP(serializedInfo, convertResponse(std::move(mResponse[0])),auto tryResult1484 = (convertResponse(std::move(mResponse[0])
)); if ((__builtin_expect(!!(tryResult1484.isErr()), 0))) { auto
tryTempError = tryResult1484.unwrapErr(); mozilla::dom::quota
::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19846, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1484.unwrap
();
19845 QM_VOID,auto tryResult1484 = (convertResponse(std::move(mResponse[0])
)); if ((__builtin_expect(!!(tryResult1484.isErr()), 0))) { auto
tryTempError = tryResult1484.unwrapErr(); mozilla::dom::quota
::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19846, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1484.unwrap
();
19846 [&aResponse](const nsresult result) { aResponse = result; })auto tryResult1484 = (convertResponse(std::move(mResponse[0])
)); if ((__builtin_expect(!!(tryResult1484.isErr()), 0))) { auto
tryTempError = tryResult1484.unwrapErr(); mozilla::dom::quota
::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19846, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1484.unwrap
();
;
19847 }
19848}
19849
19850IndexGetKeyRequestOp::IndexGetKeyRequestOp(
19851 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
19852 const RequestParams& aParams, bool aGetAll)
19853 : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams),
19854 mOptionalKeyRange(
19855 aGetAll ? aParams.get_IndexGetAllKeysParams().optionalKeyRange()
19856 : Some(aParams.get_IndexGetKeyParams().keyRange())),
19857 mLimit(aGetAll ? aParams.get_IndexGetAllKeysParams().limit() : 1),
19858 mGetAll(aGetAll) {
19859 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19860); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams"
")"); do { *((volatile int*)__null) = 19860; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19860 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19860); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams"
")"); do { *((volatile int*)__null) = 19860; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19861 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19861); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { *((volatile int*)__null) = 19861; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19862}
19863
19864nsresult IndexGetKeyRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) {
19865 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19865); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 19865; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19866 aConnection->AssertIsOnConnectionThread();
19867 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19867); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { *((volatile int*)__null) = 19867; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19868 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19868); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1"
")"); do { *((volatile int*)__null) = 19868; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19869
19870 AUTO_PROFILER_LABEL("IndexGetKeyRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19870( "IndexGetKeyRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19871
19872 const bool hasKeyRange = mOptionalKeyRange.isSome();
19873
19874 const auto indexTable = mMetadata->mCommonMetadata.unique()
19875 ? "unique_index_data "_ns
19876 : "index_data "_ns;
19877
19878 const nsCString query =
19879 "SELECT object_data_key "
19880 "FROM "_ns +
19881 indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId +
19882 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) +
19883 (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString());
19884
19885 QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult1485 = (aConnection->BorrowCachedStatement(query
)); if ((__builtin_expect(!!(tryResult1485.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)"
, tryResult1485.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19885, mozilla::dom::quota::Severity::Error); return tryResult1485
.propagateErr(); } const auto& stmt = tryResult1485.inspect
();
;
19886
19887 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1486 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId
, mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v
<typename decltype(tryResult1486)::ok_type>); if ((__builtin_expect
(!!(tryResult1486.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))"
, tryResult1486.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19888, mozilla::dom::quota::Severity::Error); return tryResult1486
.propagateErr(); }}
19888 mMetadata->mCommonMetadata.id()))){auto tryResult1486 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId
, mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v
<typename decltype(tryResult1486)::ok_type>); if ((__builtin_expect
(!!(tryResult1486.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))"
, tryResult1486.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19888, mozilla::dom::quota::Severity::Error); return tryResult1486
.propagateErr(); }}
;
19889
19890 if (hasKeyRange) {
19891 QM_TRY(MOZ_TO_RESULT({auto tryResult1487 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1487)::ok_type>); if ((__builtin_expect
(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1487.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19892, mozilla::dom::quota::Severity::Error); return tryResult1487
.propagateErr(); }}
19892 BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1487 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1487)::ok_type>); if ((__builtin_expect
(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1487.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19892, mozilla::dom::quota::Severity::Error); return tryResult1487
.propagateErr(); }}
;
19893 }
19894
19895 QM_TRY(CollectWhileHasResult({auto tryResult1490 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1488
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1488.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19898, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1489 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1489)::ok_type>);
if ((__builtin_expect(!!(tryResult1489.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1489.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19899, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1490)::ok_type>); if ((__builtin_expect
(!!(tryResult1490.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1488 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1488.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19898, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1489 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1489)::ok_type>); if ((__builtin_expect(!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1489.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19899, mozilla::dom::quota::Severity::Error); return tryResult1489.propagateErr(); }}; return Ok{}; })"
, tryResult1490.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19902, mozilla::dom::quota::Severity::Error); return tryResult1490
.propagateErr(); }}
19896 *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1490 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1488
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1488.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19898, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1489 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1489)::ok_type>);
if ((__builtin_expect(!!(tryResult1489.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1489.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19899, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1490)::ok_type>); if ((__builtin_expect
(!!(tryResult1490.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1488 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1488.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19898, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1489 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1489)::ok_type>); if ((__builtin_expect(!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1489.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19899, mozilla::dom::quota::Severity::Error); return tryResult1489.propagateErr(); }}; return Ok{}; })"
, tryResult1490.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19902, mozilla::dom::quota::Severity::Error); return tryResult1490
.propagateErr(); }}
19897 Key* const key = mResponse.AppendElement(fallible);{auto tryResult1490 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1488
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1488.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19898, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1489 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1489)::ok_type>);
if ((__builtin_expect(!!(tryResult1489.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1489.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19899, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1490)::ok_type>); if ((__builtin_expect
(!!(tryResult1490.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1488 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1488.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19898, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1489 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1489)::ok_type>); if ((__builtin_expect(!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1489.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19899, mozilla::dom::quota::Severity::Error); return tryResult1489.propagateErr(); }}; return Ok{}; })"
, tryResult1490.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19902, mozilla::dom::quota::Severity::Error); return tryResult1490
.propagateErr(); }}
19898 QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1490 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1488
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1488.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19898, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1489 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1489)::ok_type>);
if ((__builtin_expect(!!(tryResult1489.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1489.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19899, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1490)::ok_type>); if ((__builtin_expect
(!!(tryResult1490.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1488 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1488.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19898, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1489 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1489)::ok_type>); if ((__builtin_expect(!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1489.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19899, mozilla::dom::quota::Severity::Error); return tryResult1489.propagateErr(); }}; return Ok{}; })"
, tryResult1490.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19902, mozilla::dom::quota::Severity::Error); return tryResult1490
.propagateErr(); }}
19899 QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult1490 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1488
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1488.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19898, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1489 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1489)::ok_type>);
if ((__builtin_expect(!!(tryResult1489.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1489.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19899, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1490)::ok_type>); if ((__builtin_expect
(!!(tryResult1490.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1488 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1488.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19898, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1489 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1489)::ok_type>); if ((__builtin_expect(!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1489.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19899, mozilla::dom::quota::Severity::Error); return tryResult1489.propagateErr(); }}; return Ok{}; })"
, tryResult1490.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19902, mozilla::dom::quota::Severity::Error); return tryResult1490
.propagateErr(); }}
19900
19901 return Ok{};{auto tryResult1490 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1488
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1488.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19898, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1489 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1489)::ok_type>);
if ((__builtin_expect(!!(tryResult1489.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1489.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19899, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1490)::ok_type>); if ((__builtin_expect
(!!(tryResult1490.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1488 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1488.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19898, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1489 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1489)::ok_type>); if ((__builtin_expect(!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1489.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19899, mozilla::dom::quota::Severity::Error); return tryResult1489.propagateErr(); }}; return Ok{}; })"
, tryResult1490.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19902, mozilla::dom::quota::Severity::Error); return tryResult1490
.propagateErr(); }}
19902 })){auto tryResult1490 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1488
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1488.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19898, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1489 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1489)::ok_type>);
if ((__builtin_expect(!!(tryResult1489.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1489.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19899, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1490)::ok_type>); if ((__builtin_expect
(!!(tryResult1490.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1488 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1488.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19898, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1489 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1489)::ok_type>); if ((__builtin_expect(!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1489.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19899, mozilla::dom::quota::Severity::Error); return tryResult1489.propagateErr(); }}; return Ok{}; })"
, tryResult1490.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19902, mozilla::dom::quota::Severity::Error); return tryResult1490
.propagateErr(); }}
;
19903
19904 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19904); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { *((volatile int*)__null) = 19904; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19905
19906 return NS_OK;
19907}
19908
19909void IndexGetKeyRequestOp::GetResponse(RequestResponse& aResponse,
19910 size_t* aResponseSize) {
19911 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19911); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { *((volatile int*)__null) = 19911; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19912
19913 if (mGetAll) {
19914 aResponse = IndexGetAllKeysResponse();
19915 *aResponseSize = std::accumulate(mResponse.begin(), mResponse.end(), 0u,
19916 [](size_t old, const auto& entry) {
19917 return old + entry.GetBuffer().Length();
19918 });
19919
19920 aResponse.get_IndexGetAllKeysResponse().keys() = std::move(mResponse);
19921
19922 return;
19923 }
19924
19925 aResponse = IndexGetKeyResponse();
19926 *aResponseSize = 0;
19927
19928 if (!mResponse.IsEmpty()) {
19929 *aResponseSize = mResponse[0].GetBuffer().Length();
19930 aResponse.get_IndexGetKeyResponse().key() = std::move(mResponse[0]);
19931 }
19932}
19933
19934nsresult IndexCountRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) {
19935 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19935); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 19935; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19936 aConnection->AssertIsOnConnectionThread();
19937
19938 AUTO_PROFILER_LABEL("IndexCountRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19938( "IndexCountRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19939
19940 const auto indexTable = mMetadata->mCommonMetadata.unique()
19941 ? "unique_index_data "_ns
19942 : "index_data "_ns;
19943
19944 const auto keyRangeClause = MaybeGetBindingClauseForKeyRange(
19945 mParams.optionalKeyRange(), kColumnNameValue);
19946
19947 QM_TRY_INSPECT(auto tryResult1493 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1491)::ok_type>
); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19956, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1492)::ok_type
>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19960, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1493.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 tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19956, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1492.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19960, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; } return Ok{}; })"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19964, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); } const auto& maybeStmt = tryResult1493.
inspect();
19948 const auto& maybeStmt,auto tryResult1493 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1491)::ok_type>
); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19956, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1492)::ok_type
>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19960, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1493.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 tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19956, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1492.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19960, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; } return Ok{}; })"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19964, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); } const auto& maybeStmt = tryResult1493.
inspect();
19949 aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult1493 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1491)::ok_type>
); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19956, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1492)::ok_type
>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19960, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1493.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 tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19956, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1492.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19960, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; } return Ok{}; })"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19964, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); } const auto& maybeStmt = tryResult1493.
inspect();
19950 "SELECT count(*) "auto tryResult1493 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1491)::ok_type>
); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19956, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1492)::ok_type
>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19960, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1493.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 tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19956, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1492.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19960, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; } return Ok{}; })"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19964, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); } const auto& maybeStmt = tryResult1493.
inspect();
19951 "FROM "_ns +auto tryResult1493 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1491)::ok_type>
); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19956, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1492)::ok_type
>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19960, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1493.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 tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19956, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1492.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19960, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; } return Ok{}; })"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19964, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); } const auto& maybeStmt = tryResult1493.
inspect();
19952 indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId +auto tryResult1493 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1491)::ok_type>
); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19956, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1492)::ok_type
>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19960, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1493.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 tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19956, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1492.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19960, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; } return Ok{}; })"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19964, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); } const auto& maybeStmt = tryResult1493.
inspect();
19953 keyRangeClause,auto tryResult1493 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1491)::ok_type>
); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19956, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1492)::ok_type
>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19960, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1493.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 tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19956, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1492.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19960, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; } return Ok{}; })"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19964, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); } const auto& maybeStmt = tryResult1493.
inspect();
19954 [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult1493 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1491)::ok_type>
); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19956, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1492)::ok_type
>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19960, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1493.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 tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19956, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1492.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19960, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; } return Ok{}; })"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19964, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); } const auto& maybeStmt = tryResult1493.
inspect();
19955 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult1493 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1491)::ok_type>
); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19956, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1492)::ok_type
>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19960, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1493.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 tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19956, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1492.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19960, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; } return Ok{}; })"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19964, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); } const auto& maybeStmt = tryResult1493.
inspect();
19956 kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id())));auto tryResult1493 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1491)::ok_type>
); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19956, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1492)::ok_type
>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19960, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1493.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 tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19956, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1492.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19960, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; } return Ok{}; })"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19964, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); } const auto& maybeStmt = tryResult1493.
inspect();
19957
19958 if (self.mParams.optionalKeyRange().isSome()) {auto tryResult1493 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1491)::ok_type>
); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19956, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1492)::ok_type
>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19960, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1493.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 tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19956, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1492.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19960, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; } return Ok{}; })"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19964, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); } const auto& maybeStmt = tryResult1493.
inspect();
19959 QM_TRY(MOZ_TO_RESULT(BindKeyRangeToStatement(auto tryResult1493 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1491)::ok_type>
); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19956, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1492)::ok_type
>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19960, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1493.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 tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19956, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1492.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19960, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; } return Ok{}; })"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19964, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); } const auto& maybeStmt = tryResult1493.
inspect();
19960 self.mParams.optionalKeyRange().ref(), &stmt)));auto tryResult1493 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1491)::ok_type>
); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19956, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1492)::ok_type
>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19960, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1493.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 tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19956, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1492.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19960, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; } return Ok{}; })"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19964, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); } const auto& maybeStmt = tryResult1493.
inspect();
19961 }auto tryResult1493 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1491)::ok_type>
); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19956, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1492)::ok_type
>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19960, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1493.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 tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19956, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1492.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19960, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; } return Ok{}; })"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19964, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); } const auto& maybeStmt = tryResult1493.
inspect();
19962
19963 return Ok{};auto tryResult1493 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1491)::ok_type>
); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19956, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1492)::ok_type
>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19960, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1493.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 tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19956, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1492.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19960, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; } return Ok{}; })"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19964, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); } const auto& maybeStmt = tryResult1493.
inspect();
19964 }))auto tryResult1493 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1491)::ok_type>
); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19956, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1492)::ok_type
>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19960, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1493.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 tryResult1491 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19956, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1492 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1492.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19960, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; } return Ok{}; })"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19964, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); } const auto& maybeStmt = tryResult1493.
inspect();
;
19965
19966 QM_TRY(OkIf(maybeStmt.isSome()), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1494 = (OkIf(maybeStmt.isSome())); 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("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19972, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19970; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19971, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19967 [](const auto) {{auto tryResult1494 = (OkIf(maybeStmt.isSome())); 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("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19972, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19970; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19971, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19968 // XXX Why do we have an assertion here, but not at most other{auto tryResult1494 = (OkIf(maybeStmt.isSome())); 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("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19972, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19970; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19971, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19969 // places using IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1494 = (OkIf(maybeStmt.isSome())); 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("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19972, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19970; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19971, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19970 MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1494 = (OkIf(maybeStmt.isSome())); 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("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19972, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19970; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19971, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19971 IDB_REPORT_INTERNAL_ERR();{auto tryResult1494 = (OkIf(maybeStmt.isSome())); 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("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19972, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19970; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19971, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19972 }){auto tryResult1494 = (OkIf(maybeStmt.isSome())); 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("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19972, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19970; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19971, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
19973
19974 const auto& stmt = *maybeStmt;
19975
19976 const int64_t count = stmt->AsInt64(0);
19977 QM_TRY(OkIf(count >= 0), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, [](const auto) {{auto tryResult1495 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { auto
tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19982, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19980); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19980; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19981, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19978 // XXX Why do we have an assertion here, but not at most other places using{auto tryResult1495 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { auto
tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19982, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19980); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19980; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19981, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19979 // IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1495 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { auto
tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19982, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19980); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19980; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19981, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19980 MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1495 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { auto
tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19982, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19980); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19980; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19981, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19981 IDB_REPORT_INTERNAL_ERR();{auto tryResult1495 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { auto
tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19982, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19980); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19980; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19981, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19982 }){auto tryResult1495 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { auto
tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19982, 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!"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19980); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19980; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19981, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
19983
19984 mResponse.count() = count;
19985
19986 return NS_OK;
19987}
19988
19989template <IDBCursorType CursorType>
19990bool Cursor<CursorType>::CursorOpBase::SendFailureResult(nsresult aResultCode) {
19991 AssertIsOnOwningThread();
19992 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))"
")"); do { *((volatile int*)__null) = 19992; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19993 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19993); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { *((volatile int*)__null) = 19993; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
19994 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19994); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mCurrentlyRunningOp == this"
")"); do { *((volatile int*)__null) = 19994; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19995 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19995); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponseSent"
")"); do { *((volatile int*)__null) = 19995; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19996
19997 if (!IsActorDestroyed()) {
19998 mResponse = ClampResultCode(aResultCode);
19999
20000 // This is an expected race when the transaction is invalidated after
20001 // data is retrieved from database.
20002 //
20003 // TODO: There seem to be other cases when mFiles is non-empty here, which
20004 // have been present before adding cursor preloading, but with cursor
20005 // preloading they have become more frequent (also during startup). One
20006 // possible cause with cursor preloading is to be addressed by Bug 1597191.
20007 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20009); } } while (false)
20008 !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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20009); } } while (false)
20009 "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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20009); } } while (false)
;
20010
20011 // SendResponseInternal will assert when mResponse.type() is
20012 // CursorResponse::Tnsresult and mFiles is non-empty, so we clear mFiles
20013 // here.
20014 mFiles.Clear();
20015
20016 mCursor->SendResponseInternal(mResponse, mFiles);
20017 }
20018
20019#ifdef DEBUG1
20020 mResponseSent = true;
20021#endif
20022 return false;
20023}
20024
20025template <IDBCursorType CursorType>
20026void Cursor<CursorType>::CursorOpBase::Cleanup() {
20027 AssertIsOnOwningThread();
20028 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { *((volatile int*)__null) = 20028; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20029 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponseSent"
")"); do { *((volatile int*)__null) = 20029; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20030
20031 mCursor = nullptr;
20032
20033#ifdef DEBUG1
20034 // A bit hacky but the CursorOp request is not generated in response to a
20035 // child request like most other database operations. Do this to make our
20036 // assertions happy.
20037 NoteActorDestroyed();
20038#endif
20039
20040 TransactionDatabaseOperationBase::Cleanup();
20041}
20042
20043template <IDBCursorType CursorType>
20044ResponseSizeOrError
20045CursorOpBaseHelperBase<CursorType>::PopulateResponseFromStatement(
20046 mozIStorageStatement* const aStmt, const bool aInitializeResponse,
20047 Key* const aOptOutSortKey) {
20048 mOp.Transaction().AssertIsOnConnectionThread();
20049 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20050); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() == CursorResponse::T__None"
")"); do { *((volatile int*)__null) = 20050; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
31
Taking true branch
32
Assuming the condition is true
33
Taking false branch
34
Loop condition is false. Exiting loop
35
Loop condition is false. Exiting loop
54
Taking false branch
55
Loop condition is false. Exiting loop
20050 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20050); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() == CursorResponse::T__None"
")"); do { *((volatile int*)__null) = 20050; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20051 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20052); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() != CursorResponse::T__None"
")"); do { *((volatile int*)__null) = 20052; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
36
Taking false branch
56
Taking true branch
57
Assuming the condition is true
58
Taking false branch
59
Loop condition is false. Exiting loop
20052 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20052); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() != CursorResponse::T__None"
")"); do { *((volatile int*)__null) = 20052; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20053 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20058); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { *((volatile int*)__null) = 20058; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
37
Loop condition is false. Exiting loop
38
Taking false branch
39
Loop condition is false. Exiting loop
60
Loop condition is false. Exiting loop
61
Assuming the condition is false
62
Assuming the condition is false
63
Taking false branch
64
Loop condition is false. Exiting loop
20054 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20058); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { *((volatile int*)__null) = 20058; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20055 (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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20058); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { *((volatile int*)__null) = 20058; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20056 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20058); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { *((volatile int*)__null) = 20058; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20057 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20058); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { *((volatile int*)__null) = 20058; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20058 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20058); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { *((volatile int*)__null) = 20058; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20059
20060 auto populateResponseHelper = PopulateResponseHelper<CursorType>{mOp};
20061 auto previousKey = aOptOutSortKey
39.1
'aOptOutSortKey' is non-null
64.1
'aOptOutSortKey' is non-null
? std::move(*aOptOutSortKey) : Key{};
40
'?' condition is true
41
Object 'previousKey' is moved
65
'?' condition is true
66
Moved-from object 'previousKey' is moved
20062
20063 QM_TRY(MOZ_TO_RESULT(populateResponseHelper.GetKeys(aStmt, aOptOutSortKey))){auto tryResult1496 = (ToResult(populateResponseHelper.GetKeys
(aStmt, aOptOutSortKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1496)::ok_type>); if ((__builtin_expect
(!!(tryResult1496.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(populateResponseHelper.GetKeys(aStmt, aOptOutSortKey))"
, tryResult1496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20063, mozilla::dom::quota::Severity::Error); return tryResult1496
.propagateErr(); }}
;
20064
20065 // aOptOutSortKey must be set iff the cursor is a unique cursor. For unique
20066 // cursors, we need to skip records with the same key. The SQL queries
20067 // currently do not filter these out.
20068 if (aOptOutSortKey
41.1
'aOptOutSortKey' is non-null
&& !previousKey.IsUnset() &&
42
Assuming the condition is true
44
Taking true branch
20069 previousKey == *aOptOutSortKey) {
43
Assuming the condition is true
20070 return 0;
20071 }
20072
20073 QM_TRY(MOZ_TO_RESULT({auto tryResult1497 = (ToResult(populateResponseHelper.MaybeGetCloneInfo
(aStmt, GetCursor()))); static_assert(std::is_empty_v<typename
decltype(tryResult1497)::ok_type>); if ((__builtin_expect
(!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))"
, tryResult1497.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20074, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); }}
20074 populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))){auto tryResult1497 = (ToResult(populateResponseHelper.MaybeGetCloneInfo
(aStmt, GetCursor()))); static_assert(std::is_empty_v<typename
decltype(tryResult1497)::ok_type>); if ((__builtin_expect
(!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))"
, tryResult1497.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20074, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); }}
;
20075
20076 // CAUTION: It is important that only the part of the function above this
20077 // comment may fail, and modifications to the data structure (in particular
20078 // mResponse and mFiles) may only be made below. This is necessary to allow to
20079 // discard entries that were attempted to be preloaded without causing an
20080 // inconsistent state.
20081
20082 if (aInitializeResponse) {
20083 mOp.mResponse = std::remove_reference_t<
20084 decltype(populateResponseHelper.GetTypedResponse(&mOp.mResponse))>();
20085 }
20086
20087 auto& responses = populateResponseHelper.GetTypedResponse(&mOp.mResponse);
20088 auto& response = *responses.AppendElement();
20089
20090 populateResponseHelper.FillKeys(response);
20091 if constexpr (!CursorTypeTraits<CursorType>::IsKeyOnlyCursor) {
20092 populateResponseHelper.MaybeFillCloneInfo(response, &mOp.mFiles);
20093 }
20094
20095 return populateResponseHelper.GetKeySize(response) +
20096 populateResponseHelper.MaybeGetCloneInfoSize(response);
20097}
20098
20099template <IDBCursorType CursorType>
20100void CursorOpBaseHelperBase<CursorType>::PopulateExtraResponses(
20101 mozIStorageStatement* const aStmt, const uint32_t aMaxExtraCount,
20102 const size_t aInitialResponseSize, const nsACString& aOperation,
20103 Key* const aOptPreviousSortKey) {
20104 mOp.AssertIsOnConnectionThread();
20105
20106 const auto extraCount = [&]() -> uint32_t {
48
Calling 'operator()'
20107 auto accumulatedResponseSize = aInitialResponseSize;
20108 uint32_t extraCount = 0;
20109
20110 do {
20111 bool hasResult;
20112 nsresult rv = aStmt->ExecuteStep(&hasResult);
20113 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20113)
) {
49
Assuming the condition is true
50
Taking false branch
20114 // In case of a failure on one step, do not attempt to execute further
20115 // steps, but use the results already populated.
20116
20117 break;
20118 }
20119
20120 if (!hasResult) {
51
Assuming 'hasResult' is true
52
Taking false branch
20121 break;
20122 }
20123
20124 // PopulateResponseFromStatement does not modify the data in case of
20125 // failure, so we can just use the results already populated, and discard
20126 // any remaining entries, and signal overall success. Probably, future
20127 // attempts to access the same entry will fail as well, but it might never
20128 // be accessed by the application.
20129 QM_TRY_INSPECT(auto tryResult1498 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1498
.isErr()), 0))) { auto tryTempError = tryResult1498.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1498.inspect();
53
Calling 'CursorOpBaseHelperBase::PopulateResponseFromStatement'
20130 const auto& responseSize,auto tryResult1498 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1498
.isErr()), 0))) { auto tryTempError = tryResult1498.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1498.inspect();
20131 PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey),auto tryResult1498 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1498
.isErr()), 0))) { auto tryTempError = tryResult1498.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1498.inspect();
20132 extraCount, [](const auto&) {auto tryResult1498 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1498
.isErr()), 0))) { auto tryTempError = tryResult1498.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1498.inspect();
20133 // TODO: Maybe disable preloading for this cursor? The problem willauto tryResult1498 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1498
.isErr()), 0))) { auto tryTempError = tryResult1498.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1498.inspect();
20134 // probably reoccur on the next attempt, and disabling preloadingauto tryResult1498 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1498
.isErr()), 0))) { auto tryTempError = tryResult1498.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1498.inspect();
20135 // will reduce latency. However, if some problematic entry will beauto tryResult1498 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1498
.isErr()), 0))) { auto tryTempError = tryResult1498.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1498.inspect();
20136 // skipped over, after that it might be fine again. To judge this,auto tryResult1498 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1498
.isErr()), 0))) { auto tryTempError = tryResult1498.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1498.inspect();
20137 // the causes for such failures would need to be analyzed moreauto tryResult1498 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1498
.isErr()), 0))) { auto tryTempError = tryResult1498.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1498.inspect();
20138 // thoroughly. Since this seems to be rare, maybe no further actionauto tryResult1498 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1498
.isErr()), 0))) { auto tryTempError = tryResult1498.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1498.inspect();
20139 // is necessary at all.auto tryResult1498 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1498
.isErr()), 0))) { auto tryTempError = tryResult1498.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1498.inspect();
20140 })auto tryResult1498 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1498
.isErr()), 0))) { auto tryTempError = tryResult1498.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1498.inspect();
;
20141
20142 // Check accumulated size of individual responses and maybe break early.
20143 accumulatedResponseSize += responseSize;
20144 if (accumulatedResponseSize > IPC::Channel::kMaximumMessageSize / 2) {
20145 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)
20146 "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)
20147 "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)
20148 "%.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)
20149 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)
20150 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)
20151 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)
20152 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)
;
20153
20154 break;
20155 }
20156
20157 // TODO: Do not count entries skipped for unique cursors.
20158 ++extraCount;
20159 } while (true);
20160
20161 return extraCount;
20162 }();
20163
20164 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)
20165 "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)
20166 "%.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)
20167 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)
20168 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)
20169 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)
;
20170}
20171
20172template <IDBCursorType CursorType>
20173void Cursor<CursorType>::SetOptionalKeyRange(
20174 const Maybe<SerializedKeyRange>& aOptionalKeyRange, bool* const aOpen) {
20175 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpen" ")"
); do { *((volatile int*)__null) = 20175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20176
20177 Key localeAwareRangeBound;
20178
20179 if (aOptionalKeyRange.isSome()) {
20180 const SerializedKeyRange& range = aOptionalKeyRange.ref();
20181
20182 const bool lowerBound = !IsIncreasingOrder(mDirection);
20183 *aOpen =
20184 !range.isOnly() && (lowerBound ? range.lowerOpen() : range.upperOpen());
20185
20186 const auto& bound =
20187 (range.isOnly() || lowerBound) ? range.lower() : range.upper();
20188 if constexpr (IsIndexCursor) {
20189 if (this->IsLocaleAware()) {
20190 // XXX Don't we need to propagate the error?
20191 QM_TRY_UNWRAP(localeAwareRangeBound,auto tryResult1499 = (bound.ToLocaleAwareKey(this->mLocale
)); if ((__builtin_expect(!!(tryResult1499.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1499.unwrapErr
(); mozilla::dom::quota::HandleError("bound.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20192, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } localeAwareRangeBound = tryResult1499.unwrap();
20192 bound.ToLocaleAwareKey(this->mLocale), QM_VOID)auto tryResult1499 = (bound.ToLocaleAwareKey(this->mLocale
)); if ((__builtin_expect(!!(tryResult1499.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1499.unwrapErr
(); mozilla::dom::quota::HandleError("bound.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20192, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } localeAwareRangeBound = tryResult1499.unwrap();
;
20193 } else {
20194 localeAwareRangeBound = bound;
20195 }
20196 } else {
20197 localeAwareRangeBound = bound;
20198 }
20199 } else {
20200 *aOpen = false;
20201 }
20202
20203 this->mLocaleAwareRangeBound.init(std::move(localeAwareRangeBound));
20204}
20205
20206template <IDBCursorType CursorType>
20207void ObjectStoreOpenOpHelper<CursorType>::PrepareKeyConditionClauses(
20208 const nsACString& aDirectionClause, const nsACString& aQueryStart) {
20209 const bool isIncreasingOrder = IsIncreasingOrder(GetCursor().mDirection);
20210
20211 nsAutoCString keyRangeClause;
20212 nsAutoCString continueToKeyRangeClause;
20213 AppendConditionClause(kStmtParamNameKey, kStmtParamNameCurrentKey,
20214 !isIncreasingOrder, false, keyRangeClause);
20215 AppendConditionClause(kStmtParamNameKey, kStmtParamNameCurrentKey,
20216 !isIncreasingOrder, true, continueToKeyRangeClause);
20217
20218 {
20219 bool open;
20220 GetCursor().SetOptionalKeyRange(GetOptionalKeyRange(), &open);
20221
20222 if (GetOptionalKeyRange().isSome() &&
20223 !GetCursor().mLocaleAwareRangeBound->IsUnset()) {
20224 AppendConditionClause(kStmtParamNameKey, kStmtParamNameRangeBound,
20225 isIncreasingOrder, !open, keyRangeClause);
20226 AppendConditionClause(kStmtParamNameKey, kStmtParamNameRangeBound,
20227 isIncreasingOrder, !open, continueToKeyRangeClause);
20228 }
20229 }
20230
20231 const nsAutoCString suffix =
20232 aDirectionClause + kOpenLimit + ":"_ns + kStmtParamNameLimit;
20233
20234 GetCursor().mContinueQueries.init(
20235 aQueryStart + keyRangeClause + suffix,
20236 aQueryStart + continueToKeyRangeClause + suffix);
20237}
20238
20239template <IDBCursorType CursorType>
20240void IndexOpenOpHelper<CursorType>::PrepareIndexKeyConditionClause(
20241 const nsACString& aDirectionClause,
20242 const nsLiteralCString& aObjectDataKeyPrefix, nsAutoCString aQueryStart) {
20243 const bool isIncreasingOrder = IsIncreasingOrder(GetCursor().mDirection);
20244
20245 {
20246 bool open;
20247 GetCursor().SetOptionalKeyRange(GetOptionalKeyRange(), &open);
20248 if (GetOptionalKeyRange().isSome() &&
20249 !GetCursor().mLocaleAwareRangeBound->IsUnset()) {
20250 AppendConditionClause(kColumnNameAliasSortKey, kStmtParamNameRangeBound,
20251 isIncreasingOrder, !open, aQueryStart);
20252 }
20253 }
20254
20255 nsCString continueQuery, continueToQuery, continuePrimaryKeyQuery;
20256
20257 continueToQuery =
20258 aQueryStart + " AND "_ns +
20259 GetSortKeyClause(isIncreasingOrder ? ComparisonOperator::GreaterOrEquals
20260 : ComparisonOperator::LessOrEquals,
20261 kStmtParamNameCurrentKey);
20262
20263 switch (GetCursor().mDirection) {
20264 case IDBCursorDirection::Next:
20265 case IDBCursorDirection::Prev:
20266 continueQuery =
20267 aQueryStart + " AND "_ns +
20268 GetSortKeyClause(isIncreasingOrder
20269 ? ComparisonOperator::GreaterOrEquals
20270 : ComparisonOperator::LessOrEquals,
20271 kStmtParamNameCurrentKey) +
20272 " AND ( "_ns +
20273 GetSortKeyClause(isIncreasingOrder ? ComparisonOperator::GreaterThan
20274 : ComparisonOperator::LessThan,
20275 kStmtParamNameCurrentKey) +
20276 " OR "_ns +
20277 GetKeyClause(aObjectDataKeyPrefix + "object_data_key"_ns,
20278 isIncreasingOrder ? ComparisonOperator::GreaterThan
20279 : ComparisonOperator::LessThan,
20280 kStmtParamNameObjectStorePosition) +
20281 " ) "_ns;
20282
20283 continuePrimaryKeyQuery =
20284 aQueryStart +
20285 " AND ("
20286 "("_ns +
20287 GetSortKeyClause(ComparisonOperator::Equals,
20288 kStmtParamNameCurrentKey) +
20289 " AND "_ns +
20290 GetKeyClause(aObjectDataKeyPrefix + "object_data_key"_ns,
20291 isIncreasingOrder ? ComparisonOperator::GreaterOrEquals
20292 : ComparisonOperator::LessOrEquals,
20293 kStmtParamNameObjectStorePosition) +
20294 ") OR "_ns +
20295 GetSortKeyClause(isIncreasingOrder ? ComparisonOperator::GreaterThan
20296 : ComparisonOperator::LessThan,
20297 kStmtParamNameCurrentKey) +
20298 ")"_ns;
20299 break;
20300
20301 case IDBCursorDirection::Nextunique:
20302 case IDBCursorDirection::Prevunique:
20303 continueQuery =
20304 aQueryStart + " AND "_ns +
20305 GetSortKeyClause(isIncreasingOrder ? ComparisonOperator::GreaterThan
20306 : ComparisonOperator::LessThan,
20307 kStmtParamNameCurrentKey);
20308 break;
20309
20310 default:
20311 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20311); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 20311; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
20312 }
20313
20314 const nsAutoCString suffix =
20315 aDirectionClause + kOpenLimit + ":"_ns + kStmtParamNameLimit;
20316 continueQuery += suffix;
20317 continueToQuery += suffix;
20318 if (!continuePrimaryKeyQuery.IsEmpty()) {
20319 continuePrimaryKeyQuery += suffix;
20320 }
20321
20322 GetCursor().mContinueQueries.init(std::move(continueQuery),
20323 std::move(continueToQuery),
20324 std::move(continuePrimaryKeyQuery));
20325}
20326
20327template <IDBCursorType CursorType>
20328nsresult CommonOpenOpHelper<CursorType>::ProcessStatementSteps(
20329 mozIStorageStatement* const aStmt) {
20330 QM_TRY_INSPECT(const bool& hasResult,auto tryResult1500 = (::mozilla::ToResultInvokeMember( (aStmt
), &::mozilla::detail::DerefedType<decltype(aStmt)>
::ExecuteStep)); if ((__builtin_expect(!!(tryResult1500.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aStmt), &::mozilla::detail::DerefedType<decltype(aStmt)>::ExecuteStep)"
, tryResult1500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20331, mozilla::dom::quota::Severity::Error); return tryResult1500
.propagateErr(); } const bool& hasResult = tryResult1500.
inspect();
26
Taking false branch
20331 MOZ_TO_RESULT_INVOKE_MEMBER(aStmt, ExecuteStep))auto tryResult1500 = (::mozilla::ToResultInvokeMember( (aStmt
), &::mozilla::detail::DerefedType<decltype(aStmt)>
::ExecuteStep)); if ((__builtin_expect(!!(tryResult1500.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aStmt), &::mozilla::detail::DerefedType<decltype(aStmt)>::ExecuteStep)"
, tryResult1500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20331, mozilla::dom::quota::Severity::Error); return tryResult1500
.propagateErr(); } const bool& hasResult = tryResult1500.
inspect();
;
20332
20333 if (!hasResult) {
27
Assuming 'hasResult' is true
28
Taking false branch
20334 SetResponse(void_t{});
20335 return NS_OK;
20336 }
20337
20338 Key previousKey;
20339 auto* optPreviousKey =
20340 IsUnique(GetCursor().mDirection) ? &previousKey : nullptr;
29
'?' condition is true
20341
20342 QM_TRY_INSPECT(const auto& responseSize,auto tryResult1501 = (PopulateResponseFromStatement(aStmt, true
, optPreviousKey)); if ((__builtin_expect(!!(tryResult1501.isErr
()), 0))) { mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, true, optPreviousKey)"
, tryResult1501.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20343, mozilla::dom::quota::Severity::Error); return tryResult1501
.propagateErr(); } const auto& responseSize = tryResult1501
.inspect();
30
Calling 'CursorOpBaseHelperBase::PopulateResponseFromStatement'
45
Returning from 'CursorOpBaseHelperBase::PopulateResponseFromStatement'
46
Taking false branch
20343 PopulateResponseFromStatement(aStmt, true, optPreviousKey))auto tryResult1501 = (PopulateResponseFromStatement(aStmt, true
, optPreviousKey)); if ((__builtin_expect(!!(tryResult1501.isErr
()), 0))) { mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, true, optPreviousKey)"
, tryResult1501.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20343, mozilla::dom::quota::Severity::Error); return tryResult1501
.propagateErr(); } const auto& responseSize = tryResult1501
.inspect();
;
20344
20345 // The degree to which extra responses on OpenOp can actually be used depends
20346 // on the parameters of subsequent ContinueOp operations, see also comment in
20347 // ContinueOp::DoDatabaseWork.
20348 //
20349 // TODO: We should somehow evaluate the effects of this. Maybe use a smaller
20350 // extra count than for ContinueOp?
20351 PopulateExtraResponses(aStmt, GetCursor().mMaxExtraCount, responseSize,
47
Calling 'CursorOpBaseHelperBase::PopulateExtraResponses'
20352 "OpenOp"_ns, optPreviousKey);
20353
20354 return NS_OK;
20355}
20356
20357nsresult OpenOpHelper<IDBCursorType::ObjectStore>::DoDatabaseWork(
20358 DatabaseConnection* aConnection) {
20359 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20359); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 20359; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20360 aConnection->AssertIsOnConnectionThread();
20361 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20361); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId"
")"); do { *((volatile int*)__null) = 20361; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20362
20363 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoObjectStoreDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20363( "Cursor::OpenOp::DoObjectStoreDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20364
20365 const bool usingKeyRange = GetOptionalKeyRange().isSome();
20366
20367 const nsCString queryStart = "SELECT "_ns + kColumnNameKey +
20368 ", file_ids, data "
20369 "FROM object_data "
20370 "WHERE object_store_id = :"_ns +
20371 kStmtParamNameId;
20372
20373 const auto keyRangeClause =
20374 DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
20375 GetOptionalKeyRange(), kColumnNameKey);
20376
20377 const auto& directionClause = MakeDirectionClause(GetCursor().mDirection);
20378
20379 // Note: Changing the number or order of SELECT columns in the query will
20380 // require changes to CursorOpBase::PopulateResponseFromStatement.
20381 const nsCString firstQuery = queryStart + keyRangeClause + directionClause +
20382 kOpenLimit +
20383 IntToCString(1 + GetCursor().mMaxExtraCount);
20384
20385 QM_TRY_INSPECT(const auto& stmt,auto tryResult1502 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1502.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20386, mozilla::dom::quota::Severity::Error); return tryResult1502
.propagateErr(); } const auto& stmt = tryResult1502.inspect
();
20386 aConnection->BorrowCachedStatement(firstQuery))auto tryResult1502 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1502.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20386, mozilla::dom::quota::Severity::Error); return tryResult1502
.propagateErr(); } const auto& stmt = tryResult1502.inspect
();
;
20387
20388 QM_TRY(MOZ_TO_RESULT({auto tryResult1503 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mObjectStoreId))); static_assert(std::is_empty_v
<typename decltype(tryResult1503)::ok_type>); if ((__builtin_expect
(!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))"
, tryResult1503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20389, mozilla::dom::quota::Severity::Error); return tryResult1503
.propagateErr(); }}
20389 stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))){auto tryResult1503 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mObjectStoreId))); static_assert(std::is_empty_v
<typename decltype(tryResult1503)::ok_type>); if ((__builtin_expect
(!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))"
, tryResult1503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20389, mozilla::dom::quota::Severity::Error); return tryResult1503
.propagateErr(); }}
;
20390
20391 if (usingKeyRange) {
20392 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1504 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1504)::ok_type>
); if ((__builtin_expect(!!(tryResult1504.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1504.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20393, mozilla::dom::quota::Severity::Error); return tryResult1504
.propagateErr(); }}
20393 GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1504 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1504)::ok_type>
); if ((__builtin_expect(!!(tryResult1504.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1504.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20393, mozilla::dom::quota::Severity::Error); return tryResult1504
.propagateErr(); }}
;
20394 }
20395
20396 // Now we need to make the query for ContinueOp.
20397 PrepareKeyConditionClauses(directionClause, queryStart);
20398
20399 return ProcessStatementSteps(&*stmt);
20400}
20401
20402nsresult OpenOpHelper<IDBCursorType::ObjectStoreKey>::DoDatabaseWork(
20403 DatabaseConnection* aConnection) {
20404 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20404); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 20404; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20405 aConnection->AssertIsOnConnectionThread();
20406 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20406); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId"
")"); do { *((volatile int*)__null) = 20406; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20407
20408 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoObjectStoreKeyDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20408( "Cursor::OpenOp::DoObjectStoreKeyDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20409
20410 const bool usingKeyRange = GetOptionalKeyRange().isSome();
20411
20412 const nsCString queryStart = "SELECT "_ns + kColumnNameKey +
20413 " FROM object_data "
20414 "WHERE object_store_id = :"_ns +
20415 kStmtParamNameId;
20416
20417 const auto keyRangeClause =
20418 DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
20419 GetOptionalKeyRange(), kColumnNameKey);
20420
20421 const auto& directionClause = MakeDirectionClause(GetCursor().mDirection);
20422
20423 // Note: Changing the number or order of SELECT columns in the query will
20424 // require changes to CursorOpBase::PopulateResponseFromStatement.
20425 const nsCString firstQuery =
20426 queryStart + keyRangeClause + directionClause + kOpenLimit + "1"_ns;
20427
20428 QM_TRY_INSPECT(const auto& stmt,auto tryResult1505 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1505.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1505.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20429, mozilla::dom::quota::Severity::Error); return tryResult1505
.propagateErr(); } const auto& stmt = tryResult1505.inspect
();
20429 aConnection->BorrowCachedStatement(firstQuery))auto tryResult1505 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1505.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1505.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20429, mozilla::dom::quota::Severity::Error); return tryResult1505
.propagateErr(); } const auto& stmt = tryResult1505.inspect
();
;
20430
20431 QM_TRY(MOZ_TO_RESULT({auto tryResult1506 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mObjectStoreId))); static_assert(std::is_empty_v
<typename decltype(tryResult1506)::ok_type>); if ((__builtin_expect
(!!(tryResult1506.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))"
, tryResult1506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20432, mozilla::dom::quota::Severity::Error); return tryResult1506
.propagateErr(); }}
20432 stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))){auto tryResult1506 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mObjectStoreId))); static_assert(std::is_empty_v
<typename decltype(tryResult1506)::ok_type>); if ((__builtin_expect
(!!(tryResult1506.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))"
, tryResult1506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20432, mozilla::dom::quota::Severity::Error); return tryResult1506
.propagateErr(); }}
;
20433
20434 if (usingKeyRange) {
20435 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1507 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1507)::ok_type>
); if ((__builtin_expect(!!(tryResult1507.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1507.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20436, mozilla::dom::quota::Severity::Error); return tryResult1507
.propagateErr(); }}
20436 GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1507 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1507)::ok_type>
); if ((__builtin_expect(!!(tryResult1507.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1507.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20436, mozilla::dom::quota::Severity::Error); return tryResult1507
.propagateErr(); }}
;
20437 }
20438
20439 // Now we need to make the query to get the next match.
20440 PrepareKeyConditionClauses(directionClause, queryStart);
20441
20442 return ProcessStatementSteps(&*stmt);
20443}
20444
20445nsresult OpenOpHelper<IDBCursorType::Index>::DoDatabaseWork(
20446 DatabaseConnection* aConnection) {
20447 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20447); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 20447; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20448 aConnection->AssertIsOnConnectionThread();
20449 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20449); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId"
")"); do { *((volatile int*)__null) = 20449; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20450 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20450); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mIndexId"
")"); do { *((volatile int*)__null) = 20450; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20451
20452 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoIndexDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20452( "Cursor::OpenOp::DoIndexDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20453
20454 const bool usingKeyRange = GetOptionalKeyRange().isSome();
20455
20456 const auto indexTable =
20457 GetCursor().mUniqueIndex ? "unique_index_data"_ns : "index_data"_ns;
20458
20459 // The result of MakeColumnPairSelectionList is stored in a local variable,
20460 // since inlining it into the next statement causes a crash on some Mac OS X
20461 // builds (see https://bugzilla.mozilla.org/show_bug.cgi?id=1168606#c110).
20462 const auto columnPairSelectionList = MakeColumnPairSelectionList(
20463 "index_table.value"_ns, "index_table.value_locale"_ns,
20464 kColumnNameAliasSortKey, GetCursor().IsLocaleAware());
20465 const nsCString sortColumnAlias =
20466 "SELECT "_ns + columnPairSelectionList + ", "_ns;
20467
20468 const nsAutoCString queryStart = sortColumnAlias +
20469 "index_table.object_data_key, "
20470 "object_data.file_ids, "
20471 "object_data.data "
20472 "FROM "_ns +
20473 indexTable +
20474 " AS index_table "
20475 "JOIN object_data "
20476 "ON index_table.object_store_id = "
20477 "object_data.object_store_id "
20478 "AND index_table.object_data_key = "
20479 "object_data.key "
20480 "WHERE index_table.index_id = :"_ns +
20481 kStmtParamNameId;
20482
20483 const auto keyRangeClause =
20484 DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
20485 GetOptionalKeyRange(), kColumnNameAliasSortKey);
20486
20487 nsAutoCString directionClause = " ORDER BY "_ns + kColumnNameAliasSortKey;
20488
20489 switch (GetCursor().mDirection) {
20490 case IDBCursorDirection::Next:
20491 case IDBCursorDirection::Nextunique:
20492 directionClause.AppendLiteral(" ASC, index_table.object_data_key ASC");
20493 break;
20494
20495 case IDBCursorDirection::Prev:
20496 directionClause.AppendLiteral(" DESC, index_table.object_data_key DESC");
20497 break;
20498
20499 case IDBCursorDirection::Prevunique:
20500 directionClause.AppendLiteral(" DESC, index_table.object_data_key ASC");
20501 break;
20502
20503 default:
20504 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20504); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 20504; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
20505 }
20506
20507 // Note: Changing the number or order of SELECT columns in the query will
20508 // require changes to CursorOpBase::PopulateResponseFromStatement.
20509 const nsCString firstQuery = queryStart + keyRangeClause + directionClause +
20510 kOpenLimit +
20511 IntToCString(1 + GetCursor().mMaxExtraCount);
20512
20513 QM_TRY_INSPECT(const auto& stmt,auto tryResult1508 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1508.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20514, mozilla::dom::quota::Severity::Error); return tryResult1508
.propagateErr(); } const auto& stmt = tryResult1508.inspect
();
20514 aConnection->BorrowCachedStatement(firstQuery))auto tryResult1508 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1508.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20514, mozilla::dom::quota::Severity::Error); return tryResult1508
.propagateErr(); } const auto& stmt = tryResult1508.inspect
();
;
20515
20516 QM_TRY(MOZ_TO_RESULT({auto tryResult1509 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))"
, tryResult1509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20517, mozilla::dom::quota::Severity::Error); return tryResult1509
.propagateErr(); }}
20517 stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))){auto tryResult1509 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))"
, tryResult1509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20517, mozilla::dom::quota::Severity::Error); return tryResult1509
.propagateErr(); }}
;
20518
20519 if (usingKeyRange) {
20520 if (GetCursor().IsLocaleAware()) {
20521 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1510 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1510
)::ok_type>); if ((__builtin_expect(!!(tryResult1510.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))"
, tryResult1510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20522, mozilla::dom::quota::Severity::Error); return tryResult1510
.propagateErr(); }}
20522 GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))){auto tryResult1510 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1510
)::ok_type>); if ((__builtin_expect(!!(tryResult1510.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))"
, tryResult1510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20522, mozilla::dom::quota::Severity::Error); return tryResult1510
.propagateErr(); }}
;
20523 } else {
20524 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1511 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1511)::ok_type>
); if ((__builtin_expect(!!(tryResult1511.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20525, mozilla::dom::quota::Severity::Error); return tryResult1511
.propagateErr(); }}
20525 GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1511 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1511)::ok_type>
); if ((__builtin_expect(!!(tryResult1511.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20525, mozilla::dom::quota::Severity::Error); return tryResult1511
.propagateErr(); }}
;
20526 }
20527 }
20528
20529 // TODO: At least the last two statements are almost the same in all
20530 // DoDatabaseWork variants, consider removing this duplication.
20531
20532 // Now we need to make the query to get the next match.
20533 PrepareKeyConditionClauses(directionClause, std::move(queryStart));
20534
20535 return ProcessStatementSteps(&*stmt);
20536}
20537
20538nsresult OpenOpHelper<IDBCursorType::IndexKey>::DoDatabaseWork(
20539 DatabaseConnection* aConnection) {
20540 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20540); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 20540; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10
Taking false branch
11
Loop condition is false. Exiting loop
20541 aConnection->AssertIsOnConnectionThread();
20542 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20542); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId"
")"); do { *((volatile int*)__null) = 20542; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12
Assuming field 'mObjectStoreId' is not equal to 0
13
Taking false branch
14
Loop condition is false. Exiting loop
20543 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20543); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mIndexId"
")"); do { *((volatile int*)__null) = 20543; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15
Assuming field 'mIndexId' is not equal to 0
16
Taking false branch
17
Loop condition is false. Exiting loop
20544
20545 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoIndexKeyDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20545( "Cursor::OpenOp::DoIndexKeyDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20546
20547 const bool usingKeyRange = GetOptionalKeyRange().isSome();
20548
20549 const auto table =
20550 GetCursor().mUniqueIndex ? "unique_index_data"_ns : "index_data"_ns;
18
Assuming field 'mUniqueIndex' is false
19
'?' condition is false
20551
20552 // The result of MakeColumnPairSelectionList is stored in a local variable,
20553 // since inlining it into the next statement causes a crash on some Mac OS X
20554 // builds (see https://bugzilla.mozilla.org/show_bug.cgi?id=1168606#c110).
20555 const auto columnPairSelectionList = MakeColumnPairSelectionList(
20556 "value"_ns, "value_locale"_ns, kColumnNameAliasSortKey,
20557 GetCursor().IsLocaleAware());
20558 const nsCString sortColumnAlias =
20559 "SELECT "_ns + columnPairSelectionList + ", "_ns;
20560
20561 const nsAutoCString queryStart = sortColumnAlias +
20562 "object_data_key "
20563 " FROM "_ns +
20564 table + " WHERE index_id = :"_ns +
20565 kStmtParamNameId;
20566
20567 const auto keyRangeClause =
20568 DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
20569 GetOptionalKeyRange(), kColumnNameAliasSortKey);
20570
20571 nsAutoCString directionClause = " ORDER BY "_ns + kColumnNameAliasSortKey;
20572
20573 switch (GetCursor().mDirection) {
20
Control jumps to 'case Prevunique:' at line 20583
20574 case IDBCursorDirection::Next:
20575 case IDBCursorDirection::Nextunique:
20576 directionClause.AppendLiteral(" ASC, object_data_key ASC");
20577 break;
20578
20579 case IDBCursorDirection::Prev:
20580 directionClause.AppendLiteral(" DESC, object_data_key DESC");
20581 break;
20582
20583 case IDBCursorDirection::Prevunique:
20584 directionClause.AppendLiteral(" DESC, object_data_key ASC");
20585 break;
21
Execution continues on line 20594
20586
20587 default:
20588 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20588); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 20588; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
20589 }
20590
20591 // Note: Changing the number or order of SELECT columns in the query will
20592 // require changes to CursorOpBase::PopulateResponseFromStatement.
20593 const nsCString firstQuery =
20594 queryStart + keyRangeClause + directionClause + kOpenLimit + "1"_ns;
20595
20596 QM_TRY_INSPECT(const auto& stmt,auto tryResult1512 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1512.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1512.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20597, mozilla::dom::quota::Severity::Error); return tryResult1512
.propagateErr(); } const auto& stmt = tryResult1512.inspect
();
22
Taking false branch
20597 aConnection->BorrowCachedStatement(firstQuery))auto tryResult1512 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1512.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1512.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20597, mozilla::dom::quota::Severity::Error); return tryResult1512
.propagateErr(); } const auto& stmt = tryResult1512.inspect
();
;
20598
20599 QM_TRY(MOZ_TO_RESULT({auto tryResult1513 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1513)::ok_type>); if ((__builtin_expect
(!!(tryResult1513.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))"
, tryResult1513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20600, mozilla::dom::quota::Severity::Error); return tryResult1513
.propagateErr(); }}
23
Taking false branch
20600 stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))){auto tryResult1513 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1513)::ok_type>); if ((__builtin_expect
(!!(tryResult1513.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))"
, tryResult1513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20600, mozilla::dom::quota::Severity::Error); return tryResult1513
.propagateErr(); }}
;
20601
20602 if (usingKeyRange
23.1
'usingKeyRange' is false
) {
24
Taking false branch
20603 if (GetCursor().IsLocaleAware()) {
20604 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1514 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1514
)::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))"
, tryResult1514.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20605, mozilla::dom::quota::Severity::Error); return tryResult1514
.propagateErr(); }}
20605 GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))){auto tryResult1514 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1514
)::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))"
, tryResult1514.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20605, mozilla::dom::quota::Severity::Error); return tryResult1514
.propagateErr(); }}
;
20606 } else {
20607 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1515 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1515)::ok_type>
); if ((__builtin_expect(!!(tryResult1515.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1515.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20608, mozilla::dom::quota::Severity::Error); return tryResult1515
.propagateErr(); }}
20608 GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1515 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1515)::ok_type>
); if ((__builtin_expect(!!(tryResult1515.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1515.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20608, mozilla::dom::quota::Severity::Error); return tryResult1515
.propagateErr(); }}
;
20609 }
20610 }
20611
20612 // Now we need to make the query to get the next match.
20613 PrepareKeyConditionClauses(directionClause, std::move(queryStart));
20614
20615 return ProcessStatementSteps(&*stmt);
25
Calling 'CommonOpenOpHelper::ProcessStatementSteps'
20616}
20617
20618template <IDBCursorType CursorType>
20619nsresult Cursor<CursorType>::OpenOp::DoDatabaseWork(
20620 DatabaseConnection* aConnection) {
20621 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20621); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 20621; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
1
Assuming 'aConnection' is non-null
2
Taking false branch
3
Loop condition is false. Exiting loop
20622 aConnection->AssertIsOnConnectionThread();
20623 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20623); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { *((volatile int*)__null) = 20623; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4
Taking false branch
5
Loop condition is false. Exiting loop
20624 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20624); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries"
")"); do { *((volatile int*)__null) = 20624; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
6
Assuming the condition is true
7
Taking false branch
8
Loop condition is false. Exiting loop
20625
20626 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20626( "Cursor::OpenOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20627
20628 auto helper = OpenOpHelper<CursorType>{*this};
20629 const auto rv = helper.DoDatabaseWork(aConnection);
9
Calling 'OpenOpHelper::DoDatabaseWork'
20630 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20630)
) {
20631 return rv;
20632 }
20633
20634 return NS_OK;
20635}
20636
20637template <IDBCursorType CursorType>
20638nsresult Cursor<CursorType>::CursorOpBase::SendSuccessResult() {
20639 AssertIsOnOwningThread();
20640 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20640); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { *((volatile int*)__null) = 20640; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20641 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20641); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mCurrentlyRunningOp == this"
")"); do { *((volatile int*)__null) = 20641; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20642 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.type() != CursorResponse::T__None"
")"); do { *((volatile int*)__null) = 20642; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20643
20644 if (IsActorDestroyed()) {
20645 return NS_ERROR_DOM_INDEXEDDB_ABORT_ERR;
20646 }
20647
20648 mCursor->SendResponseInternal(mResponse, mFiles);
20649
20650#ifdef DEBUG1
20651 mResponseSent = true;
20652#endif
20653 return NS_OK;
20654}
20655
20656template <IDBCursorType CursorType>
20657nsresult Cursor<CursorType>::ContinueOp::DoDatabaseWork(
20658 DatabaseConnection* aConnection) {
20659 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20659); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 20659; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20660 aConnection->AssertIsOnConnectionThread();
20661 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20661); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { *((volatile int*)__null) = 20661; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20662 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20662); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mObjectStoreId"
")"); do { *((volatile int*)__null) = 20662; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20663 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20663); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinueQuery.IsEmpty()"
")"); do { *((volatile int*)__null) = 20663; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20664 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinueToQuery.IsEmpty()"
")"); do { *((volatile int*)__null) = 20664; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20665 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20665); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCurrentPosition.mKey.IsUnset()"
")"); do { *((volatile int*)__null) = 20665; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20666
20667 if constexpr (IsIndexCursor) {
20668 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20671); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
")"); do { *((volatile int*)__null) = 20671; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20669 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20671); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
")"); do { *((volatile int*)__null) = 20671; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20670 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20671); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
")"); do { *((volatile int*)__null) = 20671; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20671 !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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20671); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
")"); do { *((volatile int*)__null) = 20671; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20672 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20672); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mIndexId"
")"); do { *((volatile int*)__null) = 20672; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20673 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCurrentPosition.mObjectStoreKey.IsUnset()"
")"); do { *((volatile int*)__null) = 20673; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20674 }
20675
20676 AUTO_PROFILER_LABEL("Cursor::ContinueOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20676( "Cursor::ContinueOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20677
20678 // We need to pick a query based on whether or not a key was passed to the
20679 // continue function. If not we'll grab the next item in the database that
20680 // is greater than (or less than, if we're running a PREV cursor) the current
20681 // key. If a key was passed we'll grab the next item in the database that is
20682 // greater than (or less than, if we're running a PREV cursor) or equal to the
20683 // key that was specified.
20684 //
20685 // TODO: The description above is not complete, it does not take account of
20686 // ContinuePrimaryKey nor Advance.
20687 //
20688 // Note: Changing the number or order of SELECT columns in the query will
20689 // require changes to CursorOpBase::PopulateResponseFromStatement.
20690
20691 const uint32_t advanceCount =
20692 mParams.type() == CursorRequestParams::TAdvanceParams
20693 ? mParams.get_AdvanceParams().count()
20694 : 1;
20695 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20695); AnnotateMozCrashReason("MOZ_ASSERT" "(" "advanceCount > 0"
")"); do { *((volatile int*)__null) = 20695; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20696
20697 bool hasContinueKey = false;
20698 bool hasContinuePrimaryKey = false;
20699
20700 auto explicitContinueKey = Key{};
20701
20702 switch (mParams.type()) {
20703 case CursorRequestParams::TContinueParams:
20704 if (!mParams.get_ContinueParams().key().IsUnset()) {
20705 hasContinueKey = true;
20706 explicitContinueKey = mParams.get_ContinueParams().key();
20707 }
20708 break;
20709 case CursorRequestParams::TContinuePrimaryKeyParams:
20710 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()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().key().IsUnset()"
")"); do { *((volatile int*)__null) = 20710; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20711 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20712); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()"
")"); do { *((volatile int*)__null) = 20712; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
20712 !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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20712); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()"
")"); do { *((volatile int*)__null) = 20712; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20713 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20714); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev"
")"); do { *((volatile int*)__null) = 20714; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
20714 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20714); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev"
")"); do { *((volatile int*)__null) = 20714; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20715 hasContinueKey = true;
20716 hasContinuePrimaryKey = true;
20717 explicitContinueKey = mParams.get_ContinuePrimaryKeyParams().key();
20718 break;
20719 case CursorRequestParams::TAdvanceParams:
20720 break;
20721 default:
20722 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20722); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 20722; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
20723 }
20724
20725 // TODO: Whether it makes sense to preload depends on the kind of the
20726 // subsequent operations, not of the current operation. We could assume that
20727 // the subsequent operations are:
20728 // - the same as the current operation (with the same parameter values)
20729 // - as above, except for Advance, where we assume the count will be 1 on the
20730 // next call
20731 // - basic operations (Advance with count 1 or Continue-without-key)
20732 //
20733 // For now, we implement the second option for now (which correspond to
20734 // !hasContinueKey).
20735 //
20736 // Based on that, we could in both cases either preload for any assumed
20737 // subsequent operations, or only for the basic operations. For now, we
20738 // preload only for an assumed basic operation. Other operations would require
20739 // more work on the client side for invalidation, and may not make any sense
20740 // at all.
20741 const uint32_t maxExtraCount = hasContinueKey ? 0 : mCursor->mMaxExtraCount;
20742
20743 QM_TRY_INSPECT(const auto& stmt,auto tryResult1516 = (aConnection->BorrowCachedStatement( mCursor
->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey
))); if ((__builtin_expect(!!(tryResult1516.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))"
, tryResult1516.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20746, mozilla::dom::quota::Severity::Error); return tryResult1516
.propagateErr(); } const auto& stmt = tryResult1516.inspect
();
20744 aConnection->BorrowCachedStatement(auto tryResult1516 = (aConnection->BorrowCachedStatement( mCursor
->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey
))); if ((__builtin_expect(!!(tryResult1516.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))"
, tryResult1516.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20746, mozilla::dom::quota::Severity::Error); return tryResult1516
.propagateErr(); } const auto& stmt = tryResult1516.inspect
();
20745 mCursor->mContinueQueries->GetContinueQuery(auto tryResult1516 = (aConnection->BorrowCachedStatement( mCursor
->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey
))); if ((__builtin_expect(!!(tryResult1516.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))"
, tryResult1516.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20746, mozilla::dom::quota::Severity::Error); return tryResult1516
.propagateErr(); } const auto& stmt = tryResult1516.inspect
();
20746 hasContinueKey, hasContinuePrimaryKey)))auto tryResult1516 = (aConnection->BorrowCachedStatement( mCursor
->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey
))); if ((__builtin_expect(!!(tryResult1516.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))"
, tryResult1516.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20746, mozilla::dom::quota::Severity::Error); return tryResult1516
.propagateErr(); } const auto& stmt = tryResult1516.inspect
();
;
20747
20748 QM_TRY(MOZ_TO_RESULT(stmt->BindUTF8StringByName({auto tryResult1517 = (ToResult(stmt->BindUTF8StringByName
( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->
mMaxExtraCount)))); static_assert(std::is_empty_v<typename
decltype(tryResult1517)::ok_type>); if ((__builtin_expect
(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))"
, tryResult1517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20750, mozilla::dom::quota::Severity::Error); return tryResult1517
.propagateErr(); }}
20749 kStmtParamNameLimit,{auto tryResult1517 = (ToResult(stmt->BindUTF8StringByName
( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->
mMaxExtraCount)))); static_assert(std::is_empty_v<typename
decltype(tryResult1517)::ok_type>); if ((__builtin_expect
(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))"
, tryResult1517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20750, mozilla::dom::quota::Severity::Error); return tryResult1517
.propagateErr(); }}
20750 IntToCString(advanceCount + mCursor->mMaxExtraCount)))){auto tryResult1517 = (ToResult(stmt->BindUTF8StringByName
( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->
mMaxExtraCount)))); static_assert(std::is_empty_v<typename
decltype(tryResult1517)::ok_type>); if ((__builtin_expect
(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))"
, tryResult1517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20750, mozilla::dom::quota::Severity::Error); return tryResult1517
.propagateErr(); }}
;
20751
20752 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameId, mCursor->Id()))){auto tryResult1518 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, mCursor->Id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1518)::ok_type>); if ((__builtin_expect
(!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, mCursor->Id()))"
, tryResult1518.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20752, mozilla::dom::quota::Severity::Error); return tryResult1518
.propagateErr(); }}
;
20753
20754 // Bind current key.
20755 const auto& continueKey =
20756 hasContinueKey ? explicitContinueKey
20757 : mCurrentPosition.GetSortKey(mCursor->IsLocaleAware());
20758 QM_TRY(MOZ_TO_RESULT({auto tryResult1519 = (ToResult(continueKey.BindToStatement(&
*stmt, kStmtParamNameCurrentKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1519)::ok_type>); if ((__builtin_expect
(!!(tryResult1519.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))"
, tryResult1519.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20759, mozilla::dom::quota::Severity::Error); return tryResult1519
.propagateErr(); }}
20759 continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))){auto tryResult1519 = (ToResult(continueKey.BindToStatement(&
*stmt, kStmtParamNameCurrentKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1519)::ok_type>); if ((__builtin_expect
(!!(tryResult1519.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))"
, tryResult1519.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20759, mozilla::dom::quota::Severity::Error); return tryResult1519
.propagateErr(); }}
;
20760
20761 // Bind range bound if it is specified.
20762 if (!mCursor->mLocaleAwareRangeBound->IsUnset()) {
20763 QM_TRY(MOZ_TO_RESULT(mCursor->mLocaleAwareRangeBound->BindToStatement({auto tryResult1520 = (ToResult(mCursor->mLocaleAwareRangeBound
->BindToStatement( &*stmt, kStmtParamNameRangeBound)))
; static_assert(std::is_empty_v<typename decltype(tryResult1520
)::ok_type>); if ((__builtin_expect(!!(tryResult1520.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCursor->mLocaleAwareRangeBound->BindToStatement( &*stmt, kStmtParamNameRangeBound))"
, tryResult1520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20764, mozilla::dom::quota::Severity::Error); return tryResult1520
.propagateErr(); }}
20764 &*stmt, kStmtParamNameRangeBound))){auto tryResult1520 = (ToResult(mCursor->mLocaleAwareRangeBound
->BindToStatement( &*stmt, kStmtParamNameRangeBound)))
; static_assert(std::is_empty_v<typename decltype(tryResult1520
)::ok_type>); if ((__builtin_expect(!!(tryResult1520.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCursor->mLocaleAwareRangeBound->BindToStatement( &*stmt, kStmtParamNameRangeBound))"
, tryResult1520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20764, mozilla::dom::quota::Severity::Error); return tryResult1520
.propagateErr(); }}
;
20765 }
20766
20767 // Bind object store position if duplicates are allowed and we're not
20768 // continuing to a specific key.
20769 if constexpr (IsIndexCursor) {
20770 if (!hasContinueKey && (mCursor->mDirection == IDBCursorDirection::Next ||
20771 mCursor->mDirection == IDBCursorDirection::Prev)) {
20772 QM_TRY(MOZ_TO_RESULT(mCurrentPosition.mObjectStoreKey.BindToStatement({auto tryResult1521 = (ToResult(mCurrentPosition.mObjectStoreKey
.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1521
)::ok_type>); if ((__builtin_expect(!!(tryResult1521.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCurrentPosition.mObjectStoreKey.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1521.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20773, mozilla::dom::quota::Severity::Error); return tryResult1521
.propagateErr(); }}
20773 &*stmt, kStmtParamNameObjectStorePosition))){auto tryResult1521 = (ToResult(mCurrentPosition.mObjectStoreKey
.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1521
)::ok_type>); if ((__builtin_expect(!!(tryResult1521.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCurrentPosition.mObjectStoreKey.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1521.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20773, mozilla::dom::quota::Severity::Error); return tryResult1521
.propagateErr(); }}
;
20774 } else if (hasContinuePrimaryKey) {
20775 QM_TRY(MOZ_TO_RESULT({auto tryResult1522 = (ToResult(mParams.get_ContinuePrimaryKeyParams
().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1522
)::ok_type>); if ((__builtin_expect(!!(tryResult1522.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20777, mozilla::dom::quota::Severity::Error); return tryResult1522
.propagateErr(); }}
20776 mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement({auto tryResult1522 = (ToResult(mParams.get_ContinuePrimaryKeyParams
().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1522
)::ok_type>); if ((__builtin_expect(!!(tryResult1522.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20777, mozilla::dom::quota::Severity::Error); return tryResult1522
.propagateErr(); }}
20777 &*stmt, kStmtParamNameObjectStorePosition))){auto tryResult1522 = (ToResult(mParams.get_ContinuePrimaryKeyParams
().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1522
)::ok_type>); if ((__builtin_expect(!!(tryResult1522.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20777, mozilla::dom::quota::Severity::Error); return tryResult1522
.propagateErr(); }}
;
20778 }
20779 }
20780
20781 // TODO: Why do we query the records we don't need and skip them here, rather
20782 // than using a OFFSET clause in the query?
20783 for (uint32_t index = 0; index < advanceCount; index++) {
20784 QM_TRY_INSPECT(const bool& hasResult,auto tryResult1523 = (::mozilla::ToResultInvokeMember( (&
*stmt), &::mozilla::detail::DerefedType<decltype(&
*stmt)>::ExecuteStep)); if ((__builtin_expect(!!(tryResult1523
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (&*stmt), &::mozilla::detail::DerefedType<decltype(&*stmt)>::ExecuteStep)"
, tryResult1523.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20785, mozilla::dom::quota::Severity::Error); return tryResult1523
.propagateErr(); } const bool& hasResult = tryResult1523.
inspect();
20785 MOZ_TO_RESULT_INVOKE_MEMBER(&*stmt, ExecuteStep))auto tryResult1523 = (::mozilla::ToResultInvokeMember( (&
*stmt), &::mozilla::detail::DerefedType<decltype(&
*stmt)>::ExecuteStep)); if ((__builtin_expect(!!(tryResult1523
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (&*stmt), &::mozilla::detail::DerefedType<decltype(&*stmt)>::ExecuteStep)"
, tryResult1523.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20785, mozilla::dom::quota::Severity::Error); return tryResult1523
.propagateErr(); } const bool& hasResult = tryResult1523.
inspect();
;
20786
20787 if (!hasResult) {
20788 mResponse = void_t();
20789 return NS_OK;
20790 }
20791 }
20792
20793 Key previousKey;
20794 auto* const optPreviousKey =
20795 IsUnique(mCursor->mDirection) ? &previousKey : nullptr;
20796
20797 auto helper = CursorOpBaseHelperBase<CursorType>{*this};
20798 QM_TRY_INSPECT(const auto& responseSize, helper.PopulateResponseFromStatement(auto tryResult1524 = (helper.PopulateResponseFromStatement( &
*stmt, true, optPreviousKey)); if ((__builtin_expect(!!(tryResult1524
.isErr()), 0))) { mozilla::dom::quota::HandleError("helper.PopulateResponseFromStatement( &*stmt, true, optPreviousKey)"
, tryResult1524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20799, mozilla::dom::quota::Severity::Error); return tryResult1524
.propagateErr(); } const auto& responseSize = tryResult1524
.inspect();
20799 &*stmt, true, optPreviousKey))auto tryResult1524 = (helper.PopulateResponseFromStatement( &
*stmt, true, optPreviousKey)); if ((__builtin_expect(!!(tryResult1524
.isErr()), 0))) { mozilla::dom::quota::HandleError("helper.PopulateResponseFromStatement( &*stmt, true, optPreviousKey)"
, tryResult1524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20799, mozilla::dom::quota::Severity::Error); return tryResult1524
.propagateErr(); } const auto& responseSize = tryResult1524
.inspect();
;
20800
20801 helper.PopulateExtraResponses(&*stmt, maxExtraCount, responseSize,
20802 "ContinueOp"_ns, optPreviousKey);
20803
20804 return NS_OK;
20805}
20806
20807Utils::Utils()
20808#ifdef DEBUG1
20809 : mActorDestroyed(false)
20810#endif
20811{
20812 AssertIsOnBackgroundThread();
20813}
20814
20815Utils::~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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20815); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed"
")"); do { *((volatile int*)__null) = 20815; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
; }
20816
20817void Utils::ActorDestroy(ActorDestroyReason aWhy) {
20818 AssertIsOnBackgroundThread();
20819 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20819); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { *((volatile int*)__null) = 20819; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20820
20821#ifdef DEBUG1
20822 mActorDestroyed = true;
20823#endif
20824}
20825
20826mozilla::ipc::IPCResult Utils::RecvDeleteMe() {
20827 AssertIsOnBackgroundThread();
20828 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20828); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { *((volatile int*)__null) = 20828; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20829
20830 QM_WARNONLY_TRY(OkIf(PBackgroundIndexedDBUtilsParent::Send__delete__(this))){auto tryResult1525 = (OkIf(PBackgroundIndexedDBUtilsParent::
Send__delete__(this))); static_assert(std::is_empty_v<typename
decltype(tryResult1525)::ok_type>); if ((__builtin_expect
(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError
("OkIf(PBackgroundIndexedDBUtilsParent::Send__delete__(this))"
, tryResult1525.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20830, mozilla::dom::quota::Severity::Warning); }}
;
20831
20832 return IPC_OK()mozilla::ipc::IPCResult::Ok();
20833}
20834
20835mozilla::ipc::IPCResult Utils::RecvGetFileReferences(
20836 const PersistenceType& aPersistenceType, const nsACString& aOrigin,
20837 const nsAString& aDatabaseName, const int64_t& aFileId, int32_t* aRefCnt,
20838 int32_t* aDBRefCnt, bool* aResult) {
20839 AssertIsOnBackgroundThread();
20840 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20840); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRefCnt" ")"
); do { *((volatile int*)__null) = 20840; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20841 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20841); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDBRefCnt"
")"); do { *((volatile int*)__null) = 20841; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20842 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20842); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResult" ")"
); do { *((volatile int*)__null) = 20842; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20843 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20843); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { *((volatile int*)__null) = 20843; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20844
20845 if (NS_WARN_IF(!IndexedDatabaseManager::Get())NS_warn_if_impl(!IndexedDatabaseManager::Get(), "!IndexedDatabaseManager::Get()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20845)
) {
20846 return IPC_FAIL(this, "No IndexedDatabaseManager active!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No IndexedDatabaseManager active!"
))
;
20847 }
20848
20849 if (NS_WARN_IF(!QuotaManager::Get())NS_warn_if_impl(!QuotaManager::Get(), "!QuotaManager::Get()",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20849)
) {
20850 return IPC_FAIL(this, "No QuotaManager active!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No QuotaManager active!"
))
;
20851 }
20852
20853 if (NS_WARN_IF(!StaticPrefs::dom_indexedDB_testing())NS_warn_if_impl(!StaticPrefs::dom_indexedDB_testing(), "!StaticPrefs::dom_indexedDB_testing()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20853)
) {
20854 return IPC_FAIL(this, "IndexedDB is not in testing mode!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("IndexedDB is not in testing mode!"
))
;
20855 }
20856
20857 if (NS_WARN_IF(!IsValidPersistenceType(aPersistenceType))NS_warn_if_impl(!IsValidPersistenceType(aPersistenceType), "!IsValidPersistenceType(aPersistenceType)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20857)
) {
20858 return IPC_FAIL(this, "PersistenceType is not valid!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("PersistenceType is not valid!"
))
;
20859 }
20860
20861 if (NS_WARN_IF(aOrigin.IsEmpty())NS_warn_if_impl(aOrigin.IsEmpty(), "aOrigin.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20861)
) {
20862 return IPC_FAIL(this, "Origin is empty!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Origin is empty!"
))
;
20863 }
20864
20865 if (NS_WARN_IF(aDatabaseName.IsEmpty())NS_warn_if_impl(aDatabaseName.IsEmpty(), "aDatabaseName.IsEmpty()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20865)
) {
20866 return IPC_FAIL(this, "DatabaseName is empty!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("DatabaseName is empty!"
))
;
20867 }
20868
20869 if (NS_WARN_IF(aFileId == 0)NS_warn_if_impl(aFileId == 0, "aFileId == 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20869)
) {
20870 return IPC_FAIL(this, "No FileId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No FileId!"
))
;
20871 }
20872
20873 nsresult rv =
20874 DispatchAndReturnFileReferences(aPersistenceType, aOrigin, aDatabaseName,
20875 aFileId, aRefCnt, aDBRefCnt, aResult);
20876 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20876)
) {
20877 return IPC_FAIL(this, "DispatchAndReturnFileReferences failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("DispatchAndReturnFileReferences failed!"
))
;
20878 }
20879
20880 return IPC_OK()mozilla::ipc::IPCResult::Ok();
20881}
20882
20883mozilla::ipc::IPCResult Utils::RecvDoMaintenance(
20884 DoMaintenanceResolver&& aResolver) {
20885 AssertIsOnBackgroundThread();
20886
20887 QM_TRY(MOZ_TO_RESULT(!QuotaManager::IsShuttingDown()),{auto tryResult1526 = (ToResult(!QuotaManager::IsShuttingDown
())); static_assert(std::is_empty_v<typename decltype(tryResult1526
)::ok_type>); if ((__builtin_expect(!!(tryResult1526.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1526
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaManager::IsShuttingDown())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20888, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaManager::IsShuttingDown())"
, tryTempError, ResolveNSResultAndReturn(aResolver)); }}
20888 ResolveNSResultAndReturn(aResolver)){auto tryResult1526 = (ToResult(!QuotaManager::IsShuttingDown
())); static_assert(std::is_empty_v<typename decltype(tryResult1526
)::ok_type>); if ((__builtin_expect(!!(tryResult1526.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1526
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaManager::IsShuttingDown())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20888, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaManager::IsShuttingDown())"
, tryTempError, ResolveNSResultAndReturn(aResolver)); }}
;
20889
20890 QM_TRY(QuotaManager::EnsureCreated(), ResolveNSResultAndReturn(aResolver)){auto tryResult1527 = (QuotaManager::EnsureCreated()); static_assert
(std::is_empty_v<typename decltype(tryResult1527)::ok_type
>); if ((__builtin_expect(!!(tryResult1527.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1527
.unwrapErr(); mozilla::dom::quota::HandleError("QuotaManager::EnsureCreated()"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20890, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "QuotaManager::EnsureCreated()"
, tryTempError, ResolveNSResultAndReturn(aResolver)); }}
;
20891
20892 QuotaClient* quotaClient = QuotaClient::GetInstance();
20893 QM_TRY(MOZ_TO_RESULT(quotaClient), QM_IPC_FAIL(this)){auto tryResult1528 = (ToResult(quotaClient)); static_assert(
std::is_empty_v<typename decltype(tryResult1528)::ok_type>
); if ((__builtin_expect(!!(tryResult1528.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1528.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(quotaClient)",
tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20893, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaClient)"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
;
20894
20895 quotaClient->DoMaintenance()->Then(
20896 GetCurrentSerialEventTarget(), __func__,
20897 [self = RefPtr(this), resolver = std::move(aResolver)](
20898 const BoolPromise::ResolveOrRejectValue& aValue) {
20899 if (!self->CanSend()) {
20900 return;
20901 }
20902
20903 if (aValue.IsResolve()) {
20904 resolver(NS_OK);
20905 } else {
20906 resolver(aValue.RejectValue());
20907 }
20908 });
20909
20910 return IPC_OK()mozilla::ipc::IPCResult::Ok();
20911}
20912
20913#ifdef DEBUG1
20914
20915NS_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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20915); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
20915; __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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20915); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DEBUGThreadSlower\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 20915; __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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20915); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 20915
; __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"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20915); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DEBUGThreadSlower\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 20915; __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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20915); 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; }
20916
20917NS_IMETHODIMPnsresult
20918DEBUGThreadSlower::OnDispatchedEvent() { MOZ_CRASH("Should never be called!")do { do { } while (false); MOZ_ReportCrash("" "Should never be called!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20918); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be called!"
")"); do { *((volatile int*)__null) = 20918; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
; }
20919
20920NS_IMETHODIMPnsresult
20921DEBUGThreadSlower::OnProcessNextEvent(nsIThreadInternal* /* aThread */,
20922 bool /* aMayWait */) {
20923 return NS_OK;
20924}
20925
20926NS_IMETHODIMPnsresult
20927DEBUGThreadSlower::AfterProcessNextEvent(nsIThreadInternal* /* aThread */,
20928 bool /* aEventWasProcessed */) {
20929 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20929); AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGThreadSleepMS"
")"); do { *((volatile int*)__null) = 20929; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20930
20931 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20932); AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS"
")"); do { *((volatile int*)__null) = 20932; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
20932 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"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20932); AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS"
")"); do { *((volatile int*)__null) = 20932; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
20933 return NS_OK;
20934}
20935
20936#endif // DEBUG
20937
20938nsresult FileHelper::Init() {
20939 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20939); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 20939; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20940
20941 auto fileDirectory = mFileManager->GetCheckedDirectory();
20942 if (NS_WARN_IF(!fileDirectory)NS_warn_if_impl(!fileDirectory, "!fileDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20942)
) {
20943 return NS_ERROR_FAILURE;
20944 }
20945
20946 auto journalDirectory = mFileManager->EnsureJournalDirectory();
20947 if (NS_WARN_IF(!journalDirectory)NS_warn_if_impl(!journalDirectory, "!journalDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20947)
) {
20948 return NS_ERROR_FAILURE;
20949 }
20950
20951 DebugOnly<bool> exists;
20952 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20952); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->Exists(&exists))), 1)))"
")"); do { *((volatile int*)__null) = 20952; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20953 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20953); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")"
); do { *((volatile int*)__null) = 20953; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20954
20955 DebugOnly<bool> isDirectory;
20956 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)))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 20956; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20957 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20957); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 20957; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20958
20959 mFileDirectory.init(WrapNotNullUnchecked(std::move(fileDirectory)));
20960 mJournalDirectory.init(WrapNotNullUnchecked(std::move(journalDirectory)));
20961
20962 return NS_OK;
20963}
20964
20965nsCOMPtr<nsIFile> FileHelper::GetFile(const DatabaseFileInfo& aFileInfo) {
20966 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20966); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 20966; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20967
20968 return mFileManager->GetFileForId(mFileDirectory->get(), aFileInfo.Id());
20969}
20970
20971nsCOMPtr<nsIFile> FileHelper::GetJournalFile(
20972 const DatabaseFileInfo& aFileInfo) {
20973 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20973); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 20973; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20974
20975 return mFileManager->GetFileForId(mJournalDirectory->get(), aFileInfo.Id());
20976}
20977
20978nsresult FileHelper::CreateFileFromStream(nsIFile& aFile, nsIFile& aJournalFile,
20979 nsIInputStream& aInputStream,
20980 bool aCompress,
20981 const Maybe<CipherKey>& aMaybeKey) {
20982 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20982); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 20982; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20983
20984 QM_TRY_INSPECT(const auto& exists,auto tryResult1529 = (::mozilla::ToResultInvokeMember( (aFile
), &::mozilla::detail::DerefedType<decltype(aFile)>
::Exists)); if ((__builtin_expect(!!(tryResult1529.isErr()), 0
))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::Exists)"
, tryResult1529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20985, mozilla::dom::quota::Severity::Error); return tryResult1529
.propagateErr(); } const auto& exists = tryResult1529.inspect
();
20985 MOZ_TO_RESULT_INVOKE_MEMBER(aFile, Exists))auto tryResult1529 = (::mozilla::ToResultInvokeMember( (aFile
), &::mozilla::detail::DerefedType<decltype(aFile)>
::Exists)); if ((__builtin_expect(!!(tryResult1529.isErr()), 0
))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::Exists)"
, tryResult1529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20985, mozilla::dom::quota::Severity::Error); return tryResult1529
.propagateErr(); } const auto& exists = tryResult1529.inspect
();
;
20986
20987 // DOM blobs that are being stored in IDB are cached by calling
20988 // IDBDatabase::GetOrCreateFileActorForBlob. So if the same DOM blob is stored
20989 // again under a different key or in a different object store, we just add
20990 // a new reference instead of creating a new copy (all such stored blobs share
20991 // the same id).
20992 // However, it can happen that CreateFileFromStream failed due to quota
20993 // exceeded error and for some reason the orphaned file couldn't be deleted
20994 // immediately. Now, if the operation is being repeated, the DOM blob is
20995 // already cached, so it has the same file id which clashes with the orphaned
20996 // file. We could do some tricks to restore previous copy loop, but it's safer
20997 // to just delete the orphaned file and start from scratch.
20998 // This corner case is partially simulated in test_file_copy_failure.js
20999 if (exists) {
21000 QM_TRY_INSPECT(const auto& isFile,auto tryResult1530 = (::mozilla::ToResultInvokeMember( (aFile
), &::mozilla::detail::DerefedType<decltype(aFile)>
::IsFile)); if ((__builtin_expect(!!(tryResult1530.isErr()), 0
))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::IsFile)"
, tryResult1530.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21001, mozilla::dom::quota::Severity::Error); return tryResult1530
.propagateErr(); } const auto& isFile = tryResult1530.inspect
();
21001 MOZ_TO_RESULT_INVOKE_MEMBER(aFile, IsFile))auto tryResult1530 = (::mozilla::ToResultInvokeMember( (aFile
), &::mozilla::detail::DerefedType<decltype(aFile)>
::IsFile)); if ((__builtin_expect(!!(tryResult1530.isErr()), 0
))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::IsFile)"
, tryResult1530.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21001, mozilla::dom::quota::Severity::Error); return tryResult1530
.propagateErr(); } const auto& isFile = tryResult1530.inspect
();
;
21002
21003 QM_TRY(OkIf(isFile), NS_ERROR_FAILURE){auto tryResult1531 = (OkIf(isFile)); static_assert(std::is_empty_v
<typename decltype(tryResult1531)::ok_type>); if ((__builtin_expect
(!!(tryResult1531.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1531.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(isFile)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21003, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isFile)"
, tryTempError, NS_ERROR_FAILURE); }}
;
21004
21005 QM_TRY_INSPECT(const auto& journalExists,auto tryResult1532 = (::mozilla::ToResultInvokeMember( (aJournalFile
), &::mozilla::detail::DerefedType<decltype(aJournalFile
)>::Exists)); if ((__builtin_expect(!!(tryResult1532.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::Exists)"
, tryResult1532.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21006, mozilla::dom::quota::Severity::Error); return tryResult1532
.propagateErr(); } const auto& journalExists = tryResult1532
.inspect();
21006 MOZ_TO_RESULT_INVOKE_MEMBER(aJournalFile, Exists))auto tryResult1532 = (::mozilla::ToResultInvokeMember( (aJournalFile
), &::mozilla::detail::DerefedType<decltype(aJournalFile
)>::Exists)); if ((__builtin_expect(!!(tryResult1532.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::Exists)"
, tryResult1532.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21006, mozilla::dom::quota::Severity::Error); return tryResult1532
.propagateErr(); } const auto& journalExists = tryResult1532
.inspect();
;
21007
21008 QM_TRY(OkIf(journalExists), NS_ERROR_FAILURE){auto tryResult1533 = (OkIf(journalExists)); static_assert(std
::is_empty_v<typename decltype(tryResult1533)::ok_type>
); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1533.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(journalExists)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21008, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalExists)"
, tryTempError, NS_ERROR_FAILURE); }}
;
21009
21010 QM_TRY_INSPECT(const auto& journalIsFile,auto tryResult1534 = (::mozilla::ToResultInvokeMember( (aJournalFile
), &::mozilla::detail::DerefedType<decltype(aJournalFile
)>::IsFile)); if ((__builtin_expect(!!(tryResult1534.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::IsFile)"
, tryResult1534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21011, mozilla::dom::quota::Severity::Error); return tryResult1534
.propagateErr(); } const auto& journalIsFile = tryResult1534
.inspect();
21011 MOZ_TO_RESULT_INVOKE_MEMBER(aJournalFile, IsFile))auto tryResult1534 = (::mozilla::ToResultInvokeMember( (aJournalFile
), &::mozilla::detail::DerefedType<decltype(aJournalFile
)>::IsFile)); if ((__builtin_expect(!!(tryResult1534.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::IsFile)"
, tryResult1534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21011, mozilla::dom::quota::Severity::Error); return tryResult1534
.propagateErr(); } const auto& journalIsFile = tryResult1534
.inspect();
;
21012
21013 QM_TRY(OkIf(journalIsFile), NS_ERROR_FAILURE){auto tryResult1535 = (OkIf(journalIsFile)); static_assert(std
::is_empty_v<typename decltype(tryResult1535)::ok_type>
); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1535.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(journalIsFile)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21013, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalIsFile)"
, tryTempError, NS_ERROR_FAILURE); }}
;
21014
21015 IDB_WARNING("Deleting orphaned file!")do { nsPrintfCString s("Deleting orphaned file!"); mozilla::dom
::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21015, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21015); } while (0)
;
21016
21017 QM_TRY(MOZ_TO_RESULT(mFileManager->SyncDeleteFile(aFile, aJournalFile))){auto tryResult1536 = (ToResult(mFileManager->SyncDeleteFile
(aFile, aJournalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1536)::ok_type>); if ((__builtin_expect
(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(mFileManager->SyncDeleteFile(aFile, aJournalFile))"
, tryResult1536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21017, mozilla::dom::quota::Severity::Error); return tryResult1536
.propagateErr(); }}
;
21018 }
21019
21020 // Create a journal file first.
21021 QM_TRY(MOZ_TO_RESULT(aJournalFile.Create(nsIFile::NORMAL_FILE_TYPE, 0644))){auto tryResult1537 = (ToResult(aJournalFile.Create(nsIFile::
NORMAL_FILE_TYPE, 0644))); static_assert(std::is_empty_v<typename
decltype(tryResult1537)::ok_type>); if ((__builtin_expect
(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aJournalFile.Create(nsIFile::NORMAL_FILE_TYPE, 0644))"
, tryResult1537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21021, mozilla::dom::quota::Severity::Error); return tryResult1537
.propagateErr(); }}
;
21022
21023 // Now try to copy the stream.
21024 QM_TRY_UNWRAP(nsCOMPtr<nsIOutputStream> fileOutputStream,auto tryResult1538 = (CreateFileOutputStream(mFileManager->
Type(), mFileManager->OriginMetadata(), Client::IDB, &
aFile)); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))
) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)"
, tryResult1538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21027, mozilla::dom::quota::Severity::Error); return tryResult1538
.propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream
= tryResult1538.unwrap();
21025 CreateFileOutputStream(mFileManager->Type(),auto tryResult1538 = (CreateFileOutputStream(mFileManager->
Type(), mFileManager->OriginMetadata(), Client::IDB, &
aFile)); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))
) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)"
, tryResult1538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21027, mozilla::dom::quota::Severity::Error); return tryResult1538
.propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream
= tryResult1538.unwrap();
21026 mFileManager->OriginMetadata(),auto tryResult1538 = (CreateFileOutputStream(mFileManager->
Type(), mFileManager->OriginMetadata(), Client::IDB, &
aFile)); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))
) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)"
, tryResult1538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21027, mozilla::dom::quota::Severity::Error); return tryResult1538
.propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream
= tryResult1538.unwrap();
21027 Client::IDB, &aFile))auto tryResult1538 = (CreateFileOutputStream(mFileManager->
Type(), mFileManager->OriginMetadata(), Client::IDB, &
aFile)); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))
) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)"
, tryResult1538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21027, mozilla::dom::quota::Severity::Error); return tryResult1538
.propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream
= tryResult1538.unwrap();
;
21028
21029 AutoTArray<char, kFileCopyBufferSize> buffer;
21030 const auto actualOutputStream =
21031 [aCompress, &aMaybeKey, &buffer,
21032 baseOutputStream =
21033 std::move(fileOutputStream)]() mutable -> nsCOMPtr<nsIOutputStream> {
21034 if (aMaybeKey) {
21035 baseOutputStream =
21036 MakeRefPtr<EncryptingOutputStream<IndexedDBCipherStrategy>>(
21037 std::move(baseOutputStream), kEncryptedStreamBlockSize,
21038 *aMaybeKey);
21039 }
21040
21041 if (aCompress) {
21042 auto snappyOutputStream =
21043 MakeRefPtr<SnappyCompressOutputStream>(baseOutputStream);
21044
21045 buffer.SetLength(snappyOutputStream->BlockSize());
21046
21047 return snappyOutputStream;
21048 }
21049
21050 buffer.SetLength(kFileCopyBufferSize);
21051 return std::move(baseOutputStream);
21052 }();
21053
21054 QM_TRY(MOZ_TO_RESULT(SyncCopy(aInputStream, *actualOutputStream,{auto tryResult1539 = (ToResult(SyncCopy(aInputStream, *actualOutputStream
, buffer.Elements(), buffer.Length()))); static_assert(std::is_empty_v
<typename decltype(tryResult1539)::ok_type>); if ((__builtin_expect
(!!(tryResult1539.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SyncCopy(aInputStream, *actualOutputStream, buffer.Elements(), buffer.Length()))"
, tryResult1539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21055, mozilla::dom::quota::Severity::Error); return tryResult1539
.propagateErr(); }}
21055 buffer.Elements(), buffer.Length()))){auto tryResult1539 = (ToResult(SyncCopy(aInputStream, *actualOutputStream
, buffer.Elements(), buffer.Length()))); static_assert(std::is_empty_v
<typename decltype(tryResult1539)::ok_type>); if ((__builtin_expect
(!!(tryResult1539.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SyncCopy(aInputStream, *actualOutputStream, buffer.Elements(), buffer.Length()))"
, tryResult1539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21055, mozilla::dom::quota::Severity::Error); return tryResult1539
.propagateErr(); }}
;
21056
21057 return NS_OK;
21058}
21059
21060class FileHelper::ReadCallback final : public nsIInputStreamCallback {
21061 public:
21062 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:
21063
21064 ReadCallback()
21065 : mMutex("ReadCallback::mMutex"),
21066 mCondVar(mMutex, "ReadCallback::mCondVar"),
21067 mInputAvailable(false) {}
21068
21069 NS_IMETHODvirtual nsresult
21070 OnInputStreamReady(nsIAsyncInputStream* aStream) override {
21071 mozilla::MutexAutoLock autolock(mMutex);
21072
21073 mInputAvailable = true;
21074 mCondVar.Notify();
21075
21076 return NS_OK;
21077 }
21078
21079 nsresult AsyncWait(nsIAsyncInputStream* aStream, uint32_t aBufferSize,
21080 nsIEventTarget* aTarget) {
21081 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21081); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aStream" ")"
); do { *((volatile int*)__null) = 21081; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
21082 mozilla::MutexAutoLock autolock(mMutex);
21083
21084 nsresult rv = aStream->AsyncWait(this, 0, aBufferSize, aTarget);
21085 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21085)
) {
21086 return rv;
21087 }
21088
21089 mInputAvailable = false;
21090 while (!mInputAvailable) {
21091 mCondVar.Wait();
21092 }
21093
21094 return NS_OK;
21095 }
21096
21097 private:
21098 ~ReadCallback() = default;
21099
21100 mozilla::Mutex mMutex MOZ_UNANNOTATED;
21101 mozilla::CondVar mCondVar;
21102 bool mInputAvailable;
21103};
21104
21105NS_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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21105); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
21105; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21105); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"FileHelper::ReadCallback\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 21105; __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; }
;
21106NS_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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21106); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 21106
; __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" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21106); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"FileHelper::ReadCallback\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 21106; __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; }
;
21107
21108NS_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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21108); MOZ_PretendNoReturn(); } } while (0); nsISupports* foundInterface
;
21109 NS_INTERFACE_MAP_ENTRY(nsIInputStreamCallback)if (aIID.Equals(mozilla::detail::kImplementedIID<std::remove_reference_t
<decltype(*this)>, nsIInputStreamCallback>)) foundInterface
= static_cast<nsIInputStreamCallback*>(this); else
21110 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
21111NS_INTERFACE_MAP_ENDfoundInterface = 0; nsresult status; if (!foundInterface) { do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(!aIID.Equals((nsISupports::COMTypeInfo<nsISupports
, void>::kIID)))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aIID.Equals((nsISupports::COMTypeInfo
<nsISupports, void>::kIID))))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("!aIID.Equals((nsISupports::COMTypeInfo<nsISupports, void>::kIID))"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21111); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIID.Equals((nsISupports::COMTypeInfo<nsISupports, void>::kIID))"
")"); do { *((volatile int*)__null) = 21111; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); status
= NS_NOINTERFACE; } else { (foundInterface)->AddRef(); status
= NS_OK; } *aInstancePtr = foundInterface; return status; }
21112
21113nsresult FileHelper::SyncRead(nsIInputStream& aInputStream, char* const aBuffer,
21114 const uint32_t aBufferSize,
21115 uint32_t* const aRead) {
21116 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21116); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 21116; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21117
21118 // Let's try to read, directly.
21119 nsresult rv = aInputStream.Read(aBuffer, aBufferSize, aRead);
21120 if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) || rv != NS_BASE_STREAM_WOULD_BLOCK) {
21121 return rv;
21122 }
21123
21124 // We need to proceed async.
21125 nsCOMPtr<nsIAsyncInputStream> asyncStream = do_QueryInterface(&aInputStream);
21126 if (!asyncStream) {
21127 return rv;
21128 }
21129
21130 if (!mReadCallback) {
21131 mReadCallback.init(MakeNotNull<RefPtr<ReadCallback>>());
21132 }
21133
21134 // We just need any thread with an event loop for receiving the
21135 // OnInputStreamReady callback. Let's use the I/O thread.
21136 nsCOMPtr<nsIEventTarget> target =
21137 do_GetService(NS_STREAMTRANSPORTSERVICE_CONTRACTID"@mozilla.org/network/stream-transport-service;1");
21138 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", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21138); AnnotateMozCrashReason("MOZ_ASSERT" "(" "target" ")"
); do { *((volatile int*)__null) = 21138; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
21139
21140 rv = (*mReadCallback)->AsyncWait(asyncStream, aBufferSize, target);
21141 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21141)
) {
21142 return rv;
21143 }
21144
21145 return SyncRead(aInputStream, aBuffer, aBufferSize, aRead);
21146}
21147
21148nsresult FileHelper::SyncCopy(nsIInputStream& aInputStream,
21149 nsIOutputStream& aOutputStream,
21150 char* const aBuffer, const uint32_t aBufferSize) {
21151 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()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21151); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 21151; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21152
21153 AUTO_PROFILER_LABEL("FileHelper::SyncCopy", DOM)mozilla::AutoProfilerLabel raiiObject21153( "FileHelper::SyncCopy"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
21154
21155 nsresult rv;
21156
21157 do {
21158 uint32_t numRead;
21159 rv = SyncRead(aInputStream, aBuffer, aBufferSize, &numRead);
21160 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21160)
) {
21161 break;
21162 }
21163
21164 if (!numRead) {
21165 break;
21166 }
21167
21168 uint32_t numWrite;
21169 rv = aOutputStream.Write(aBuffer, numRead, &numWrite);
21170 if (rv == NS_ERROR_FILE_NO_DEVICE_SPACE) {
21171 rv = NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR;
21172 }
21173 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21173)
) {
21174 break;
21175 }
21176
21177 if (NS_WARN_IF(numWrite != numRead)NS_warn_if_impl(numWrite != numRead, "numWrite != numRead", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21177)
) {
21178 rv = NS_ERROR_FAILURE;
21179 break;
21180 }
21181 } while (true);
21182
21183 if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) {
21184 rv = aOutputStream.Flush();
21185 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21185)
) {
21186 return rv;
21187 }
21188 }
21189
21190 nsresult rv2 = aOutputStream.Close();
21191 if (NS_WARN_IF(NS_FAILED(rv2))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv2
)), 0))), "NS_FAILED(rv2)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 21191)
) {
21192 return NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? rv2 : rv;
21193 }
21194
21195 return rv;
21196}
21197
21198} // namespace dom::indexedDB
21199} // namespace mozilla
21200
21201#undef IDB_MOBILE
21202#undef IDB_DEBUG_LOG